Skip to content

Bump pypi-publish action to v1.14.2 - #30

Merged
CollierKing merged 1 commit into
mainfrom
fix/bump-pypi-publish-action
Sep 19, 2026
Merged

CollierKing merged 1 commit into
mainfrom
fix/bump-pypi-publish-action

Conversation

@CollierKing

Copy link
Copy Markdown
Owner

Problem

The publish job fails:

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

Current hatchling (1.32.3) emits Metadata-Version: 2.5. The pinned pypa/gh-action-pypi-publish@76f52bc is 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 static version = "0.3.11", also produces Metadata-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 check with 7.0.0 against the built artifacts: both PASSED
  • Confirmed v1.14.2 still accepts the two inputs this workflow passes, packages-dir and verbose
  • Workflow YAML parses and check yaml passes

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.
@CollierKing
CollierKing merged commit e4fbdcb into main Sep 19, 2026
8 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