Issue 42843: What min_sphinx for Python 3.10
Created on 2021-01-06 16:52 by mdk, last changed 2022-04-11 14:59 by admin. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 24142 | closed | mdk, 2021-01-06 16:54 | |
| PR 24282 | merged | mdk, 2021-01-21 02:08 | |
| Messages (8) | |||
|---|---|---|---|
| msg384512 - (view) | Author: Julien Palard (mdk) * ![]() |
Date: 2021-01-06 16:52 | |
According to [1] there's no concensus on which minimum Sphinx version we should use for Python 3.10. "sadly" since https://github.com/python/cpython/pull/23620 which make use of a Sphinx 3.2.0 only feature, we should bump it to 3.2, but it may not work for everybody. [1]: https://github.com/python/cpython/pull/23620#issuecomment-755420205 |
|||
| msg384514 - (view) | Author: Julien Palard (mdk) * ![]() |
Date: 2021-01-06 17:04 | |
In favor of Sphinx 3 only : - We have :no-trim-doctest-flags: which fixes https://bugs.python.org/issue36675 - backslash handing is different in Sphinx 2 and Sphinx 3: https://bugs.python.org/issue42822 In favor of keeping compatibility with Sphinx 2 : - Some distribs may want/need to ship Python 3.10 along with Sphinx 2? So I'm personally in favor of a full witch to Sphinx 3 with Python 3.10, but I'm open to hear everybody. |
|||
| msg384950 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2021-01-12 14:57 | |
> Some distribs may want/need to ship Python 3.10 along with Sphinx 2? In my experience, Linux distributions prefer to only ship a single Sphinx version. The question is more which Linux distributions are stuck at Sphinx 2 only? If there is a short list of Linux distributions which cannot use Sphinx 3, even just to build the Python documentation, would it be acceptable for them to stop shipping the Python documentation? In Fedora, the Python documentation is a separated package. For example, it allows us to upgrade Python while Fedora Rawhide was upgrade to Sphinx 3 but the Python documentation was not compatible with Sphinx 3 (fixed in bpo-40204). If you ask *me*: I mostly care about Fedora which already uses Sphinx 3.2, so I'm fine with requiring Sphinx 3.2 (the Python documentation is *not* compatible with Sphinx 3.0 and 3.1: see bpo-40204). If the minimum required Sphinx version changes, please document it properly at: https://docs.python.org/dev/whatsnew/3.10.html#build-changes |
|||
| msg384959 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2021-01-12 16:23 | |
Ah, the issue is also being discussed in PR 24142 comments. |
|||
| msg384963 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2021-01-12 16:38 | |
* Fedora 33 (stable) ships python3-sphinx 3.2.1-1 and python3.10 version 3.10.0~a3-1 (the alpha4 is under tests). * Debian Buster (stable) ships python3-sphinx 1.8.4-1 and python3 version 3.7.3-1 * Debian Sid (unstable) ships python3-sphinx 3.4.3-1 and python3 version 3.9.1-1. * Ubuntu Groovy (stable) ships python3-sphinx 3.2.1-1 and python3 version 3.8.6-0ubuntu1 * Ubuntu Hirsute (dev) ships python3-sphinx 3.3.1-1 and python3 version 3.9.0-3ubuntu1 In this list, requiring Sphinx 3.2+ to build Python 3.10 documentation would only be an issue on Debian Buster. I didn't check Red Hat RHEL or SUSE SLE. If they want to ship Python 3.10 but only have an old Sphinx, they can either use a newer Sphinx to build the doc, or ship Python 3.10 with no doc (since it would not be the "system Python", it may be an acceptable tradeoff). |
|||
| msg384965 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2021-01-12 16:46 | |
There is a PPA on Ubuntu for Python 3.10. The PPA maintainer considers the drop the documentation, see discussion at: https://github.com/python/cpython/pull/23620#issuecomment-755423140 |
|||
| msg385021 - (view) | Author: Matthias Klose (doko) * ![]() |
Date: 2021-01-13 11:30 | |
Ubuntu 20.04 LTS still sees subminor Python 3.8 version updates, and needs to use sphinx 1.8.5. |
|||
| msg385631 - (view) | Author: Julien Palard (mdk) * ![]() |
Date: 2021-01-25 14:46 | |
New changeset 5c1f15b4b1024cbf0acc85832f0c623d1a4605fd by Julien Palard in branch 'master': bpo-42843: Keep Sphinx 1.8 and Sphinx 2 compatibility (GH-24282) https://github.com/python/cpython/commit/5c1f15b4b1024cbf0acc85832f0c623d1a4605fd |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:39 | admin | set | github: 87009 |
| 2021-01-25 14:47:16 | mdk | set | status: open -> closed resolution: not a bug stage: patch review -> resolved |
| 2021-01-25 14:46:17 | mdk | set | messages: + msg385631 |
| 2021-01-21 02:08:31 | mdk | set | pull_requests: + pull_request23103 |
| 2021-01-13 11:30:12 | doko | set | nosy:
+ doko messages: + msg385021 |
| 2021-01-12 16:46:43 | vstinner | set | versions: + Python 3.10 |
| 2021-01-12 16:46:39 | vstinner | set | messages: + msg384965 |
| 2021-01-12 16:38:07 | vstinner | set | messages: + msg384963 |
| 2021-01-12 16:23:59 | vstinner | set | messages: + msg384959 |
| 2021-01-12 14:57:01 | vstinner | set | messages: + msg384950 |
| 2021-01-12 14:02:14 | corona10 | set | nosy:
+ vstinner, corona10 |
| 2021-01-06 17:04:03 | mdk | set | messages: + msg384514 |
| 2021-01-06 16:54:47 | mdk | set | keywords:
+ patch stage: patch review pull_requests: + pull_request22971 |
| 2021-01-06 16:52:46 | mdk | create | |
