Fix(deps): Pin setuptools<82 to retain pkg_resources 12/143512/1
authorMatthew Watkins <mwatkins@linuxfoundation.org>
Thu, 5 Mar 2026 12:30:19 +0000 (12:30 +0000)
committerMatthew Watkins <mwatkins@linuxfoundation.org>
Thu, 5 Mar 2026 12:30:19 +0000 (12:30 +0000)
Setuptools v82.0.0 removed the bundled pkg_resources module.
RTD builds run 'pip install --upgrade setuptools' which installs 82.0.0,
then sphinxcontrib-needs fails with:
  ModuleNotFoundError: No module named 'pkg_resources'

Pin setuptools>=65.0.0,<82 in requirements-docs.txt (for RTD) and
tox.ini (for consistency) to retain pkg_resources until sphinxcontrib-needs
can be replaced with the actively maintained sphinx-needs package.

Issue-ID: CIMAN-33
Change-Id: Iccc3b307f7b6f6e48945e5a8041ddad9f91b5ced
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
docs/requirements-docs.txt
docs/tox.ini

index 5f21095..d2c30e9 100644 (file)
@@ -1,3 +1,4 @@
+setuptools>=65.0.0,<82
 sphinx>=4.2.0  # BSD
 sphinx-rtd-theme>=1.0.0  # MIT
 sphinxcontrib-mermaid>=1.0.0
index beff649..9caf5a5 100644 (file)
@@ -6,6 +6,7 @@ skipsdist = true
 [testenv:docs]
 basepython = python3.13
 deps =
+    setuptools>=65.0.0,<82
     -r{toxinidir}/requirements-docs.txt
     -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
 commands =