From 7530949b1bbdabbd459ae1d970bdcf95e3b19ba5 Mon Sep 17 00:00:00 2001 From: Elod Illes Date: Wed, 18 Feb 2026 13:35:27 +0100 Subject: [PATCH] [CI][stable-only] Workaround for missing pkg_resources With recent virtualenv release (that bundles setuptools in it) tox jobs started to fail with 'missing pkg_resources module' errors. Since this is an old branch, where we have only python version <= 3.11 in gate jobs, it is enough to cap virtualenv to fix the gate. Change-Id: If10ce13899edaf6dc1d5798aee17842e54939bc7 Signed-off-by: Elod Illes (cherry picked from commit dd8c0613935834e312834cab7bf451736ed19fb6) --- tox.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tox.ini b/tox.ini index 010d25f8ac26..98131179c288 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,12 @@ [tox] minversion = 3.18.0 envlist = py3,functional,pep8 +# NOTE(elod.illes): latest virtualenv bundles setuptools 82.0.0, which +# dropped pkg_resources module source from the package, which is used +# in nova and other packages, thus virtualenv needs to be pinned to fix +# the gate. +requires = + virtualenv<20.37.0 [testenv] usedevelop = True