setup.py: add test dependencies via "extras" (#66)

This commit is contained in:
Nikita Melentev 2019-04-29 03:45:58 +03:00 committed by Peter Bittner
parent fb5b7eabbc
commit eb59047a88
2 changed files with 18 additions and 0 deletions

View file

@ -123,6 +123,18 @@ only linters and the ones you have already installed on your machine:
$ tox -e flake8,pylint,bandit,py27,py36
```
Or just install project in developer mode with test dependencies:
``` bash
$ pip install -e path/to/PySnooper[tests]
```
And run tests:
``` bash
$ pytest
```
Tests should pass before you push your code. They will be run again on Travis CI.
# License #

View file

@ -22,6 +22,12 @@ setuptools.setup(
url='https://github.com/cool-RR/PySnooper',
packages=setuptools.find_packages(exclude=['tests']),
install_requires=read_file('requirements.in'),
extras_require={
'tests': {
'pytest',
'python-toolbox',
},
},
classifiers=[
'Environment :: Console',
'Intended Audience :: Developers',