Skip to content

Fix the PyPI publish for Metadata-Version 2.5 - #8

Merged
aeoess merged 1 commit into
mainfrom
fix/publish-twine-metadata-25
Aug 20, 2026
Merged

Fix the PyPI publish for Metadata-Version 2.5#8
aeoess merged 1 commit into
mainfrom
fix/publish-twine-metadata-25

Conversation

@aeoess

@aeoess aeoess commented Aug 20, 2026

Copy link
Copy Markdown
Owner

The v2.11.0 tag run failed before any upload:

Checking dist/agent_passport_system-2.11.0-py3-none-any.whl:
ERROR InvalidDistribution: Invalid distribution metadata: '2.5' is not a valid metadata version

hatchling now emits Metadata-Version: 2.5 and the twine bundled in gh-action-pypi-publish v1.14.0 does not accept it. The same pin published 2.10.0 in July, so this is upstream drift rather than a change on our side.

v1.14.2 ships twine 7, which accepts metadata 2.5. The new pin dc37677b2e1c63e2034f94d8a5b11f265b73ba33 was resolved from the v1.14.2 tag object through the GitHub API rather than copied from anywhere.

Nothing reached PyPI, so 2.11.0 is still free. After this merges the tag moves to the new main head and the publish re-fires.

hatchling now emits Metadata-Version 2.5. The twine bundled in v1.14.0 rejects
it with "InvalidDistribution: '2.5' is not a valid metadata version", which is
what failed the v2.11.0 tag before any upload happened. v1.14.2 ships twine 7,
which accepts 2.5.

Pin resolved from the v1.14.2 tag object via the GitHub API, not copied.

Signed-off-by: Tymofii Pidlisnyi <tima@aeoess.com>
@aeoess
aeoess merged commit a306db3 into main Aug 20, 2026
2 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