Skip to content

Upgrade pypi-publish action to fix TestPyPI/PyPI release#73

Merged
sam-watttime merged 1 commit into
mainfrom
fix-pypi-publish-metadata
Jul 2, 2026
Merged

Upgrade pypi-publish action to fix TestPyPI/PyPI release#73
sam-watttime merged 1 commit into
mainfrom
fix-pypi-publish-metadata

Conversation

@sam-watttime

Copy link
Copy Markdown
Contributor

What

Upgrade the PyPI publish step from the pinned pypa/gh-action-pypi-publish@v1.8.11 to the maintained @release/v1 tag.

Why

The v1.4.0rc1 TestPyPI release failed with InvalidDistribution: Metadata is missing required fields: Name, Version (run). The build itself was fine, but modern setuptools (via python -m build) emits Metadata-Version: 2.4, and the old action bundles a twine that only supports up to 2.2, so it could not parse the artifacts. Our own twine check step passed because it uses an up-to-date twine from pip.

How

Point the publish step at pypa/gh-action-pypi-publish@release/v1, which the pypa project keeps current and which supports newer metadata versions. No other release logic changes; version is still derived from the git tag by setuptools_scm.

🤖 Generated with Claude Code

The pinned pypa/gh-action-pypi-publish@v1.8.11 bundles an old twine that
only understands Metadata-Version up to 2.2, so it rejected wheels built
by modern setuptools (which emit 2.4) with "Metadata is missing required
fields: Name, Version". Track release/v1 so the action stays current.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sam-watttime sam-watttime requested a review from xginn8 as a code owner July 2, 2026 15:15
@sam-watttime sam-watttime merged commit eaad6e2 into main Jul 2, 2026
1 check 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.

3 participants