Skip to content

Docs: Upgrade Sphinx to 9.1 - #159945

Merged
StanFromIreland merged 4 commits into
python:mainfrom
StanFromIreland:sphinx-9.1.1
Nov 2, 2026
Merged

StanFromIreland merged 4 commits into
python:mainfrom
StanFromIreland:sphinx-9.1.1

Conversation

@StanFromIreland

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!

@read-the-docs-community

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

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

± Modified

Comment thread Doc/requirements.txt Resolved
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@hugovk

hugovk commented Oct 20, 2026

Copy link
Copy Markdown
Member

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

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

But please test the preview in the meantime :)

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

AA-Turner commented Oct 20, 2026 •

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

@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?

@StanFromIreland
StanFromIreland marked this pull request as ready for review October 31, 2026 09:48
@StanFromIreland

Copy link
Copy Markdown
Member Author

Two weeks have passed.

@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.

@StanFromIreland

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.

@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).

@picnixz

picnixz commented Oct 31, 2026 •

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)

@StanFromIreland

Copy link
Copy Markdown
Member Author

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

@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.

@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).

@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:

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.

@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?

@AA-Turner

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

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.

@hugovk

hugovk commented Nov 2, 2026

Copy link
Copy Markdown
Member

Let's drop the NEWS and we can merge.

@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
@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

Copy link
Copy Markdown

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

@miss-islington-app

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

@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.

@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.

@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
(cherry picked from commit 10bec81)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
StanFromIreland added a commit that referenced this pull request Nov 2, 2026
(cherry picked from commit 10bec81)

Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants