Skip to content

fix: publish wheels with metadata 2.5 without double-bumping - #91

Merged
alain-sv merged 1 commit into
mainfrom
fix/pypi-publish-metadata-25
Aug 28, 2026
Merged

fix: publish wheels with metadata 2.5 without double-bumping#91
alain-sv merged 1 commit into
mainfrom
fix/pypi-publish-metadata-25

Conversation

@alain-sv

Copy link
Copy Markdown
Contributor

Summary

  • Pin pypa/gh-action-pypi-publish to v1.14.2 (dc37677) so hatchling ≥1.32 wheels with Metadata-Version 2.5 upload to PyPI.
  • Skip version bump unless the triggering commit contains [MAJOR] / [MINOR] / [PATCH], and skip if HEAD after git pull is already chore(release):. Unblocks publishing existing v1.5.0 without bumping to 1.6.0.
  • skip-existing: true so a retry does not fail if the wheel is already on PyPI.

Fixes failed publish job: https://github.com/supervaize/supervaizer/actions/runs/33161482947/job/98817032234

Do not re-run that failed workflow — it still has v1.14.1 and would bump again. Merge this PR to main (no bump token in the title) so the new workflow publishes 1.5.0.

Test plan

  • Merge this PR to main (approve pypi environment when publish waits)
  • Confirm version stays 1.5.0 (no chore(release): v1.6.0)
  • Confirm supervaizer==1.5.0 on PyPI
  • Confirm GitHub Release v1.5.0 exists
  • just ship-reconcile after PyPI is live

Made with Cursor

hatchling 1.32+ emits Metadata-Version 2.5; pin gh-action-pypi-publish
to v1.14.2 and skip bump unless the trigger has a MAJOR/MINOR/PATCH
token so v1.5.0 can reach PyPI without becoming 1.6.0.

Co-authored-by: Cursor <cursoragent@cursor.com>
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing

@alain-sv
alain-sv merged commit 314af85 into main Aug 28, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant