11[tox]
22isolated_build = True
3- minversion = 3.3
3+ minversion = 3.5. 3
44distshare = {homedir}/.tox/distshare
55# make sure to update environment list in travis.yml and appveyor.yml
66envlist =
@@ -25,7 +25,8 @@ commands =
2525 coverage: coverage report
2626passenv = USER USERNAME COVERAGE_* TRAVIS
2727setenv =
28- # configuration if a user runs tox with a "coverage" factor, for example "tox -e py37-coverage"
28+ # Configuration to run with coverage similar to Travis/Appveyor, e.g.
29+ # "tox -e py37-coverage".
2930 coverage: _PYTEST_TOX_COVERAGE_RUN =coverage run -m
3031 coverage: _PYTEST_TOX_EXTRA_DEP =coverage-enable-subprocess
3132 coverage: COVERAGE_FILE ={toxinidir}/.coverage
@@ -52,24 +53,24 @@ commands = pre-commit run --all-files --show-diff-on-failure
5253[testenv:py27-xdist]
5354extras = testing
5455deps =
56+ {[testenv]deps}
5557 pytest-xdist>=1.13
56- {env:_PYTEST_TOX_EXTRA_DEP:}
5758commands =
5859 {env:_PYTEST_TOX_COVERAGE_RUN:} pytest -n auto {posargs}
5960
6061[testenv:py37-xdist]
6162# NOTE: copied from above due to https://github.com/tox-dev/tox/issues/706.
6263extras = testing
6364deps =
65+ {[testenv]deps}
6466 pytest-xdist>=1.13
65- {env:_PYTEST_TOX_EXTRA_DEP:}
6667commands = {[testenv:py27-xdist]commands}
6768
6869[testenv:py27-pexpect]
6970platform = linux|darwin
7071deps =
72+ {[testenv]deps}
7173 pexpect
72- {env:_PYTEST_TOX_EXTRA_DEP:}
7374commands =
7475 {env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/test_pdb.py testing/test_terminal.py testing/test_unittest.py}
7576
@@ -81,8 +82,8 @@ commands = {[testenv:py27-pexpect]commands}
8182[testenv:py27-nobyte]
8283extras = testing
8384deps =
85+ {[testenv]deps}
8486 pytest-xdist>=1.13
85- {env:_PYTEST_TOX_EXTRA_DEP:}
8687distribute = true
8788setenv =
8889 {[testenv]setenv}
@@ -92,8 +93,8 @@ commands =
9293
9394[testenv:py27-trial]
9495deps =
96+ {[testenv]deps}
9597 twisted
96- {env:_PYTEST_TOX_EXTRA_DEP:}
9798commands =
9899 {env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/test_unittest.py}
99100
@@ -103,8 +104,8 @@ commands = {[testenv:py27-trial]commands}
103104
104105[testenv:py27-numpy]
105106deps =
107+ {[testenv]deps}
106108 numpy
107- {env:_PYTEST_TOX_EXTRA_DEP:}
108109commands =
109110 {env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/python/approx.py}
110111
@@ -116,11 +117,13 @@ commands = {[testenv:py27-numpy]commands}
116117setenv =
117118 {[testenv]setenv}
118119 _PYTEST_SETUP_SKIP_PLUGGY_DEP =1
119- # NOTE: using env instead of "{[testenv]deps}", because of https://github.com/tox-dev/tox/issues/706.
120- _PYTEST_TOX_EXTRA_DEP =git+https://github.com/pytest-dev/pluggy.git@master
120+ deps =
121+ {[testenv]deps}
122+ git+https://github.com/pytest-dev/pluggy.git@master
121123
122124[testenv:py37-pluggymaster]
123125setenv = {[testenv:py27-pluggymaster]setenv}
126+ deps = {[testenv:py27-pluggymaster]deps}
124127
125128[testenv:docs]
126129basepython = python3
@@ -136,8 +139,8 @@ commands =
136139basepython = python3
137140skipsdist = True
138141deps =
142+ {[testenv]deps}
139143 PyYAML
140- {env:_PYTEST_TOX_EXTRA_DEP:}
141144commands =
142145 {env:_PYTEST_TOX_COVERAGE_RUN:} pytest doc/en
143146 {env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest
0 commit comments