Skip to content

Commit ae874a5

Browse files
committed
Fix Read the Docs build: pin setuptools<82 for pkg_resources
setuptools 82.0.0 removed pkg_resources; the doc build and avocado.core use it. Pin setuptools>=45.0.0,<82 in requirements-doc.txt and in setup.py install_requires so docs build and all users get a working setuptools until avocado migrates off pkg_resources. Reference: Assisted-By: Cursor-Claude-4-Sonnet Signed-off-by: Harvey Lynden <hlynden@redhat.com>
1 parent cbea52d commit ae874a5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

requirements-doc.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
sphinx-rtd-theme==2.0.0
2+
# Pin <82: setuptools 82.0.0+ removed pkg_resources (avocado.core still uses it at doc build time)
3+
setuptools>=45.0.0,<82

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,5 +509,6 @@ def run(self):
509509
"plugin": Plugin,
510510
"test": Test,
511511
},
512-
install_requires=["setuptools"],
512+
# Pin setuptools<82: 82.0.0+ removed pkg_resources, which avocado.core still uses
513+
install_requires=["setuptools>=45.0.0,<82"],
513514
)

0 commit comments

Comments
 (0)