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 — Docs: Upgrade Sphinx to 9.1 by StanFromIreland · Pull Request #159945 · python/cpython

Conversation

@StanFromIreland

@StanFromIreland StanFromIreland commented Oct 20, 2026

Copy link
Copy Markdown
Member

Sphinx 9.1.1 was recently released, and it fixed the previous blockers for us using Sphinx 9. Let's try it!

Please test the RtD preview and let me know if there are any issues!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@StanFromIreland
Switch to Sphinx 9.1.1
377146f
@StanFromIreland
StanFromIreland requested review from AA-Turner and hugovk as code owners October 20, 2026 19:12
@bedevere-app bedevere-app Bot added the awaiting core review label Oct 20, 2026
@StanFromIreland StanFromIreland added docs Documentation in the Doc dir skip issue skip news and removed awaiting core review labels Oct 20, 2026
@github-project-automation github-project-automation Bot added this to Docs PRs Oct 20, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Oct 20, 2026
@read-the-docs-community

read-the-docs-community Bot commented Oct 20, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35591676 | 📁 Comparing 0dcc342 against main (f5bd077)

  🔍 Preview build  

164 files changed · + 1 added · ± 163 modified

+ Added

  • c-api/pyexpat.html

± Modified

  • glossary.html
  • license.html
  • builtins/exceptions.html
  • builtins/functions.html
  • builtins/stdtypes.html
  • c-api/bool.html
  • c-api/buffer.html
  • c-api/bytes.html
  • c-api/code.html
  • c-api/codec.html
  • and 153 more...
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

AA-Turner
AA-Turner reviewed Oct 20, 2026
View reviewed changes
Comment thread Doc/requirements.txt Resolved

Uh oh!

There was an error while loading. Please reload this page.

@StanFromIreland @AA-Turner
simplify
a3a53d8
Co-authored-by: Adam Turner <[email protected]>
@hugovk

hugovk commented Oct 20, 2026

Copy link
Copy Markdown
Member

Converting to draft while the 14 day cooldown is in effect:

cpython/Doc/Makefile

Line 191 in 377146f

# Dependencies have a 14 day cooldown period to mitigate supply chain attacks,

But please test the preview in the meantime :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hugovk
hugovk marked this pull request as draft October 20, 2026 21:01
@AA-Turner

AA-Turner commented Oct 20, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

except for blurb, python-docs-theme, and sphinx_linklint, which are maintained by core team members

Sphinx is also maintained by (multiple) core developers... would it make more sense to do case-by-case exclusions where a newer version than a fortnight ago is needed?

A

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hugovk

hugovk commented Oct 21, 2026

Copy link
Copy Markdown
Member

By multiple core devs, and also multiple others :) I have security on my mind right now, so prefer to err on the cautious.

It's a long time since the last release, but I don't think we're waiting on anything in particular, other than upgrading to keep current, so don't need to rush?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@StanFromIreland
StanFromIreland marked this pull request as ready for review October 31, 2026 09:48
@bedevere-app bedevere-app Bot added the awaiting core review label Oct 31, 2026
@StanFromIreland

StanFromIreland commented Oct 31, 2026

Copy link
Copy Markdown
Member Author

Two weeks have passed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@picnixz

picnixz commented Oct 31, 2026

Copy link
Copy Markdown
Member

This may sound stupid, but I think it'd be good if we announce those changes in NEWS entries. Now that people are more aware of version pinning, they may want to know in advance what will happen for upgrades.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@StanFromIreland

StanFromIreland commented Oct 31, 2026

Copy link
Copy Markdown
Member Author

Hmm, could you please elaborate a little as to who the target audience would be? I presume distributors use what we have pinned, rather than maintaining a separate pinned set.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@picnixz

picnixz commented Oct 31, 2026

Copy link
Copy Markdown
Member

