Skip to content

Commit 59f7f75

Browse files
committed
ci: fix distribution metadata check and pin uv in docs build
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
1 parent 7d28da9 commit 59f7f75

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
fetch-depth: 0
3333

34-
- uses: hynek/build-and-inspect-python-package@v2
34+
- uses: hynek/build-and-inspect-python-package@2abe76da66d0a6a4a227101f9348ee855797cfa5 # v3.0.1
3535

3636
publish-testpypi:
3737
needs: [dist]

.readthedocs.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ build:
99
python: "3.13"
1010
jobs:
1111
install:
12-
- asdf plugin add uv
13-
- asdf install uv latest
14-
- asdf global uv latest
12+
# Install uv from PyPI, pinned. The asdf recipe from the Read the Docs
13+
# docs resolves "latest" via a GitHub API scrape that intermittently
14+
# fails on RTD's shared builders, and floats the uv version besides.
15+
- pip install uv==0.12.3
1516
- uv sync --group docs
1617
build:
1718
html:

0 commit comments

Comments
 (0)