Skip to content

Commit 386e801

Browse files
Merge pull request #4762 from blueyed/pluggymaster
tox: use deps for pluggymaster testenvs
2 parents 5cf05ce + 5e2d740 commit 386e801

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ env:
1717
# Specialized factors for py27.
1818
- TOXENV=py27-nobyte
1919
- TOXENV=py27-xdist
20-
- TOXENV=py27-pluggymaster PYTEST_NO_COVERAGE=1
20+
- TOXENV=py27-pluggymaster
2121
# Specialized factors for py37.
2222
- TOXENV=py37-pexpect,py37-trial,py37-numpy
23-
- TOXENV=py37-pluggymaster PYTEST_NO_COVERAGE=1
23+
- TOXENV=py37-pluggymaster
2424
- TOXENV=py37-freeze PYTEST_NO_COVERAGE=1
2525

2626
matrix:

appveyor.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ environment:
1313
# Specialized factors for py27.
1414
- TOXENV: "py27-trial,py27-numpy,py27-nobyte"
1515
- TOXENV: "py27-pluggymaster"
16-
PYTEST_NO_COVERAGE: "1"
1716
# Specialized factors for py37.
1817
- TOXENV: "py37-trial,py37-numpy"
1918
- TOXENV: "py37-pluggymaster"
20-
PYTEST_NO_COVERAGE: "1"
2119
- TOXENV: "py37-freeze"
2220
PYTEST_NO_COVERAGE: "1"
2321

tox.ini

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
isolated_build = True
3-
minversion = 3.3
3+
minversion = 3.5.3
44
distshare = {homedir}/.tox/distshare
55
# make sure to update environment list in travis.yml and appveyor.yml
66
envlist =
@@ -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

@@ -116,11 +117,13 @@ commands = {[testenv:py27-numpy]commands}
116117
setenv=
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]
123125
setenv = {[testenv:py27-pluggymaster]setenv}
126+
deps = {[testenv:py27-pluggymaster]deps}
124127

125128
[testenv:docs]
126129
basepython = python3
@@ -136,8 +139,8 @@ commands =
136139
basepython = python3
137140
skipsdist = True
138141
deps =
142+
{[testenv]deps}
139143
PyYAML
140-
{env:_PYTEST_TOX_EXTRA_DEP:}
141144
commands =
142145
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest doc/en
143146
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest

0 commit comments

Comments
 (0)