GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Increase minimum supported Sphinx to 7.2.6 · Issue #125277 · python/cpython

Increase minimum supported Sphinx to 7.2.6 #125277

New issue
Copy link
New issue
Copy link
Closed
Closed
Increase minimum supported Sphinx to 7.2.6#125277
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir

Description

@AA-Turner
AA-Turner
opened on Oct 10, 2024
Issue body actions

Documentation

Python 3.13 has been released, so I looked to review the minimum Sphinx version.

Using the same survey as #109209 (comment) and #117928:

Distro CPython Sphinx
Debian 13 Trixie (testing) 3.12.6 7.4.7
Debian Sid (unstable) 3.12.6 7.4.7
Debian (experimental) 3.12.6 N/A
Fedora 39 (EOL 12/11/2024) 3.12.6 6.2.1
Fedora 40 3.12.6 7.2.6
Fedora 41 3.13.0 7.3.7
Fedora rawhide 3.13.0 7.3.7
Gentoo N/A N/A
openSUSE Leap   8.0.2
openSUSE Tumbleweed   8.0.2
RHEL N/A N/A
Minimum Sphinx version for 3.12 3.12 7.2.6 †

† The blocker to updating is Fedora 39, which is end-of-life in a month's time. cc @hroncok -- would you prefer we wait until November until the actual EOL date?

Sphinx 7.2 has support for documenting generic classes and :no-typesetting:. Sadly .. py:type:: is new in Sphinx 7.4, so we need to wait for Fedora 40's end-of-life (13 May 2025) to use it.

References:

  • https://qa.debian.org/madison.php?package=python3
  • https://qa.debian.org/madison.php?package=sphinx
  • https://packages.debian.org/trixie/python3
  • https://packages.debian.org/trixie/python3-sphinx
  • https://fedorapeople.org/groups/schedule/f-39/f-39-key-tasks.html
  • https://packages.fedoraproject.org/pkgs/python3.12/python3/
  • https://packages.fedoraproject.org/pkgs/python3.13/python3/
  • https://packages.fedoraproject.org/pkgs/python-sphinx/python3-sphinx/
  • https://software.opensuse.org/package/python-Sphinx

cc:

  • @doko42 @mitya57 / Debian
  • @hroncok / Fedora / RHEL
  • @mgorny / Gentoo
  • @danigm @mcepl / openSUSE
  • @AA-Turner @hugovk / CPython

Linked PRs

  • GH-125277: Increase minimum supported Sphinx to 7.2.6 #125368
  • [3.13] GH-125277: Increase minimum supported Sphinx to 7.2.6 (GH-125368) #125720
  • [3.12] GH-125277: Increase minimum supported Sphinx to 7.2.6 (GH-125368) #125721
Reacted by Hugo van Kemenade, Miro Hrončok and Kirill Podoprigora

