Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.11] gh-121277: Allow .. versionadded:: next in docs (GH-121278) (#124718)#127827

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
pablogsal merged 4 commits intopython:3.11fromencukou:dba992b-3.11
Dec 11, 2024

Conversation

encukou
Copy link
Member

@encukouencukou commentedDec 11, 2024
edited by github-actionsbot
Loading

Makeversionchanged:: next expand to current (unreleased) version.

When a new CPython release is cut, the release manager will replace
all such occurences of "next" with the just-released version.
(See the issue for release-tools and devguide PRs.)

Obviously, this is not a security fix. It's an internal feature meant to make backporting easier.
@pablogsal, do you want this in 3.11?

The cherry-pick had conflicts that needed some rework.


I tested locally by adding this to docs:

   ..versionadded::next   ..deprecated-removed::next 3.20   ..versionadded::3.18   ..deprecated-removed::3.18 3.20

With Sphinx 7.3.7:

image

With Sphinx 4.2.0 & other old reqs pinned inhttps://github.com/python/cpython/blob/3.11/Doc/requirements-oldest-sphinx.txt:

image


Co-authored-by: Adam Turner9087854+AA-Turner@users.noreply.github.com
Co-authored-by: Hugo van Kemenade1324225+hugovk@users.noreply.github.com
(cherry picked from commit7d24ea9)

Also backports follow-upGH-124623: Raise nice error onnext as second argument to deprecated-removed

(cherry-picked frome349f73)


📚 Documentation preview 📚:https://cpython-previews--127827.org.readthedocs.build/

…nGH-121278) (python#124718)Make `versionchanged:: next`` expand to current (unreleased) version.When a new CPython release is cut, the release manager will replaceall such occurences of "next" with the just-released version.(See the issue for release-tools and devguide PRs.)Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>(cherry picked from commit7d24ea9)pythongh-121277: Raise nice error on `next` as second argument to deprecated-removed (pythonGH-124623)(cherry-picked frome349f73)
sphinx.domains.changeset.VersionChange exists at least since Sphinx 2.1,according to:https://www.sphinx-doc.org/en/master/extdev/deprecated.html
@pablogsal
Copy link
Member

I'm happy to get this in yeah :)

@pablogsalpablogsalenabled auto-merge (squash)December 11, 2024 14:54
@pablogsalpablogsal merged commitf0895aa intopython:3.11Dec 11, 2024
23 checks passed
@encukouencukou deleted the dba992b-3.11 branchDecember 12, 2024 12:13
@encukouencukou added the needs backport to 3.10only security fixes labelDec 12, 2024
@miss-islington-app
Copy link

Thanks@encukou for the PR, and@pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

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

@pablogsalpablogsalpablogsal approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@encukou@pablogsal@ZeroIntensity

[8]ページ先頭

©2009-2025 Movatter.jp