summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Rosmaita <rosmaita.fossdev@gmail.com>2022-12-22 14:38:48 -0500
committerRodrigo Barbieri <rodrigo.barbieri2010@gmail.com>2023-02-09 12:56:42 -0300
commit8c4d7bf01f48660005cf397d40e34ce13d9bdc06 (patch)
treef4637f6fabe72e80d474db7411c3c7e3d7093f6c
parent679cf0726011f644024678f0446f19a654db405e (diff)
downloadcinder-8c4d7bf01f48660005cf397d40e34ce13d9bdc06.tar.gz
[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 426f6337b62a0b7e3307d89facb03f785c360e40)
-rw-r--r--.zuul.yaml2
-rw-r--r--tox.ini4
2 files changed, 5 insertions, 1 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index 8e0728cc1..d99eb007d 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -1,4 +1,6 @@
- project:
+ vars:
+ ensure_tox_version: '<4'
templates:
- openstack-python3-yoga-jobs
- openstack-python3-yoga-jobs-arm64
diff --git a/tox.ini b/tox.ini
index 90dbd534e..0010ca350 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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