Skip to content

Commit 5babfa9

Browse files
zaniebzaniebot
andauthored
Use checked-in Python download metadata for releases (#22810)
The release plan fails before `cargo-dist` starts because `.python-versions` selects Python `3.14.9`, which is missing from `uv 0.13.4`'s embedded download metadata. Set `UV_PYTHON_DOWNLOADS_JSON_URL` to the checked-in metadata for the release workflow and the wheel-content and signed-artifact assembly jobs. The latter need their own setting because reusable workflows do not inherit the caller's environment. --------- Co-authored-by: zaniebot <[email protected]>
1 parent 06fbc97 commit 5babfa9

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/workflows/build-release-binaries.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,8 @@ jobs:
13961396
check-wheels:
13971397
name: "check wheel contents"
13981398
runs-on: ${{ github.repository_owner == 'astral-sh' && 'github-ubuntu-24.04-x86_64-2' || 'ubuntu-slim' }}
1399+
env:
1400+
UV_PYTHON_DOWNLOADS_JSON_URL: ${{ github.workspace }}/crates/uv-python-managed/download-metadata.json
13991401
needs:
14001402
- macos-x86_64
14011403
- macos-aarch64

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ env:
3232
# Release actions must not consume shared GitHub Actions caches.
3333
ACTIONS_CACHE_MODE: none
3434
UV_LOCKED: 1
35+
UV_PYTHON_DOWNLOADS_JSON_URL: ${{ github.workspace }}/crates/uv-python-managed/download-metadata.json
3536

3637
jobs:
3738
release-gate:

‎.github/workflows/sign-release-binaries.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ jobs:
225225
name: "assemble signed release artifacts"
226226
needs: [prepare, sign-macos, sign-windows]
227227
runs-on: depot-ubuntu-24.04-4
228+
env:
229+
UV_PYTHON_DOWNLOADS_JSON_URL: ${{ github.workspace }}/crates/uv-python-managed/download-metadata.json
228230
permissions:
229231
contents: read
230232
outputs:

0 commit comments

Comments
 (0)