From 8ce04b9e70747fb01759fd3b0d77eb0b265d9780 Mon Sep 17 00:00:00 2001 From: Elod Illes Date: Fri, 20 Dec 2024 11:42:24 +0100 Subject: [PATCH] [stable-only] Cap setuptools <71.0.0 py38 jobs (on ubuntu-focal) started to fail (see the relevant github issue [1]) due to recent virtualenv release (20.26.4; which bundles setuptools). 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: I7681e2457e44fc71dc6ea4c54ab92d39e7fa6db3 --- tox.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tox.ini b/tox.ini index 215c22c0..67b3b475 100644 --- a/tox.ini +++ b/tox.ini @@ -7,6 +7,12 @@ envlist = py38,py36,pep8 # this allows tox to infer the base python from the environment name # and override any basepython configured in this file 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 + setuptools<71.0.0 [testenv] basepython = python3