Skip to content

Commit 139f2fe

Browse files
author
Elod Illes
committed
[CI][stable-only] Fix py311 and validate jobs
The two jobs are failing with error: ModuleNotFoundError: No module named 'pkg_resources' This is because recent setuptools (>=82.0.0) dropped pkg_resource module from its source. Hence the workaround is to cap it for py311 and validate jobs. Change-Id: I80b7aa537610ac5d35fa1b4c04f5246ec85a170e Signed-off-by: Elod Illes <elod.illes@est.tech>
1 parent 4ba03e9 commit 139f2fe

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tox.ini

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ deps = -c{toxinidir}/upper-constraints.txt
1212
commands =
1313
stestr run {posargs}
1414

15+
[testenv:py311]
16+
deps = -c{toxinidir}/upper-constraints.txt
17+
-r{toxinidir}/requirements.txt
18+
-r{toxinidir}/test-requirements.txt
19+
setuptools<82.0.0
20+
1521
[testenv:py38-check-uc]
1622
allowlist_externals =
1723
check-conflicts
@@ -56,6 +62,10 @@ commands = generate-constraints {posargs: -b blacklist.txt -r global-requirement
5662
[testenv:validate]
5763
allowlist_externals =
5864
validate-constraints
65+
deps = -c{toxinidir}/upper-constraints.txt
66+
-r{toxinidir}/requirements.txt
67+
-r{toxinidir}/test-requirements.txt
68+
setuptools<82.0.0
5969
commands =
6070
validate-constraints {toxinidir}/global-requirements.txt {toxinidir}/upper-constraints.txt {toxinidir}/blacklist.txt
6171

0 commit comments

Comments
 (0)