mirror of
https://github.com/davidhalter/parso.git
synced 2026-05-13 10:08:41 +08:00
tox.ini: simplify deps
This commit is contained in:
committed by
Dave Halter
parent
98c02f7d79
commit
a90622040d
@@ -3,20 +3,17 @@ envlist = py27, py33, py34, py35, py36, py37, pypy
|
|||||||
[testenv]
|
[testenv]
|
||||||
extras = testing
|
extras = testing
|
||||||
deps =
|
deps =
|
||||||
{env:_SETUPTOOLS_DEP:setuptools}
|
py26,py33: pytest>=3.0.7,<3.3
|
||||||
{env:_PARSO_TEST_PYTEST_DEP:pytest>=3.0.7}
|
py26,py33: setuptools<37
|
||||||
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:
|
||||||
PYTHONDONTWRITEBYTECODE=1
|
PYTHONDONTWRITEBYTECODE=1
|
||||||
py26,py33: _PARSO_TEST_PYTEST_DEP=pytest>=3.0.7,<3.3
|
|
||||||
py26,py33: _SETUPTOOLS_DEP=setuptools<37
|
|
||||||
commands =
|
commands =
|
||||||
pytest {posargs:parso test}
|
pytest {posargs:parso test}
|
||||||
[testenv:cov]
|
[testenv:cov]
|
||||||
deps =
|
deps =
|
||||||
coverage
|
coverage
|
||||||
{[testenv]deps}
|
|
||||||
commands =
|
commands =
|
||||||
coverage run --source parso -m pytest
|
coverage run --source parso -m pytest
|
||||||
coverage report
|
coverage report
|
||||||
|
|||||||
Reference in New Issue
Block a user