From 8c0caa0697f1a8e98ee1362ba4902c637c932289 Mon Sep 17 00:00:00 2001 From: Nathan McDougall Date: Tue, 27 Oct 2026 16:18:48 +1300 Subject: [PATCH 1/3] Move uv to the patched 0.13.5 and relax the exact uv pin Respond to the uv advisory in the eMudhra intermediate CA compromise response (GHSA-hq85-5cpj-mr62; the first patched uv is 0.13.4). * pyproject.toml: [tool.uv] required-version "==0.7.13" -> ">=0.7.13". The exact pin made any other uv refuse to run in this repository, so uv could not be moved. The minimum is unchanged. * uv 0.7.13 -> 0.13.5 in ci.yml and release.yml (setup-uv version), the seven uv entries in .pre-commit-config.yaml, and uv_version in tasks/scripts/install_backend.sh. * uv.lock and requirements.txt are unchanged: `uv lock` with 0.13.5 produces the same lock and `uv export` the same requirements.txt. --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- .pre-commit-config.yaml | 14 +++++++------- pyproject.toml | 2 +- tasks/scripts/install_backend.sh | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b654b8c..31bbd40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@f94ec6bedd8674c4426838e6b50417d36b6ab231 # v5.3.1 with: - version: "0.7.13" # Sync with pyproject.toml + version: "0.13.5" # Sync with pyproject.toml enable-cache: true - name: Setup Python diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 79beee7..5a0eb10 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@3b9817b1bf26186f03ab8277bab9b827ea5cc254 # v3.2.0 with: - version: "0.7.13" # Sync with pyproject.toml + version: "0.13.5" # Sync with pyproject.toml enable-cache: false - name: "Set up Python" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d55c6e2..3fac23a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,7 @@ repos: entry: uv lock --offline files: ^(uv\.lock|pyproject\.toml|uv\.toml)$ additional_dependencies: - - uv==0.7.13 + - uv==0.13.5 language: python always_run: true pass_filenames: false @@ -40,7 +40,7 @@ repos: entry: uv sync --no-active --offline args: [--locked] additional_dependencies: - - uv==0.7.13 + - uv==0.13.5 language: python always_run: true pass_filenames: false @@ -52,7 +52,7 @@ repos: entry: uv export --frozen --offline --quiet --no-default-groups -o="requirements.txt" additional_dependencies: - - uv==0.7.13 + - uv==0.13.5 language: python pass_filenames: false require_serial: true @@ -76,7 +76,7 @@ repos: entry: uv run --frozen --offline ruff format --force-exclude types_or: [python, pyi, jupyter] additional_dependencies: - - uv==0.7.13 + - uv==0.13.5 language: python pass_filenames: false - id: ruff-check @@ -86,7 +86,7 @@ repos: --ignore "FIX" types_or: [python, pyi, jupyter] additional_dependencies: - - uv==0.7.13 + - uv==0.13.5 language: python pass_filenames: false @@ -106,7 +106,7 @@ repos: name: nbstripout entry: uv run --frozen --offline nbstripout additional_dependencies: - - uv==0.7.13 + - uv==0.13.5 language: python files: .*\.(ipynb)$ exclude: .*\.(example|template|keepoutput|)\.ipynb$ @@ -117,7 +117,7 @@ repos: name: deptry entry: uv run --frozen --offline deptry src additional_dependencies: - - uv==0.7.13 + - uv==0.13.5 language: python always_run: true pass_filenames: false diff --git a/pyproject.toml b/pyproject.toml index a5dc684..9a45435 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -239,7 +239,7 @@ output = "test-reports/coverage.xml" [tool.uv] default-groups = [ "dev", "test", "doc" ] constraint-dependencies = [ "certifi>=2026.10.19" ] -required-version = "==0.7.13" # sync with .pre-commit-config.yaml and release.yml +required-version = ">=0.7.13" # sync with .pre-commit-config.yaml and release.yml link-mode = "symlink" [tool.importlinter] diff --git a/tasks/scripts/install_backend.sh b/tasks/scripts/install_backend.sh index 3ad44b8..5f09435 100644 --- a/tasks/scripts/install_backend.sh +++ b/tasks/scripts/install_backend.sh @@ -8,7 +8,7 @@ if [ ! -d ".git" ]; then fi # Ideally remove this duplication via https://github.com/astral-sh/uv/issues/10547 -uv_version="0.7.13" # Sync with .pre-commit-config.yaml and pyproject.toml +uv_version="0.13.5" # Sync with .pre-commit-config.yaml and pyproject.toml export PATH="$PATH:$HOME/.local/bin" # Legacy install support < v0.5.0 From e035bf464e4f9f0f4ffd8da50a77efe88eed34eb Mon Sep 17 00:00:00 2001 From: Nathan McDougall Date: Wed, 28 Oct 2026 10:39:34 +1300 Subject: [PATCH 2/3] Raise the uv required-version minimum to 0.13.5 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9a45435..8a4b5b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -239,7 +239,7 @@ output = "test-reports/coverage.xml" [tool.uv] default-groups = [ "dev", "test", "doc" ] constraint-dependencies = [ "certifi>=2026.10.19" ] -required-version = ">=0.7.13" # sync with .pre-commit-config.yaml and release.yml +required-version = ">=0.13.5" # sync with .pre-commit-config.yaml and release.yml link-mode = "symlink" [tool.importlinter] From df8f3188b5629a67918708c72273044340338615 Mon Sep 17 00:00:00 2001 From: Nathan McDougall Date: Wed, 28 Oct 2026 10:41:04 +1300 Subject: [PATCH 3/3] Realign the required-version comment after raising the minimum uv version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8a4b5b0..a55c1b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -239,7 +239,7 @@ output = "test-reports/coverage.xml" [tool.uv] default-groups = [ "dev", "test", "doc" ] constraint-dependencies = [ "certifi>=2026.10.19" ] -required-version = ">=0.13.5" # sync with .pre-commit-config.yaml and release.yml +required-version = ">=0.13.5" # sync with .pre-commit-config.yaml and release.yml link-mode = "symlink" [tool.importlinter]