[stable-only] Pin tox <4

Continue to use tox 3 until we decide how to do the transition
to tox 4 in the stable branches.  Two changes:

- .zuul.yaml: set the ensure_tox_version to use <4, which will
  tell the host to install a tox 3 package ... but:
- tox.ini: from experimentation, it looks like if tox needs to
  install anything from the 'requires' key in the core section,
  it will also upgrade itself (in the .tox/.tox directory) to
  the latest tox version, so add a cap on tox to the 'requires'
  list

Change-Id: I3c22ff2d6e2951c6a8ba110d4393a399480e0f3f
(cherry picked from commit 426f6337b6)
This commit is contained in:
Brian Rosmaita 2022-12-22 14:38:48 -05:00 committed by Rodrigo Barbieri
parent 679cf07260
commit 8c4d7bf01f
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,6 @@
- project:
vars:
ensure_tox_version: '<4'
templates:
- openstack-python3-yoga-jobs
- openstack-python3-yoga-jobs-arm64

View File

@ -1,6 +1,8 @@
[tox]
minversion = 3.18.0
requires = virtualenv>=20.4.2
requires =
virtualenv>=20.4.2
tox<4
skipsdist = True
# python runtimes: https://governance.openstack.org/tc/reference/project-testing-interface.html#tested-runtimes
envlist = py3,compliance,pep8