Add GitHub release tagging and backfill workflows#184
Open
rasmusbe wants to merge 1 commit into
Open
Conversation
Create annotated tags and GitHub Releases when setup.py version bumps on version-2, with manual dispatch for one-off releases. Add a separate backfill workflow that maps PyPI artifacts to commits (default since 2.6.2, dry-run by default) to restore missing git tags for published releases.
Owner
|
Thanks for the PR! I need a bit of time to review it, since I’m not very familiar with github workflows. I’m quite occupied right now, so it may take me a few weeks to get back to you. |
Contributor
Author
|
No problems, let me know if you have any questions 😄 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
setup.pyversion bumps onversion-2(also supports manual dispatch).Tag format matches PyPI:
2.7.1(novprefix). Release notes are taken from the matching line in README Version History when available.Forward releases (after merge)
version=insetup.pyand add a line to README Version History.version-2.Manual cut (optional): Actions → Release → Run workflow → set
refif not releasing fromversion-2.How to backfill old releases
PyPI has releases back to
2.6.2, but this repo has no git tags. Run backfill once after merging this PR.Step 1 — Dry run (default)
since:2.6.2dry_run:trueThe table shows each version, matched commit, fingerprint score, and planned action. Rows with
skip-low-confidenceorskip-errorare not tagged automatically.Step 2 — Review matches
Check that key versions point at sensible commits, for example:
7e93418f81d3c4dceffbeTo backfill a subset only, set
versions(e.g.2.7.0,2.7.1) instead of relying onsince.Adjust
min_score(default0.95) if a version is skipped but looks correct in the log.Step 3 — Apply tags
dry_run:falseconfirm:I-have-reviewed-the-tablesince/versions/min_scoreas the dry run you approved.This creates annotated tags and GitHub Releases. Existing tags are skipped.
Local dry run (optional)
Apply locally only if you know what you are doing:
Test plan
2.6.2–2.7.1git fetch --tags && git tag -l '2.7.*'setup.pybump (or manual Release dispatch)