Skip to content

Update publishing action for metadata 2.5 support - #140

Merged
cpburnz merged 1 commit into
cpburnz:masterfrom
ryanchou1994:fix/publish-metadata-25
Sep 10, 2026
Merged

cpburnz merged 1 commit into
cpburnz:masterfrom
ryanchou1994:fix/publish-metadata-25

Conversation

@ryanchou1994

Copy link
Copy Markdown
Contributor

The TestPyPI publish run rejects both distributions with InvalidDistribution: Invalid distribution metadata: unrecognized or malformed field 'import-name'. The uploaded wheel and sdist use metadata 2.5, but the pinned v1.14.0 publisher uses Twine 6.1.0 and packaging 25.0.

Update the publisher pin in both release workflows to v1.14.2, which includes metadata 2.5 support. The workflow triggers, permissions, environments and publish inputs are unchanged. The regular PyPI workflow uses the same old pin, so it gets the same preventive update.

Validation used the original wheel and sdist from the failed run, after checking the downloaded artifact digest. Both files fail strict checks with the old publisher and pass with the new publisher on macOS and in the official Linux publisher images. The Linux checks ran offline with read-only inputs. A parsed YAML comparison confirms that only the two publisher references changed. No upload, OIDC exchange or attestation generation was performed.

Copilot AI lite review requested due to automatic review settings September 9, 2026 05:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@cpburnz
cpburnz merged commit bb4465f into cpburnz:master Sep 10, 2026
@cpburnz

cpburnz commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Thanks for fixing this. Publishing to TestPyPI is very finicky.

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