Skip to content

Commit 5e2d740

Browse files
committed
tox: cleanup/revisit deps
1 parent 82b8ec3 commit 5e2d740

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

tox.ini

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ commands =
2525
coverage: coverage report
2626
passenv = USER USERNAME COVERAGE_* TRAVIS
2727
setenv =
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]
5354
extras = testing
5455
deps =
56+
{[testenv]deps}
5557
pytest-xdist>=1.13
56-
{env:_PYTEST_TOX_EXTRA_DEP:}
5758
commands =
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.
6263
extras = testing
6364
deps =
65+
{[testenv]deps}
6466
pytest-xdist>=1.13
65-
{env:_PYTEST_TOX_EXTRA_DEP:}
6667
commands = {[testenv:py27-xdist]commands}
6768

6869
[testenv:py27-pexpect]
6970
platform = linux|darwin
7071
deps =
72+
{[testenv]deps}
7173
pexpect
72-
{env:_PYTEST_TOX_EXTRA_DEP:}
7374
commands =
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]
8283
extras = testing
8384
deps =
85+
{[testenv]deps}
8486
pytest-xdist>=1.13
85-
{env:_PYTEST_TOX_EXTRA_DEP:}
8687
distribute = true
8788
setenv =
8889
{[testenv]setenv}
@@ -92,8 +93,8 @@ commands =
9293

9394
[testenv:py27-trial]
9495
deps =
96+
{[testenv]deps}
9597
twisted
96-
{env:_PYTEST_TOX_EXTRA_DEP:}
9798
commands =
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]
105106
deps =
107+
{[testenv]deps}
106108
numpy
107-
{env:_PYTEST_TOX_EXTRA_DEP:}
108109
commands=
109110
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/python/approx.py}
110111

@@ -138,8 +139,8 @@ commands =
138139
basepython = python3
139140
skipsdist = True
140141
deps =
142+
{[testenv]deps}
141143
PyYAML
142-
{env:_PYTEST_TOX_EXTRA_DEP:}
143144
commands =
144145
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest doc/en
145146
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest

0 commit comments

Comments
 (0)