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 — Allow `.. versionadded:: next` in docs · Issue #121277 · python/cpython

Allow .. versionadded:: next in docs #121277

New issue
Copy link
New issue
Copy link
Closed
Closed
Allow .. versionadded:: next in docs#121277
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirtype-featureA feature request or enhancementA feature request or enhancement

Description

@encukou
encukou
opened on Jul 2, 2024
Issue body actions

Feature or enhancement

Proposal:

In a PR to CPython, the versionadded, versionchanged, versionremoved, deprecated, deprecated-removed directives in documentation should currently be set to the upcoming release.

This is inconvenient:

  • the numbers need to be changed in backports
  • if a PR misses a feature release, the number needs to be updated

It would be good to treat this more like News entries, which live in a next/ directory before a release, when the release manager bundles them up and assigns a version.

Concrete proposal:

  • Teach versionadded & the others to expand the version argument next to <version> (unreleased) (e.g. 3.14.0b0 (unreleased)).
  • Add a tool that replaces the next with a given string (e.g. 3.14).
  • Modify the release manager tooling to run the tool on release.
  • Add a check to release manager tooling that built HTML documentation for a fresh release does not include the string (unreleased). The RM should be able to skip this test, in case of a false positive.
  • Update the Devguide.
  • Announce in Discourse

Has this already been discussed elsewhere?

I have already discussed this feature proposal on Discourse

Links to previous discussion of this feature:

https://discuss.python.org/t/automating-versionadded-changed-markers-in-docs-to-expedite-prs/38423

