diff --git a/.gitignore b/.gitignore index a3758f0..116abd5 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ myenv/ .pytest_cache .coverage junit/ -.DS_Store \ No newline at end of file +.DS_Store +*.egg-info/ \ No newline at end of file diff --git a/README.md b/README.md index 91a6aa4..d9f751c 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ source myenv/bin/activate pip install pylint pip install requests pip install pytest pytest-cov pytest-html +pip install -e . ``` ### Lint diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..8088512 --- /dev/null +++ b/setup.py @@ -0,0 +1,9 @@ +"""check_urls, hello_world and other stuff.""" +from setuptools import setup, find_packages + +setup( + name="python_scripts", + version="0.1", + packages=find_packages(), + scripts=['check_urls.py', 'hello_world.py', 'filter_lambda.py'], +) \ No newline at end of file diff --git a/tests/test_check_urls.py b/tests/test_check_urls.py index bda9782..4b6b634 100755 --- a/tests/test_check_urls.py +++ b/tests/test_check_urls.py @@ -8,9 +8,6 @@ from io import StringIO import json import sys -import os -sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) -# pylint: disable=wrong-import-position import check_urls class TestCheckUrls(unittest.TestCase):