Repository navigation
Sphinx conf.py needs_version entry is outdated #86986
Description
Activity
The sphinx conf.py entry needs_version=1.8 (
Line 48 in 1470edd
| needs_sphinx = '1.8' |
is not in sync with the doc build requirements (
Line 6 in 1470edd
| sphinx==3.2.1 |
Possible solutions:
a) Drop the needs_version config value. It's optional.
b) Make sure to update both places.
c) Or at minimum add a comment that needs_version is only a safeguard against very old sphinx versions but is not necessarily sufficient to build.
This is related to bpo-42843, which is about deciding what the min sphinx should be. Since the alternative to 3.2 is some 2.x, 1,8 is certainly wrong.
Since the time of the discussion in #87009, it looks like the mentioned restrictions are now mostly gone:
- Debian stable now only has Sphinx 3.4.
- For deadsnakes, the maintainer confirmed that bumping Sphinx version is not an issue anymore.
- Ubuntu LTS has Sphinx 3.5.
- RHEL9 has Sphinx 3.4
- Fedora and Ubuntu were already ok last year
- SUSE is less clear to me. I think the rolling openSUSE is already using Sphinx 4.5.0 for Python 3.10. But Leap also has a Python 3.10 package which I think still builds doc with Sphinx 2.3.
Apparently for 3.11 we are clear. Since #92318 was also backported to 3.10, the SUSE package maintainers might appreciate a heads up.
Fixed on 3.10, 3.11, and 3.12.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields: