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: Extract misc_news into a new extension #129577

Merged
merged 3 commits into from
Feb 2, 2025

Conversation

AA-Turner
Copy link
Member

@AA-Turner AA-Turner commented Feb 2, 2025

This removes the PY_MISC_NEWS_DIR environment variable, which was only set/used in make.bat. I've synchronised it with the Makefile, where we always use build/.

I considered removing the relative path handling, and changing the file argument of the .. miscnews:: directive to be relative to the Sphinx confdir (i.e. changing to .. miscnews:: build/NEWS), which would somewhat simplify things, but that could be a follow-up.

A


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

@AA-Turner AA-Turner added docs Documentation in the Doc dir skip news needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes labels Feb 2, 2025
@AA-Turner AA-Turner requested a review from hugovk as a code owner February 2, 2025 12:57
Copy link
Member

@picnixz picnixz left a comment

Choose a reason for hiding this comment

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

Some comments/questions

@AA-Turner AA-Turner requested a review from picnixz February 2, 2025 15:07
Copy link
Member

@picnixz picnixz left a comment

Choose a reason for hiding this comment

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

Looks good. By the way, for what reason are we changing the "what's new in ...?" text ?

@AA-Turner
Copy link
Member Author

(?im) is the same as re.I | re.M: https://docs.python.org/3/library/re.html#index-16

@picnixz
Copy link
Member

picnixz commented Feb 2, 2025

Ah no, I meant: Why is the "What's new in ..." sentences not correct? Namely why are we modifying these parts of the text?

@AA-Turner
Copy link
Member Author

Blurb outputs "What's New in " before each heading, which we strip for the rendered changelog. Perhaps we should modify Blurb not to do so.

@AA-Turner AA-Turner merged commit ae47888 into python:main Feb 2, 2025
24 checks passed
@miss-islington-app
Copy link

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

@AA-Turner AA-Turner deleted the docs/miscnews branch February 2, 2025 16:17
@miss-islington-app
Copy link

Sorry, @AA-Turner, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker ae4788809d674f8e27faef2678953be8cf67d4a3 3.13

@miss-islington-app
Copy link

Sorry, @AA-Turner, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker ae4788809d674f8e27faef2678953be8cf67d4a3 3.12

@bedevere-app
Copy link

bedevere-app bot commented Feb 2, 2025

GH-129586 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 Feb 2, 2025
AA-Turner added a commit to AA-Turner/cpython that referenced this pull request Feb 2, 2025
…ythonGH-129577)

(cherry picked from commit ae47888)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
AA-Turner added a commit to AA-Turner/cpython that referenced this pull request Feb 2, 2025
@bedevere-app
Copy link

bedevere-app bot commented Feb 2, 2025

GH-129587 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 Feb 2, 2025
@bedevere-app
Copy link

bedevere-app bot commented Feb 2, 2025

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

AA-Turner added a commit that referenced this pull request Feb 2, 2025
AA-Turner added a commit that referenced this pull request Feb 2, 2025
@hugovk
Copy link
Member

hugovk commented Feb 2, 2025

This removes the PY_MISC_NEWS_DIR environment variable, which was only set/used in make.bat. I've synchronised it with the Makefile, where we always use build/.

cc @zooba: PY_MISC_NEWS_DIR was first added in afe17a7 -- do you still use it elsewhere?

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 news
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants