summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBalazs Gibizer <balazs.gibizer@est.tech>2021-09-22 17:54:23 +0200
committerElod Illes <elod.illes@est.tech>2021-10-11 17:28:05 +0200
commit85cda94e672a9ca0f512589d543a5a6659d285ad (patch)
treed14b1c590ff0044d91c1d12035a055fff70d1e03
parentcf092e8e40d7a58f32606b71904ee7af7d97c3e8 (diff)
downloadnova-85cda94e672a9ca0f512589d543a5a6659d285ad.tar.gz
[stable-only] Pin virtualenv and setuptools
Setuptools 58.0 (bundled in virtualenv 20.8) breaks the installation of decorator 3.4.0. So this patch pins virtualenv to avoid the break. As the used 'require' feature was introduced in tox in version 3.2 [1], the required minversion has to be bumped, too. [1] https://tox.readthedocs.io/en/latest/config.html#conf-requires Conflicts: tox.ini NOTE(elod.illes): The conflict is because change I331c42a1a79b8a79d9afd04edb136c8c31dc483c is not in Stein. Change-Id: I26b2a14e0b91c0ab77299c3e4fbed5f7916fe8cf (cherry picked from commit b27f8e9adfcf2db3c83722c42e055ba5065ad06e) (cherry picked from commit f1be212a86262f128e73f7201b7b3e51334f1ab4)
-rw-r--r--tox.ini6
1 files changed, 5 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 5bf028768b..1e77bfed7b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,11 +1,15 @@
[tox]
-minversion = 3.1.1
+minversion = 3.2.0
envlist = py{27,35},functional,pep8
skipsdist = True
# Automatic envs (pyXX) will use the python version appropriate to that
# env and ignore basepython inherited from [testenv]. That's what we
# want, and we don't need to be warned about it.
ignore_basepython_conflict = True
+# Pin the virtualenv and therefore the setuptools version used for the env
+# creation. This results in a new tox being installed in .tox/.tox virtualenv
+# and the tox on the host will delegate all the calls to the tox in that env.
+requires = virtualenv<20.8
[testenv]
basepython = python3