Fix(deps): Pin setuptools<82 to retain pkg_resources module 37/143437/1
authorMatthew Watkins <mwatkins@linuxfoundation.org>
Tue, 3 Mar 2026 15:03:01 +0000 (15:03 +0000)
committerMatthew Watkins <mwatkins@linuxfoundation.org>
Tue, 3 Mar 2026 15:03:57 +0000 (15:03 +0000)
Setuptools v82.0.0 removed the bundled pkg_resources module entirely.
This breaks RTD builds because sphinxcontrib-blockdiag (and
sphinxcontrib-seqdiag via blockdiag) import pkg_resources at the
module level, causing:

  ModuleNotFoundError: No module named 'pkg_resources'

Pin setuptools>=65.0.0,<82 in the docs requirements and example
templates to ensure pkg_resources remains available at build time.
Both sphinxcontrib-blockdiag and sphinxcontrib-seqdiag are
unmaintained (last released 2020) and cannot be patched upstream.

Long-term, these diagram extensions should be replaced with
actively maintained alternatives that use importlib.metadata.

Issue-ID: CIMAN-33
Change-Id: I3c5a81ee8ba562d7f0a06c1abc59015ca9003ba3
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
docs/requirements-docs.txt
examples/sphinx/master/requirements-docs.txt
examples/sphinx/release/requirements-docs.txt

index fb5cb33..c159b59 100644 (file)
@@ -1,5 +1,5 @@
 # Compatibility
-setuptools>=65.0.0
+setuptools>=65.0.0,<82
 Pillow>=10.1.0
 
 # Core Sphinx
index 71df2ab..299a413 100644 (file)
@@ -1,3 +1,4 @@
+setuptools>=65.0.0,<82  # MIT; pinned <82 to retain pkg_resources for blockdiag/seqdiag
 sphinx>=4.2.0  # BSD
 sphinx-rtd-theme>=1.0.0  # MIT
 sphinxcontrib-blockdiag  # BSD
index 71df2ab..299a413 100644 (file)
@@ -1,3 +1,4 @@
+setuptools>=65.0.0,<82  # MIT; pinned <82 to retain pkg_resources for blockdiag/seqdiag
 sphinx>=4.2.0  # BSD
 sphinx-rtd-theme>=1.0.0  # MIT
 sphinxcontrib-blockdiag  # BSD