Skip to content

Commit

Permalink
Remove underscore from lm_test. add console script
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgrady committed May 19, 2021
1 parent 154a064 commit 7c37a79
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 19 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions lm_test/base/controller.py → lmtest/base/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from tempfile import gettempdir
from time import sleep

from lm_test.base.daemon import Daemon, DaemonCommands
from lm_test.base.test_base import LmTest, LmTestFailure, LmTestWarning
from lmtest.base.daemon import Daemon, DaemonCommands
from lmtest.base.test_base import LmTest, LmTestFailure, LmTestWarning

CONTROLLER_PID_FILE = os.path.join(gettempdir(), 'controller.pid')
DEFAULT_SLEEP_TIME = 10
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Test memory usage."""
import lm_test.base.test_base as test_base
import lmtest.base.test_base as test_base
import psutil


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Test disk usage."""
import shutil

import lm_test.base.test_base as test_base
import lmtest.base.test_base as test_base


# .............................................................................
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Test class for lm_client."""

import lm_test.base.test_base as test_base
from lm_client.client.client import LmApiClient
import lmtest.base.test_base as test_base
from lmclient.client.client import LmApiClient


# .............................................................................
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Test memory usage."""
import os

import lm_test.base.test_base as test_base
import lmtest.base.test_base as test_base


# .............................................................................
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"""
import json

import lm_test.base.test_base as test_base
import lmtest.base.test_base as test_base
import open_api_tools.test.full_test as full_test


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Test class for lm_client."""
from random import randint, shuffle

import lm_test.base.test_base as test_base
import lmtest.base.test_base as test_base
from ot_service_wrapper.open_tree import (
get_ottids_from_gbifids,
induced_subtree,
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
psutil
20 changes: 11 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,23 @@
module_license = f.read()

setup(
name='lm_test',
version='1.0.0b2',
name='lmtest',
version='1.0.0b3',
description='Lifemapper Testing Library',
long_description=readme,
author='CJ Grady',
author_email='cjgrady@ku.edu',
url='https://github.com/lifemapper/lm_test',
license=module_license,
#package_dir={'': 'lm_test'},
packages=find_packages(),
package_dir={
'example_tests': ['*.json'],
},
python_requires='>=3.6, <4',
#entry_points={
# 'console_scripts': [
# 'run_controller=scripts/run_controller:main',
# ],
#},
scripts=['scripts/run_controller.py'],
entry_points={
'console_scripts': [
'run_controller=scripts.run_controller:main',
],
},
#scripts=['scripts/run_controller.py'],
)
2 changes: 1 addition & 1 deletion tests/test_base/test_controller.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Test the controller module."""
from lm_test.base.controller import CONTROLLER_PID_FILE, Controller
from lmtest.base.controller import CONTROLLER_PID_FILE, Controller


# .....................................................................................
Expand Down

0 comments on commit 7c37a79

Please sign in to comment.