Short version: automate python/cpython#158399.
Longer version:
There's a number of files that are only needed in the main branch, for example:
.github/CONTRIBUTING.rst
.github/dependabot.yml
.github/ISSUE_TEMPLATE/
.github/PULL_REQUEST_TEMPLATE.md
.github/SECURITY.md
.github/workflows/add-issue-header.yml
.github/workflows/new-bugs-announce-notifier.yml
.github/workflows/project-updater.yml
.github/workflows/stale.yml
.well-known/funding-manifest-urls
At the feature freeze, when we branch off main as part of the first beta release and create a new branch (for example, this will next happen when we create 3.16 in May 2027), let's have the script delete these files from the new 3.x branch.
The script shouldn't fail if a file isn't found -- we may have removed it from main. If so, we could print a warning something like "filename.ext not found. If no longer in main, remove from this script".
Short version: automate python/cpython#158399.
Longer version:
There's a number of files that are only needed in the
mainbranch, for example:At the feature freeze, when we branch off
mainas part of the first beta release and create a new branch (for example, this will next happen when we create3.16in May 2027), let's have the script delete these files from the new3.xbranch.The script shouldn't fail if a file isn't found -- we may have removed it from
main. If so, we could print a warning something like "filename.ext not found. If no longer inmain, remove from this script".