Repository navigation
Bump pypi-publish action to v1.14.2 - #30
Merged
Merged
Conversation
The publish job fails with "InvalidDistribution: Invalid distribution metadata: '2.5' is not a valid metadata version". Current hatchling emits Metadata-Version 2.5, and the pinned v1.12.4 bundles a twine too old to parse it. v1.14.2 bundles twine 7.0.0, which handles it. Unrelated to the 0.4.0 changes: building pre-merge main, with its static version, produces Metadata-Version 2.5 as well.
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.
Problem
The
publishjob fails:Current hatchling (1.32.3) emits
Metadata-Version: 2.5. The pinnedpypa/gh-action-pypi-publish@76f52bcis v1.12.4, which bundles a twine predating support for that metadata version — see pypa/twine#1327.This is not a side effect of the 0.4.0 release. Building pre-merge
main, with its staticversion = "0.3.11", also producesMetadata-Version: 2.5; the trigger is hatchling drift against a pinned action, so any release cut now would hit it.Fix
Bump to v1.14.2 (
dc37677), which bundles twine 7.0.0.Testing
twine checkwith 7.0.0 against the built artifacts: bothPASSEDpackages-dirandverbosecheck yamlpasses