Activity

  1. AA-Turner
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Oct 10, 2024
  2. hroncok commented on Oct 10, 2024

    @hroncok
    hroncok
    on Oct 10, 2024
    Contributor
    More actions
    • Python 3.12.8 is planned for 2024-12-03.
    • Fedora 39 end of life is planned for 2024-11-19.

    I can accept that chance. In the unlikely event Python 3.12.8 is released before Fedora 39 goes EOL, if the documentation no longer builds with Sphinx 6.2.1, we'll ship that last update without updating the docs.

    ack, do it

    Reacted by Adam Turner
  3. danigm commented on Oct 11, 2024

    @danigm
    danigm
    on Oct 11, 2024
    Contributor
    More actions

    cc @mcepl / openSUSE

  4. mcepl commented on Oct 12, 2024

    @mcepl
    mcepl
    on Oct 12, 2024
    Contributor
    More actions

    openSUSE Leap 8.0.2

    This is not correct, for the general Python packages we need to use Python 3.6-based Sphinx, which is currently 4.2.0 at best.

    @danigm Any thoughts on what to do with this? Porting some recent Sphinx to 3.6?

  5. mgorny commented on Oct 12, 2024

    @mgorny
    mgorny
    on Oct 12, 2024
    Contributor
    More actions

    Gentoo's oldest is 7.4.7, and I suppose we'll remove that sooner than later (the next oldest is 8.0.2).

    Reacted by Adam Turner
  6. AA-Turner commented on Oct 12, 2024

    @AA-Turner
    AA-Turner
    on Oct 12, 2024
    MemberAuthor
    More actions

    @mcepl apologies -- I looked here, which shows:

    image

    Previously, @danigm said:

    So for future releases we can just use this modern version of Sphinx to build the python interpreter documentation.

    So in this specific case, you can forget about the old 4.2.0 version and it should be okay to set the minimum supported Sphinx to 6.2.1. Shouldn't be a problem in openSUSE.

    Note that this change will be for Python 3.12+, older branches will keep their current minimum-supported versions.

    A

  7. mcepl commented on Oct 13, 2024

    @mcepl
    mcepl
    on Oct 13, 2024
    Contributor
    More actions

    @mcepl apologies -- I looked here, which shows:

    Yeah, it is confusing. The problem is (I believe my Red Hat colleagues can sympathize), that we have promised to keep API for the whole length of SLE-15 life (GA was 2018-06-25), and nobody thought that we will have to maintain Python 3.6 for howevermany years we will support SLE-15. We will have to make some internal-only closed solution, but so far it was enough just to patch out any incompatible features of documentation. I guess, we are now on the brink of the need to do something more drastic.

  8. AA-Turner commented on Oct 13, 2024

    @AA-Turner
    AA-Turner
    on Oct 13, 2024
    MemberAuthor
    More actions

    Thank you for the helpful background context, I don't envy you in needing to maintain Python 3.6 for nearly 7 years now...

    In terms of this issue, our minimum supported Sphinx version currently requires Python 3.8+ (the last version supporting Python 3.6 was v5.3), so per Daniel Garcia's previous comments I think we should be alright to update the minimum supported version here in CPython.

    I'll hold off until Monday before merging the PR, though if it causes problems we can always undo it later.

    A

  9. danigm commented on Oct 14, 2024

    @danigm
    danigm
    on Oct 14, 2024
    Contributor
    More actions

    openSUSE Leap 8.0.2

    This is not correct, for the general Python packages we need to use Python 3.6-based Sphinx, which is currently 4.2.0 at best.

    @danigm Any thoughts on what to do with this? Porting some recent Sphinx to 3.6?

    We can build modern python in SLE-15 / Leap using the Sphinx 7.2.6 that we've right now in the python 3.11 stack. Indeed this is what I'm doing to be able to build python 3.13 for SLE-15-SP7, so I think that this change for python 3.12+ is not a big deal for us.

    Reacted by Hugo van Kemenade
  10. mcepl commented on Oct 14, 2024

    @mcepl
    mcepl
    on Oct 14, 2024
    Contributor
    More actions

    We can build modern python in SLE-15 / Leap using the Sphinx 7.2.6 that we've right now in the python 3.11 stack. Indeed this is what I'm doing to be able to build python 3.13 for SLE-15-SP7, so I think that this change for python 3.12+ is not a big deal for us.

    If it works, then we are saved!

  11. AA-Turner
    added a commit that references this issue on Oct 19, 2024

    GH-125277: Increase minimum supported Sphinx to 7.2.6 (#125368)

    2bb7ab7
  12. miss-islington
    added 2 commits that reference this issue on Oct 19, 2024

    pythonGH-125277: Increase minimum supported Sphinx to 7.2.6 (pythonGH…

    be0339e

    pythonGH-125277: Increase minimum supported Sphinx to 7.2.6 (pythonGH…

    12f0cda
  13. AA-Turner
    closed this as completedon Oct 19, 2024
  14. AA-Turner
    added 2 commits that reference this issue on Oct 19, 2024

    [3.13] GH-125277: Increase minimum supported Sphinx to 7.2.6 (GH-125368…

    fbbc79e

    [3.12] GH-125277: Increase minimum supported Sphinx to 7.2.6 (GH-125368…

    2ce10b1
  15. hugovk
    added a commit that references this issue on Oct 20, 2024

    Revert "pythonGH-125277: Increase minimum supported Sphinx to 7.2.6 (p…

    2edcc8f
  16. ebonnal
    added a commit that references this issue on Jan 12, 2025

    pythonGH-125277: Increase minimum supported Sphinx to 7.2.6 (python#1…

    aac2674
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirDocumentation in the Doc dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.