ci: fix distribution metadata check and pin uv in docs build - #21
Merged
Conversation
Two unrelated CI breakages, both from unpinned tooling: 1. The Distribution build job fails on every PR since ~2026-08-11 with "InvalidDistribution: '2.5' is not a valid metadata version": the unpinned hatchling build backend now emits Metadata-Version 2.5, but build-and-inspect-python-package v2 bundles a twine that predates it. Bump the action to v3.0.1, which ships Twine 7 with metadata 2.5 support, pinned by commit hash per the action's v3 tagging policy (it no longer force-updates major-version tags). 2. The Read the Docs build intermittently fails at "asdf global uv latest" with "No compatible versions available": the asdf recipe from the RTD docs resolves "latest" via a GitHub API scrape that flakes on RTD's shared builders, and floats the uv version besides. Install uv from PyPI, pinned, instead. Assisted-by: ClaudeCode:claude-opus-4.8
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.
🤖 AI text below 🤖
Two unrelated CI breakages, both rooted in unpinned tooling. Together they account for every red check on #20 that isn't that PR's own content.
1. Distribution build: twine rejects
Metadata-Version: 2.5Every PR since ~Aug 11 fails with
InvalidDistribution: '2.5' is not a valid metadata version(first seen on the Aug 11 dependabot run). The unpinned hatchling build backend now emits Metadata-Version 2.5;hynek/build-and-inspect-python-package@v2bundles a twine that predates it. The action's v3.0.0 release notes name the fix directly: "Only updates of actions and build dependencies, notably including Twine 7 that adds support for packaging metadata 2.5."Bumped to v3.0.1, pinned by commit hash — required by the action's own v3 policy, which stops force-updating major-version tags (
@v3doesn't exist). Also drops zizmor's unpinned-uses finding for this line.2. Read the Docs:
asdf global uv latestflakesThe RTD build for #20 died at
asdf global uv latest→No compatible versions available (uv [0-9]). That's the asdf uv plugin's version scrape (a GitHub API call from RTD's shared, rate-limited builders) returning nothing — a network lookup unrelated to the docs, and it floats the uv version besides. Replaced the three asdf lines withpip install uv==0.12.3: one pinned dependency from PyPI, which the build already needs foruv sync.Verification
prekhooks for both files pass (Validate GitHub Workflows,Validate ReadTheDocs Config, prettier)zizmoroncd.yml: 12 findings vs 13 onmain— one improvement, no new findings.readthedocs.yamlchange directly; thecd.ymlchange is exercised by this PR's own Distribution build job