Skip to content

Commit 5821364

Browse files
author
Elod Illes
committed
[stable-only] Cap setuptools <71.0.0
py39 jobs (on ubuntu-focal) started to fail due to recent virtualenv release (20.26.4) on Yoga (which bundles setuptools), because we have 'packaging==21.3' in this branch that is not compatible with newer setuptools [1]. setuptools is bundled in virtualenv, so it has to be capped via the virtualenv package. tox also needed to be capped (<4) as gate uses tox 3.28.0, but with capping virtualenv we pull in latest tox as well, which would cause other errors. [1] pypa/setuptools#4483 Closes-Bug: #2082234 Change-Id: I08e57e3b4c905bd679038c89185e54f6ab79738a
1 parent 19ab990 commit 5821364

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tox.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ envlist = docs,py38,pep8
33
minversion = 3.18.0
44
skipsdist = False
55
ignore_basepython_conflict = True
6+
# Cap setuptools via virtualenv to prevent compatibility issue with yoga
7+
# branch's upper constraint of 'packaging' package (21.3).
8+
requires =
9+
virtualenv<20.26.4
10+
tox<4
611

712
[testenv]
813
basepython = {env:TOX_PYTHON:python3}

0 commit comments

Comments
 (0)