[stable-only] Cap setuptools <20.26.4

py39 jobs (on ubuntu-focal) started to fail due to recent setuptools
release (20.26.4) on Yoga, because we have 'packaging==21.3' in this
branch that is not compatible with the new 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] https://github.com/pypa/setuptools/issues/4483

Change-Id: Ie3fe3060d05d2553c5eeb7fd75b41e8f04bf11a7
This commit is contained in:
Elod Illes 2024-09-10 13:04:20 +02:00
parent 880a34871d
commit c5dae90923

View File

@ -5,6 +5,11 @@ envlist = py39,functional,pep8
# env and ignore basepython inherited from [testenv] if we set
# ignore_basepython_conflict.
ignore_basepython_conflict = True
# Cap setuptools via virtualenv to prevent compatibility issue with yoga
# branch's upper constraint of 'packaging' package (21.3).
requires =
virtualenv<20.26.4
tox<4
[testenv]
basepython = python3