From 0148b9b44f2af07eb033ceeb6185b95a711329d9 Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Fri, 16 Aug 2024 12:29:46 +1000 Subject: [PATCH] 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 --- releasenotes/notes/pin-setuptools-70.2.0-f9ec00000f35a7bf.yaml | 10 ++++++++++ tox.ini | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/pin-setuptools-70.2.0-f9ec00000f35a7bf.yaml 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 -- 2.16.6