Fix incompatibility with tox 2.5

Apparently on tox 2.5, `usedevelop` overrides `skip_install`, so we end up
trying to install the full dependencies even for the `-old` environment.
This commit is contained in:
Richard van der Hoff 2021-04-08 16:21:32 +01:00
parent e2b8a90897
commit 5edd91caec
2 changed files with 13 additions and 6 deletions

1
changelog.d/9769.misc Normal file
View File

@ -0,0 +1 @@
Fix incompatibility with `tox` 2.5.

18
tox.ini
View File

@ -104,7 +104,8 @@ usedevelop=true
# A test suite for the oldest supported versions of Python libraries, to catch # A test suite for the oldest supported versions of Python libraries, to catch
# any uses of APIs not available in them. # any uses of APIs not available in them.
[testenv:py35-old] [testenv:py35-old]
skip_install=True skip_install = true
usedevelop = false
deps = deps =
# Old automat version for Twisted # Old automat version for Twisted
Automat == 0.3.0 Automat == 0.3.0
@ -136,7 +137,8 @@ commands =
python -m synmark {posargs:} python -m synmark {posargs:}
[testenv:packaging] [testenv:packaging]
skip_install=True skip_install = true
usedevelop = false
deps = deps =
check-manifest check-manifest
commands = commands =
@ -154,7 +156,8 @@ extras = lint
commands = isort -c --df --sp setup.cfg {[base]lint_targets} commands = isort -c --df --sp setup.cfg {[base]lint_targets}
[testenv:check-newsfragment] [testenv:check-newsfragment]
skip_install = True skip_install = true
usedevelop = false
deps = towncrier>=18.6.0rc1 deps = towncrier>=18.6.0rc1
commands = commands =
python -m towncrier.check --compare-with=origin/develop python -m towncrier.check --compare-with=origin/develop
@ -163,7 +166,8 @@ commands =
commands = {toxinidir}/scripts-dev/generate_sample_config --check commands = {toxinidir}/scripts-dev/generate_sample_config --check
[testenv:combine] [testenv:combine]
skip_install = True skip_install = true
usedevelop = false
deps = deps =
coverage coverage
pip>=10 ; python_version >= '3.6' pip>=10 ; python_version >= '3.6'
@ -173,14 +177,16 @@ commands=
coverage report coverage report
[testenv:cov-erase] [testenv:cov-erase]
skip_install = True skip_install = true
usedevelop = false
deps = deps =
coverage coverage
commands= commands=
coverage erase coverage erase
[testenv:cov-html] [testenv:cov-html]
skip_install = True skip_install = true
usedevelop = false
deps = deps =
coverage coverage
commands= commands=