mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-07-25 20:03:51 +00:00
Use common practice approaches with requirements and packaging
This commit is contained in:
parent
4419548374
commit
3941708f8e
5 changed files with 36 additions and 15 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
3
requirements.in
Normal file
3
requirements.in
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
decorator
|
||||
future
|
||||
six
|
||||
|
|
@ -1,3 +1,9 @@
|
|||
decorator>=4.3.0
|
||||
future>=0.17.1
|
||||
six>=1.12.0
|
||||
#
|
||||
# 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
|
||||
|
|
|
|||
25
setup.py
25
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',
|
||||
],
|
||||
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,2 +1,5 @@
|
|||
python_toolbox>=0.9.3
|
||||
pytest>=4.4.1
|
||||
-r requirements.txt
|
||||
|
||||
pip-tools
|
||||
pytest
|
||||
python_toolbox
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue