From d6d6c5038ff5699eaadb399c1a4f29e474945847 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 27 Oct 2017 23:14:07 +0200 Subject: [PATCH] setup.py: add "testing" extras_require Ref: https://github.com/davidhalter/parso/issues/15#issuecomment-339964845 --- setup.py | 5 +++++ tox.ini | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 29a0ddf..eec14ef 100755 --- a/setup.py +++ b/setup.py @@ -46,4 +46,9 @@ setup(name='parso', 'Topic :: Text Editors :: Integrated Development Environments (IDE)', 'Topic :: Utilities', ], + extras_require={ + 'testing': [ + 'pytest>=3.0.7', + ], + }, ) diff --git a/tox.ini b/tox.ini index 4b4f5ca..0e5d5ff 100644 --- a/tox.ini +++ b/tox.ini @@ -1,11 +1,10 @@ [tox] envlist = py27, py33, py34, py35, py36, py37 [testenv] +extras = testing deps = {env:_SETUPTOOLS_DEP:setuptools} {env:_PARSO_TEST_PYTEST_DEP:pytest>=3.0.7} -# For --lf and --ff. - pytest-cache setenv = # https://github.com/tomchristie/django-rest-framework/issues/1957 # tox corrupts __pycache__, solution from here: