Skip to content

Release: use twine 7, which reads metadata 2.5 - #2

Merged
winxtxrgit merged 1 commit into
mainfrom
fix/release-twine-7
Nov 26, 2026
Merged

winxtxrgit merged 1 commit into
mainfrom
fix/release-twine-7

Conversation

@winxtxrgit

Copy link
Copy Markdown
Owner

The v0.2.0 release failed at twine check --strict and nothing was uploaded to PyPI:

InvalidDistribution: Invalid distribution metadata: '2.5' is not a valid metadata version

hatchling 1.33 writes Metadata-Version: 2.5, and the workflow pinned twine>=6,<7, which does not know that version. This changes the pin to twine>=7,<8. The upload step, pypa/gh-action-pypi-publish v1.14.3, already uses twine 7.0.0, so it needs no change.

Checked locally: the wheel and sdist built by hatchling 1.33 both pass twine check --strict with twine 7.0.0.

🤖 Generated with Claude Code

hatchling 1.33 writes Metadata-Version 2.5, which twine 6 rejects as
invalid, so the v0.2.0 release failed at twine check and nothing was
uploaded. pypa/gh-action-pypi-publish v1.14.3 already uploads with
twine 7.0.0. Checked locally: hatchling 1.33 wheel and sdist pass
twine 7.0.0 check --strict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@winxtxrgit
winxtxrgit merged commit 756062a into main Nov 26, 2026
6 checks passed
@winxtxrgit
winxtxrgit deleted the fix/release-twine-7 branch November 26, 2026 03:07
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