python/release-tools

Date and Release fields should be removed from prev_branch's whatsnew when creating new_branch's whatsnew

zware opened this issue · 2 comments

zware commented

Somewhere around

prev_branch = f"{release_tag.major}.{release_tag.minor}"
new_branch = f"{release_tag.major}.{int(release_tag.minor)+1}"
whatsnew_file = f"Doc/whatsnew/{new_branch}"
with cd(db["git_repo"]), open(whatsnew_file, "w") as f:
f.write(WHATS_NEW_TEMPLATE.format(version=new_branch, prev_version=prev_branch))

we can automatically remove the :Release: and :Date: fields from the previous branch's whatsnew to avoid issues like python/cpython#100700 and python/cpython#73905.

Any qualms with me taking this one?

hugovk commented

Please go ahead, thank you!