[yoga-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: I49deaf07aa3f50a8bb9e3191c864277990ac4dda
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
This commit is contained in:
Maksim Malchuk 2024-09-18 13:40:39 +03:00
parent df2eec1270
commit d230b3314f

View File

@ -3,6 +3,11 @@ minversion = 3.18
skipsdist = True
envlist = pep8,py38
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