diff --git a/.travis.yml b/.travis.yml index aba34cb..6ebe978 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,8 +14,6 @@ env: - PYTHONWARNINGS='ignore::DeprecationWarning' # Until python_toolbox is fixed install: -- pip install -r requirements.txt -r test_requirements.txt +- pip install -r test_requirements.txt script: - pytest - - diff --git a/requirements.in b/requirements.in new file mode 100644 index 0000000..d91f3e2 --- /dev/null +++ b/requirements.in @@ -0,0 +1,3 @@ +decorator +future +six diff --git a/requirements.txt b/requirements.txt index b34828c..6a7c6b7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,9 @@ -decorator>=4.3.0 -future>=0.17.1 -six>=1.12.0 \ No newline at end of file +# +# This file is autogenerated by pip-compile +# To update, run: +# +# pip-compile --output-file requirements.txt requirements.in +# +decorator==4.4.0 +future==0.17.1 +six==1.12.0 diff --git a/setup.py b/setup.py index fb483db..d7cdfc7 100644 --- a/setup.py +++ b/setup.py @@ -1,21 +1,32 @@ -# Copyright 2019 Ram Rachum. -# This program is distributed under the MIT license. +""" +Packaging implementation for PySnooper +Copyright 2019 Ram Rachum. +This program is distributed under the MIT license. +""" import setuptools + +def read_file(filename): + """Return the contents of a file""" + with open(filename) as file: + return file.read() + + setuptools.setup( name='PySnooper', - version='0.0.9', + version='0.0.10', author='Ram Rachum', author_email='ram@rachum.com', description="A poor man's debugger for Python.", - long_description=open('README.md', 'r').read(), + long_description=read_file('README.md'), long_description_content_type='text/markdown', url='https://github.com/cool-RR/PySnooper', packages=setuptools.find_packages(exclude=['tests']), - install_requires=open('requirements.txt', 'r').read().split('\n'), - tests_require=open('test_requirements.txt', 'r').read().split('\n'), + install_requires=read_file('requirements.in'), classifiers=[ + 'Environment :: Console', + 'Intended Audience :: Developers', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', @@ -24,6 +35,6 @@ setuptools.setup( 'Programming Language :: Python :: 3.8', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', + 'Topic :: Software Development :: Debuggers', ], - ) diff --git a/test_requirements.txt b/test_requirements.txt index 029036e..105b7c7 100644 --- a/test_requirements.txt +++ b/test_requirements.txt @@ -1,2 +1,5 @@ -python_toolbox>=0.9.3 -pytest>=4.4.1 \ No newline at end of file +-r requirements.txt + +pip-tools +pytest +python_toolbox