It's just about knowing that and being updated online in advance. But if we didn't do it for the past updates, no need to do it for this one. However, the changelogs contain mentions of updates in general (e.g. #125722 or #125277).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@StanFromIreland
Add a news entry
866f968
@StanFromIreland
StanFromIreland requested a review from picnixz October 31, 2026 12:54
@picnixz

picnixz commented Oct 31, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

I guess since we also had issues in the past, I suggest you to create the issue as well (if it's not already the case)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@StanFromIreland

StanFromIreland commented Oct 31, 2026

Copy link
Copy Markdown
Member Author

I attached it to the PR, I'm not sure there's additional benefit of an issue here?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@picnixz

picnixz commented Oct 31, 2026

Copy link
Copy Markdown
Member

I meant a real issue. Like we did for every past updates for Sphinx.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@picnixz

picnixz commented Oct 31, 2026

Copy link
Copy Markdown
Member

It's also a good idea to know why we are updating (for posterity).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hugovk

hugovk commented Oct 31, 2026

Copy link
Copy Markdown
Member

I don't think this needs a NEWS entry (or issue).

But if we didn't do it for the past updates, no need to do it for this one.

We didn't do it for the past updates, going back three years:

  • Docs: Upgrade Sphinx to 9.0 #142114
  • Docs: Upgrade Sphinx to 8.2 #130171
  • Doc: Upgrade Sphinx to 8.1 #125276
  • Docs: bump Sphinx to 8.0 and update constraints #122496
  • Docs: Upgrade Sphinx to 7.4 #121987
  • Docs: Upgrade to Sphinx 7.3 #118397
  • GH-99380: Update to Sphinx 7 #99381
  • Docs: upgrade to python-docs-theme 2023.7 #107617

However, the changelogs contain mentions of updates in general (e.g. #125722 or #125277).

Those issues are from when we were being extremely cautious about upgrading and checking downstream versions, and about being able to backport.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hugovk hugovk changed the title Switch to Sphinx 9.1.1 Docs: Upgrade Sphinx to 9.1 Oct 31, 2026
@picnixz

picnixz commented Oct 31, 2026

Copy link
Copy Markdown
Member

Ah! sorry for being overly-pedantic then. However, can you add either in the commit message or the PR description why we eventually updated to 9.1.1? (I think it was primarly to fix the chinese translations? or was it for something else?)

Actually we released 9.2 during the sprint I think, and I don't remember whether it's 9.1.1 which includes the translation fix by Hugo or if it's 9.2. I suppose we could directly update to 9.2 assuming Adam plans to do a 9.3 soon?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AA-Turner

AA-Turner commented Oct 31, 2026

Copy link
Copy Markdown
Member

No immediate plans for 9.3 soon -- 9.2 is mainly just version bumps so I think either 9.1.1 or 9.2 would be fine.

A

StanFromIreland reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@StanFromIreland

StanFromIreland commented Oct 31, 2026

Copy link
Copy Markdown
Member Author

I think it was primarly to fix the chinese translations? or was it for something else?

It's primarily to keep the version current, the Chinese translation search bug prevented us from upgrading to Sphinx 9 previously, but that is addressed in 9.1.1. Additionally, it would fix #159265, but that's a rather minor issue.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hugovk

hugovk commented Nov 2, 2026

Copy link
Copy Markdown
Member

Let's drop the NEWS and we can merge.

picnixz reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@StanFromIreland
Delete Misc/NEWS.d/next/Documentation/2026-10-31-12-52-12.gh-issue-15…
0dcc342
…9945.IUkm1A.rst
hugovk
hugovk approved these changes Nov 2, 2026
View reviewed changes
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels Nov 2, 2026
@hugovk hugovk added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Nov 2, 2026
@StanFromIreland
StanFromIreland merged commit 10bec81 into python:main Nov 2, 2026
38 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@StanFromIreland
StanFromIreland deleted the sphinx-9.1.1 branch November 2, 2026 20:49
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Nov 2, 2026
@miss-islington-app

miss-islington-app Bot commented Nov 2, 2026

Copy link
Copy Markdown

Thanks @StanFromIreland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the awaiting merge label Nov 2, 2026
@miss-islington-app

miss-islington-app Bot commented Nov 2, 2026

Copy link
Copy Markdown

Sorry, @StanFromIreland, I could not cleanly backport this to 3.14 due to a conflict.

Please backport manually with cherry_picker, see the devguide for more information.

cherry_picker 10bec81c43428621577834acbab569e3a6b559f7 3.14
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@miss-islington-app miss-islington-app Bot assigned StanFromIreland Nov 2, 2026
@bedevere-app

bedevere-app Bot commented Nov 2, 2026

Copy link
Copy Markdown

GH-161206 is a backport of this pull request to the 3.15 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Nov 2, 2026
@bedevere-app

bedevere-app Bot commented Nov 2, 2026

Copy link
Copy Markdown

GH-161207 is a backport of this pull request to the 3.14 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Nov 2, 2026
StanFromIreland added a commit that referenced this pull request Nov 2, 2026
@StanFromIreland @AA-Turner
[3.14] Docs: Upgrade Sphinx to 9.1 (GH-159945) (#161207)
96e1f2b
(cherry picked from commit 10bec81)

Co-authored-by: Adam Turner <[email protected]>
StanFromIreland added a commit that referenced this pull request Nov 2, 2026
@miss-islington @StanFromIreland @AA-Turner
[3.15] Docs: Upgrade Sphinx to 9.1 (GH-159945) (#161206)
9615515
(cherry picked from commit 10bec81)

Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@AA-Turner AA-Turner AA-Turner left review comments
@hugovk hugovk hugovk approved these changes
@picnixz picnixz Awaiting requested review from picnixz

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@StanFromIreland StanFromIreland

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

Docs PRs
Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@StanFromIreland @hugovk @AA-Turner @picnixz
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.
You are visitor 01402503 — 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.