Linked PRs

  • gh-121277: Allow .. versionadded:: next in docs #121278
  • gh-121277: Raise nice error on next as second argument to deprecated-removed #124623
  • [3.13] gh-121277: Allow .. versionadded:: next in docs (GH-121278) #124718
  • [3.12] [3.13] gh-121277: Allow .. versionadded:: next in docs (GH-121278) (GH-124718) #125980
  • [3.11] gh-121277: Allow .. versionadded:: next in docs (GH-121278) (#124718) #127827
  • [3.10] gh-121277: Allow .. versionadded:: next in docs (GH-121278) #127867
  • [3.9] gh-121277: Allow .. versionadded:: next in docs (GH-121278) #128117

Related PRs

  • release-tools PR: cpython#121277: Replace next versions in docs by the just-released version release-tools#164
  • devguide PR: Document next in versionadded & similar directives devguide#1413

Discourse announcement

  • https://discuss.python.org/t/versionadded-next/65280
Reacted by Nice Zombies, Gregory P. Smith and Zachary Ware

Activity

Next
  1. encukou
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Jul 2, 2024
  2. Eclips4
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Jul 2, 2024
  3. encukou commented on Jul 2, 2024

    @encukou
    encukou
    on Jul 2, 2024
    MemberAuthor
    More actions

    It might be better for the tool to live outside the cpython repo, like blurb.

    Reacted by Hugo van Kemenade
  4. gpshead commented on Jul 12, 2024

    @gpshead
    gpshead
    on Jul 12, 2024
    Member
    More actions

    It might be better for the tool to live outside the cpython repo, like blurb.

    The tool for replacing version "next" in .rst files with the number makes sense to keep in repo to me (as your draft PR does for now) as it is small. Really not a lot more than could be done with some inscrutable sed commands.

  5. encukou commented on Jul 22, 2024

    @encukou
    encukou
    on Jul 22, 2024
    MemberAuthor
    More actions

    It's small, but there can still be bugs in it, and it'd be easier to deal with those if we don't need to backport them.

    @hugovk You said elsewhere that you'd prefer the version-bumping tool to live outside CPython repo. Since it's so small, I'd add it (and its test) to https://github.com/python/release-tools directly. Would that work?

    You're a RM, so you get to choose the bikeshed paint here :)

    Reacted by Éric, Gregory P. Smith, Pradyun Gedam and Adam Turner
  6. hugovk commented on Jul 24, 2024

    @hugovk
    hugovk
    on Jul 24, 2024
    Member
    More actions

    @hugovk You said elsewhere that you'd prefer the version-bumping tool to live outside CPython repo. Since it's so small, I'd add it (and its test) to python/release-tools directly. Would that work?

    Yep, this sounds good 👍 🖌️

  7. encukou
    added 2 commits that reference this issue on Sep 24, 2024

    cpython#121277: Replace `next` versions in docs by the just-released …

    7814f13

    gh-121277: Allow `.. versionadded:: next` in docs (GH-121278)

    7d24ea9
  8. emilyemorehouse
    added a commit that references this issue on Sep 26, 2024

    Merge branch 'main' into fix-help-double-prompt

    4cdb3ae
  9. encukou
    added 2 commits that reference this issue on Sep 26, 2024

    pythongh-121277: Raise nice error on `next` as second argument to dep…

    3cc4298

    gh-121277: Raise nice error on `next` as second argument to deprecate…

    e349f73
  10. encukou
    added
    needs backport to 3.13only security fixesonly security fixes
    and removed
    needs backport to 3.13only security fixesonly security fixes
    on Sep 27, 2024
  11. encukou
    added 2 commits that reference this issue on Sep 27, 2024

    pythongh-121277: Allow `.. versionadded:: next` in docs (pythonGH-121278

    c339d39

    pythongh-121277: Raise nice error on `next` as second argument to dep…

    99cae0e
  12. 4 remaining items

  13. hugovk commented on Oct 28, 2024

    @hugovk
    hugovk
    on Oct 28, 2024
    Member
    More actions

    It worked well for 3.14.0a1, you can see the next -> 3.14 changes in 8cdaca8 👍

  14. encukou commented on Oct 28, 2024

    @encukou
    encukou
    on Oct 28, 2024
    MemberAuthor
    More actions

    Yup!
    Pre-releases and dot-0's do have slightly different behaviour though.

    Reacted by Hugo van Kemenade
  15. encukou
    added a commit that references this issue on Dec 11, 2024

    [3.11] pythongh-121277: Allow `.. versionadded:: next` in docs (pytho…

    f456e6f
  16. pablogsal
    added a commit that references this issue on Dec 11, 2024

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

    f0895aa
  17. encukou
    added 2 commits that reference this issue on Dec 12, 2024

    [3.10] pythongh-121277: Allow .. versionadded:: next in docs (pythonG…

    46ba07c

    [3.10] pythongh-121277: Allow .. versionadded:: next in docs (pythonG…

    eb042df
  18. pablogsal
    added a commit that references this issue on Dec 13, 2024

    [3.10] gh-121277: Allow .. versionadded:: next in docs (GH-121278) (#…

    8773554
  19. encukou
    added a commit that references this issue on Dec 20, 2024

    [3.9] pythongh-121277: Allow .. versionadded:: next in docs (pythonGH…

    65f01bb
  20. AA-Turner commented on Jan 11, 2025

    @AA-Turner
    AA-Turner
    on Jan 11, 2025
    Member
    More actions

    @encukou anything left here?

    A

  21. encukou commented on Jan 13, 2025

    @encukou
    encukou
    on Jan 13, 2025
    MemberAuthor
    More actions

    Łukasz's decision on backporting to 3.9, and then updating the devguide.

    Reacted by Adam Turner
  22. ambv
    added a commit that references this issue on Jan 23, 2025

    [3.9] gh-121277: Allow .. versionadded:: next in docs (GH-121278) (#1…

    8c8a257
  23. encukou commented on Jan 27, 2025

    @encukou
    encukou
    on Jan 27, 2025
    MemberAuthor
    More actions

    Devguide PR open: python/devguide#1503

    With that, I'll close this issue. Thank you everyone for feedback & reviews!

    Reacted by Adam Turner and Hugo van Kemenade
  24. encukou
    closed this as completedon Jan 27, 2025
  25. srsoftwaredev015
    added a commit that references this issue on Feb 9, 2026

    cpython#121277: Replace `next` versions in docs by the just-released …

    4487740
  26. icanhasmath
    added a commit that references this issue on Oct 29, 2026

    3.7.17.x: docs: give backported changes 3.7.17.8 version notes

    aa21066
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 dirtype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.