mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-01-23 10:15:11 +00:00
setup.py: add test dependencies via "extras" (#66)
This commit is contained in:
parent
fb5b7eabbc
commit
eb59047a88
2 changed files with 18 additions and 0 deletions
12
README.md
12
README.md
|
|
@ -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 #
|
||||
|
|
|
|||
6
setup.py
6
setup.py
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue