ci: publish with a twine that accepts current wheel metadata - #612
Merged
Conversation
The publish step pins an action whose bundled twine predates metadata version 2.5, so it rejects the wheels uv now produces and the release never reaches PyPI. The build is correct; the uploader is behind. The first tag carrying twine 7.0.0 is v1.14.2. The inputs this workflow passes are unchanged there.
andreaonofrei01
self-requested a review
August 21, 2026 17:46
andreaonofrei01
approved these changes
Aug 21, 2026
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.
Context
mistralai 2.9.4did not reach PyPI. The publish job failed with:The wheel is fine. The uploader is out of date.
setup-uvinstalls the newest uv unless a version is declared, and the log says so: "Could not determine uv version from uv.toml or pyproject.toml. Falling back to latest." The publish on 13 August used uv 0.12.3, this one used 0.12.5, and 0.12.5 writesMetadata-Version: 2.5. That is a valid, current format. The action pinned here bundlestwine==6.1.0, which predates it.Nothing in this repository changed. One side moved, the other is frozen.
Implementation
Bump the publish action to the first tag whose bundled twine understands the format:
Pinning uv instead was the other option and is worse: it freezes a correct tool to satisfy a stale one, blocks every later uv improvement, and has to be maintained by hand. Metadata versions are a slow standardised sequence and a current twine reads current and older wheels, so moving the uploader forward is the durable direction.
dashboardalready runs v1.14.2 in five of its publish workflows, so this brings the SDK in line rather than introducing anything new.Checks / QA
Reproduced and verified locally rather than inferred. Building a trivial package with uv 0.12.5 produces
Metadata-Version: 2.5, and checking that same wheel:The four inputs this workflow passes (
packages-dir,print-hash,verbose,skip-existing) all still exist in v1.14.2.The real test is the next publish reaching PyPI. Version 2.9.4 was never uploaded, so nothing needs yanking and the next run should pick it up cleanly.