Skip to content

ci: bump build-and-inspect-python-package to v3.0.1 (fix twine check on metadata 2.5) - #432

Merged
RonnyPfannschmidt merged 1 commit into
mainfrom
claude/project-thread-p4bz94
Oct 6, 2026
Merged

RonnyPfannschmidt merged 1 commit into
mainfrom
claude/project-thread-p4bz94

Conversation

@RonnyPfannschmidt

Copy link
Copy Markdown
Member

Requested by Ronny · project thread

🤖 Written by Claude Opus 5.5 via Claude Code for the execnet maintainers; I prompted it, it did the work, I read it.

Before: the package job fails on every PR against current main (e.g. #431, #405, and the ChannelFileWrite encoding PR) at twine check --strict with InvalidDistribution: Invalid distribution metadata: '2.5' is not a valid metadata version. Current hatchling (1.32.x) writes Metadata-Version: 2.5, and baipp v2.18 bundles twine 6.2.0, which does not know that version. The deploy workflow uses the same action, so a release would fail the same way.

After: the package job passes again. Locally, a wheel and sdist built from main pass twine check --strict with twine 7.0.0 and fail with twine 6.2.0.

How: bump hynek/build-and-inspect-python-package from v2.18 to v3.0.1 in test.yml and deploy.yml. v3.0.0 updates the bundled tools to twine 7, which supports metadata 2.5, and v3.0.1 runs the action's own tool install outside the project directory. The action inputs and the Packages artifact name are unchanged. Since v3 the action no longer force-moves v3/v3.0 tags, so the full version is pinned.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MiQ7iUinBNk9vMp1sGqZv1


Generated by Claude Code

hatchling now emits Metadata-Version 2.5, which twine 6.2.0 (bundled
with baipp v2.18) rejects in 'twine check --strict'. baipp v3.0.x ships
twine 7.0.0, which supports metadata 2.5.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MiQ7iUinBNk9vMp1sGqZv1
@RonnyPfannschmidt RonnyPfannschmidt self-assigned this Oct 6, 2026
@RonnyPfannschmidt
RonnyPfannschmidt merged commit a087a23 into main Oct 6, 2026
18 checks passed
@RonnyPfannschmidt
RonnyPfannschmidt deleted the claude/project-thread-p4bz94 branch October 6, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants