1
1
[tox]
2
2
isolated_build = True
3
- minversion = 3.3
3
+ minversion = 3.5. 3
4
4
distshare = {homedir}/.tox/distshare
5
5
# make sure to update environment list in travis.yml and appveyor.yml
6
6
envlist =
@@ -25,7 +25,8 @@ commands =
25
25
coverage: coverage report
26
26
passenv = USER USERNAME COVERAGE_* TRAVIS
27
27
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".
29
30
coverage: _PYTEST_TOX_COVERAGE_RUN =coverage run -m
30
31
coverage: _PYTEST_TOX_EXTRA_DEP =coverage-enable-subprocess
31
32
coverage: COVERAGE_FILE ={toxinidir}/.coverage
@@ -52,24 +53,24 @@ commands = pre-commit run --all-files --show-diff-on-failure
52
53
[testenv:py27-xdist]
53
54
extras = testing
54
55
deps =
56
+ {[testenv]deps}
55
57
pytest-xdist>=1.13
56
- {env:_PYTEST_TOX_EXTRA_DEP:}
57
58
commands =
58
59
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest -n auto {posargs}
59
60
60
61
[testenv:py37-xdist]
61
62
# NOTE: copied from above due to https://github.com/tox-dev/tox/issues/706.
62
63
extras = testing
63
64
deps =
65
+ {[testenv]deps}
64
66
pytest-xdist>=1.13
65
- {env:_PYTEST_TOX_EXTRA_DEP:}
66
67
commands = {[testenv:py27-xdist]commands}
67
68
68
69
[testenv:py27-pexpect]
69
70
platform = linux|darwin
70
71
deps =
72
+ {[testenv]deps}
71
73
pexpect
72
- {env:_PYTEST_TOX_EXTRA_DEP:}
73
74
commands =
74
75
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/test_pdb.py testing/test_terminal.py testing/test_unittest.py}
75
76
@@ -81,8 +82,8 @@ commands = {[testenv:py27-pexpect]commands}
81
82
[testenv:py27-nobyte]
82
83
extras = testing
83
84
deps =
85
+ {[testenv]deps}
84
86
pytest-xdist>=1.13
85
- {env:_PYTEST_TOX_EXTRA_DEP:}
86
87
distribute = true
87
88
setenv =
88
89
{[testenv]setenv}
@@ -92,8 +93,8 @@ commands =
92
93
93
94
[testenv:py27-trial]
94
95
deps =
96
+ {[testenv]deps}
95
97
twisted
96
- {env:_PYTEST_TOX_EXTRA_DEP:}
97
98
commands =
98
99
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/test_unittest.py}
99
100
@@ -103,8 +104,8 @@ commands = {[testenv:py27-trial]commands}
103
104
104
105
[testenv:py27-numpy]
105
106
deps =
107
+ {[testenv]deps}
106
108
numpy
107
- {env:_PYTEST_TOX_EXTRA_DEP:}
108
109
commands =
109
110
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/python/approx.py}
110
111
@@ -116,11 +117,13 @@ commands = {[testenv:py27-numpy]commands}
116
117
setenv =
117
118
{[testenv]setenv}
118
119
_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
121
123
122
124
[testenv:py37-pluggymaster]
123
125
setenv = {[testenv:py27-pluggymaster]setenv}
126
+ deps = {[testenv:py27-pluggymaster]deps}
124
127
125
128
[testenv:docs]
126
129
basepython = python3
@@ -136,8 +139,8 @@ commands =
136
139
basepython = python3
137
140
skipsdist = True
138
141
deps =
142
+ {[testenv]deps}
139
143
PyYAML
140
- {env:_PYTEST_TOX_EXTRA_DEP:}
141
144
commands =
142
145
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest doc/en
143
146
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest
0 commit comments