[stable-only] Pin tox <4
Continue to use tox 3 in the stable branches.
Two changes:
- .zuul.yaml: set the ensure_tox_version to use <4, which will
tell zuul to install tox<4 if it's not present
- tox.ini: set requires=tox<4 so that if tox has been installed
already, our tox-based jobs will use tox 3 to run the tests
Change-Id: Ica4c0a1d4f861e528ce8995766e82541dc710e0f
(cherry picked from commit 22a3169576
)
This commit is contained in:
@@ -38,6 +38,8 @@
|
|||||||
tox_envlist: functional-py39
|
tox_envlist: functional-py39
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
|
vars:
|
||||||
|
ensure_tox_version: '<4'
|
||||||
templates:
|
templates:
|
||||||
- check-requirements
|
- check-requirements
|
||||||
- lib-forward-testing-python3
|
- lib-forward-testing-python3
|
||||||
|
1
tox.ini
1
tox.ini
@@ -2,6 +2,7 @@
|
|||||||
distribute = False
|
distribute = False
|
||||||
envlist = py3,pep8
|
envlist = py3,pep8
|
||||||
minversion = 3.18.0
|
minversion = 3.18.0
|
||||||
|
requires = tox<4
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
# this allows tox to infer the base python from the environment name
|
# this allows tox to infer the base python from the environment name
|
||||||
# and override any basepython configured in this file
|
# and override any basepython configured in this file
|
||||||
|
Reference in New Issue
Block a user