Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-121970: Make DeprecatedRemoved a subclass of VersionChange #121971

Merged
merged 3 commits into from
Jul 19, 2024

Conversation

AA-Turner
Copy link
Member

@AA-Turner AA-Turner commented Jul 18, 2024

The majority of the code was duplicated. A future improvement would be to add some sort of method to VersionChange for determining the version and labels that we could override in this subclass, rather than the somewhat convoluted method here.

Also allow the .. versionremoved:: directive to be used whilst we still support older versions of Sphinx.

A


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

…ange``

Also allow the ``.. versionremoved::`` directive to be used whilst we still support older versions of Sphinx.
# Conflicts:
#	Doc/tools/extensions/pyspecific.py
Copy link
Member

@encukou encukou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I trust you that this uses the correct Sphinx APIs :)

I checked that it generates the same output (except timestamps and search index data), at least on my Sphinx v7.2.6

@AA-Turner AA-Turner merged commit 898e90c into python:main Jul 19, 2024
26 checks passed
@AA-Turner AA-Turner deleted the docs/deprecated-removed branch July 19, 2024 10:39
@miss-islington-app
Copy link

Thanks @AA-Turner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 19, 2024
…ange`` (pythonGH-121971)

(cherry picked from commit 898e90c)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 19, 2024
…ange`` (pythonGH-121971)

(cherry picked from commit 898e90c)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@bedevere-app
Copy link

bedevere-app bot commented Jul 19, 2024

GH-122019 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jul 19, 2024
@bedevere-app
Copy link

bedevere-app bot commented Jul 19, 2024

GH-122020 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Jul 19, 2024
AA-Turner added a commit that referenced this pull request Jul 19, 2024
…hange`` (GH-121971) (#122020)

GH-121970: Make ``DeprecatedRemoved`` a subclass of ``VersionChange`` (GH-121971)
(cherry picked from commit 898e90c)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
AA-Turner added a commit that referenced this pull request Jul 19, 2024
…hange`` (GH-121971) (#122019)

GH-121970: Make ``DeprecatedRemoved`` a subclass of ``VersionChange`` (GH-121971)
(cherry picked from commit 898e90c)

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants