Fix: Pin setuptools to 70.2.0 38/73138/1
authorAnil Belur <abelur@linuxfoundation.org>
Fri, 16 Aug 2024 02:29:46 +0000 (12:29 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Fri, 16 Aug 2024 02:37:58 +0000 (12:37 +1000)
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 <abelur@linuxfoundation.org>
releasenotes/notes/pin-setuptools-70.2.0-f9ec00000f35a7bf.yaml [new file with mode: 0644]
tox.ini

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 (file)
index 0000000..c39c148
--- /dev/null
@@ -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 820a0af..046173c 100644 (file)
--- 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