Skip to content

Commit 8766079

Browse files
author
Elod Illes
committed
[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. Conflicts: tox.ini Change-Id: If10ce13899edaf6dc1d5798aee17842e54939bc7 Signed-off-by: Elod Illes <elod.illes@est.tech> (cherry picked from commit dd8c061) (cherry picked from commit 7530949)
1 parent 422d33e commit 8766079

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ envlist = py39,functional,pep8
55
# env and ignore basepython inherited from [testenv] if we set
66
# ignore_basepython_conflict.
77
ignore_basepython_conflict = True
8+
# NOTE(elod.illes): latest virtualenv bundles setuptools 82.0.0, which
9+
# dropped pkg_resources module source from the package, which is used
10+
# in nova and other packages, thus virtualenv needs to be pinned to fix
11+
# the gate.
12+
requires =
13+
virtualenv<20.37.0
814

915
[testenv]
1016
basepython = python3

0 commit comments

Comments
 (0)