Add setuptools version constraint in requirements.txt#262
Merged
Conversation
Read the Docs builds started failing March 5 with:
```
python -m sphinx -T -b html -d _build/doctrees -D language=en . $READTHEDOCS_OUTPUT/html
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/docs/checkouts/readthedocs.org/user_builds/cefi-regional-mom6/envs/latest/lib/python3.11/site-packages/sphinx/__main__.py", line 13, in <module>
from sphinx.cmd.build import main
File "/home/docs/checkouts/readthedocs.org/user_builds/cefi-regional-mom6/envs/latest/lib/python3.11/site-packages/sphinx/cmd/build.py", line 26, in <module>
from sphinx.application import Sphinx
File "/home/docs/checkouts/readthedocs.org/user_builds/cefi-regional-mom6/envs/latest/lib/python3.11/site-packages/sphinx/application.py", line 42, in <module>
from sphinx.registry import SphinxComponentRegistry
File "/home/docs/checkouts/readthedocs.org/user_builds/cefi-regional-mom6/envs/latest/lib/python3.11/site-packages/sphinx/registry.py", line 22, in <module>
from pkg_resources import iter_entry_points
ModuleNotFoundError: No module named 'pkg_resources'
```
setuptools version 82.0.0, released Feb 8 2026, removed pkg_resources (https://setuptools.pypa.io/en/latest/history.html#v82-0-0)
This PR adds setuptools<82.0.0 to requirements.txt to attempt to fix this.
Contributor
Author
|
This does build successfully on my local machine |
Collaborator
|
I wanted to run this in my workstation, but I ran into issues with doxygen. In any case, it's a pretty minor change that is documented on the setuptools website, so I think we can go ahead and merge it in |
uwagura
approved these changes
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Read the Docs builds started failing March 5 with:
setuptools version 82.0.0, released Feb 8 2026, removed pkg_resources (https://setuptools.pypa.io/en/latest/history.html#v82-0-0)
This PR adds setuptools<82.0.0 to requirements.txt to attempt to fix this.