From: Anil Belur Date: Fri, 16 Aug 2024 02:29:46 +0000 (+1000) Subject: Fix: Pin setuptools to 70.2.0 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F38%2F73138%2F1;p=releng%2Fglobal-jjb.git Fix: Pin setuptools to 70.2.0 A new version of setuptools==72.2.0 is not compatible with python 3.12.4 and JJB 6.3.0 which results in the following errors. This requires adding pkg_resources.extern to the hidden imports for setuptools >= 70.0 ERROR:stevedore.extension:Could not load 'delete': No module named 'pkg_resources.extern' Issue: RELENG-5555 Change-Id: I24bc5c97420ca635a719e28e8fc5f61e8ffa1097 Signed-off-by: Anil Belur --- diff --git a/releasenotes/notes/pin-setuptools-70.2.0-f9ec00000f35a7bf.yaml b/releasenotes/notes/pin-setuptools-70.2.0-f9ec00000f35a7bf.yaml new file mode 100644 index 00000000..c39c1487 --- /dev/null +++ b/releasenotes/notes/pin-setuptools-70.2.0-f9ec00000f35a7bf.yaml @@ -0,0 +1,10 @@ +--- +fixes: + - | + A new version of setuptools==72.2.0 is not compatible with + the python 3.12.4 and JJB 6.3.0 which results in errors. + This requires adding pkg_resources.extern to the + hidden imports for setuptools >= 70.0. + + ERROR:stevedore.extension:Could not load 'delete': No module + named 'pkg_resources.extern' diff --git a/tox.ini b/tox.ini index 820a0afd..046173c0 100644 --- a/tox.ini +++ b/tox.ini @@ -33,7 +33,7 @@ basepython = python3 deps = jenkins-job-builder==6.3.0 # RELENG-5179 (undeclared dependency by stevedore) - setuptools + setuptools==70.2.0 commands = jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test