From 00eec3a38c0ddb81354e7e39ae546941d058184e Mon Sep 17 00:00:00 2001 From: Fabio Bonelli Date: Mon, 24 Aug 2026 18:18:34 +0200 Subject: [PATCH] ci: use uv 0.12.5 on GitHub Actions and Vercel The workflow pinned uv 0.9.7, which predates Python 3.14.5 and cannot download it. On Vercel pip refuses to install uv because the image Python is uv-managed (PEP 668): the pinned standalone installer puts it in the repo directory instead. --- .github/workflows/publish.yml | 2 +- vercel.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0785089..068232b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,7 +25,7 @@ jobs: fetch-depth: 0 - uses: astral-sh/setup-uv@v7 with: - version: "0.9.7" + version: "0.12.5" enable-cache: true # Release tags come with the checkout, but sphinx-polyversion only diff --git a/vercel.json b/vercel.json index 3eafdbb..315c443 100644 --- a/vercel.json +++ b/vercel.json @@ -7,7 +7,7 @@ "gh-pages": false } }, - "installCommand": "pip3 install uv==0.12.5", - "buildCommand": "git fetch --depth=1 \"https://github.com/$VERCEL_GIT_REPO_OWNER/$VERCEL_GIT_REPO_SLUG.git\" '+refs/tags/v*:refs/tags/v*' '+refs/heads/*-rc:refs/heads/*-rc' && LC_ALL=C.UTF-8 uv run sphinx-polyversion poly.py build/html", + "installCommand": "curl -LsSf https://astral.sh/uv/0.12.5/install.sh | UV_INSTALL_DIR=.uv UV_NO_MODIFY_PATH=1 sh", + "buildCommand": "git fetch --depth=1 \"https://github.com/$VERCEL_GIT_REPO_OWNER/$VERCEL_GIT_REPO_SLUG.git\" '+refs/tags/v*:refs/tags/v*' '+refs/heads/*-rc:refs/heads/*-rc' && LC_ALL=C.UTF-8 ./.uv/uv run sphinx-polyversion poly.py build/html", "outputDirectory": "build/html" }