From c5dae90923fdda6e406afc623d77c36a58837ba5 Mon Sep 17 00:00:00 2001 From: Elod Illes Date: Tue, 10 Sep 2024 13:04:20 +0200 Subject: [PATCH] [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 --- tox.ini | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tox.ini b/tox.ini index 92edcd7b4693..8df61ef43bbf 100644 --- a/tox.ini +++ b/tox.ini @@ -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