setup.py: add "testing" extras_require

Ref: https://github.com/davidhalter/parso/issues/15#issuecomment-339964845
This commit is contained in:
Daniel Hahler
2017-10-27 23:14:07 +02:00
committed by Dave Halter
parent 3be8ac7786
commit d6d6c5038f
2 changed files with 6 additions and 2 deletions

View File

@@ -46,4 +46,9 @@ setup(name='parso',
'Topic :: Text Editors :: Integrated Development Environments (IDE)', 'Topic :: Text Editors :: Integrated Development Environments (IDE)',
'Topic :: Utilities', 'Topic :: Utilities',
], ],
extras_require={
'testing': [
'pytest>=3.0.7',
],
},
) )

View File

@@ -1,11 +1,10 @@
[tox] [tox]
envlist = py27, py33, py34, py35, py36, py37 envlist = py27, py33, py34, py35, py36, py37
[testenv] [testenv]
extras = testing
deps = deps =
{env:_SETUPTOOLS_DEP:setuptools} {env:_SETUPTOOLS_DEP:setuptools}
{env:_PARSO_TEST_PYTEST_DEP:pytest>=3.0.7} {env:_PARSO_TEST_PYTEST_DEP:pytest>=3.0.7}
# For --lf and --ff.
pytest-cache
setenv = setenv =
# https://github.com/tomchristie/django-rest-framework/issues/1957 # https://github.com/tomchristie/django-rest-framework/issues/1957
# tox corrupts __pycache__, solution from here: # tox corrupts __pycache__, solution from here: