From 4492df456026da795983253876728d29b6695a9c Mon Sep 17 00:00:00 2001 From: saagpatel <269905221+saagpatel@users.noreply.github.com> Date: Tue, 17 Nov 2026 23:56:45 -0800 Subject: [PATCH] build: pin uv to >=0.13.9,<0.14 and CI to 0.13.9 --- .cursor/environment.json | 2 +- .github/workflows/ci.yml | 4 ++-- .github/workflows/pypi.yml | 2 +- .github/workflows/release.yml | 2 +- AGENTS.md | 2 +- Dockerfile | 2 +- Makefile | 2 +- README.md | 16 +++------------- pyproject.toml | 2 +- 9 files changed, 12 insertions(+), 22 deletions(-) diff --git a/.cursor/environment.json b/.cursor/environment.json index 7f5d0e1e..8ca1a03e 100644 --- a/.cursor/environment.json +++ b/.cursor/environment.json @@ -1,5 +1,5 @@ { "name": "github-repo-auditor", "disableAllMcpServers": true, - "install": "set -eu; python3 -m pip install --disable-pip-version-check --user 'uv==0.13.0'; export PATH=\"$(python3 -m site --user-base)/bin:$PATH\"; uv python install 3.12.15; uv sync --locked --python 3.12.15 --extra dev --extra serve --extra config --extra build; uv run --locked --extra dev --extra serve --extra config --extra build pytest -q -k 'not semantic_index'" + "install": "set -eu; python3 -m pip install --disable-pip-version-check --user 'uv==0.13.9'; export PATH=\"$(python3 -m site --user-base)/bin:$PATH\"; uv python install 3.12.15; uv sync --locked --python 3.12.15 --extra dev --extra serve --extra config --extra build; uv run --locked --extra dev --extra serve --extra config --extra build pytest -q -k 'not semantic_index'" } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5805bafa..543a52d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 with: - version: "0.13.0" + version: "0.13.9" python-version: ${{ matrix.python-version }} - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6 with: @@ -44,7 +44,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 with: - version: "0.13.0" + version: "0.13.9" python-version-file: .python-version - run: uv sync --locked --extra dev --extra serve --extra config --extra semantic - run: uv run --locked --extra dev --extra serve --extra config --extra semantic pytest -q -k semantic_index diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 888b50be..b4b1e97f 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -34,7 +34,7 @@ jobs: - name: Set up locked build environment uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 with: - version: "0.13.0" + version: "0.13.9" python-version-file: .python-version - name: Install locked build tools diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 672f6c9f..dd1c3aaf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: - name: Set up locked build environment uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 with: - version: "0.13.0" + version: "0.13.9" python-version-file: .python-version - name: Install locked build tools diff --git a/AGENTS.md b/AGENTS.md index 1349d697..a0769cf8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -69,7 +69,7 @@ in since-window mode. Cursor Cloud builds start from this repository's checkout and must not depend on the local `.venv`, sibling repositories, generated `output/` artifacts, or credential-bearing files. The checked-in `.python-version` selects Python -3.12.15; `.cursor/environment.json` pins `uv==0.13.0` and installs the locked +3.12.15; `.cursor/environment.json` pins `uv==0.13.9` and installs the locked runtime and development dependencies with `uv sync --locked`. Use these repository-local, non-interactive checks in a Cloud build or agent: diff --git a/Dockerfile b/Dockerfile index 41af5f33..a626bdfc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM python:3.12-slim@sha256:a6e34c598f2467ed0e9a8d349809fcd8b5c603269512df273a0bb1784edc11b1 # uv for fast, reproducible, lockfile-pinned installs. -COPY --from=ghcr.io/astral-sh/uv:0.13.0@sha256:cdc6093146eb3ff6a40107b38f008b789e050e77ad87865e381d9917da55a168 /uv /bin/uv +COPY --from=ghcr.io/astral-sh/uv:0.13.9@sha256:d3b601f0c7b118bc1753febf7c41cc80981df678445e0254284eecf84db79a7d /uv /bin/uv WORKDIR /app ENV UV_COMPILE_BYTECODE=1 \ diff --git a/Makefile b/Makefile index a7ca14ae..4184356c 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ ARGS ?= # Setup hints are checked before any tools run. Checks do not regenerate outputs. require-tools: - @command -v uv >/dev/null 2>&1 || { echo "Missing uv. Install uv 0.13.0, then run make setup."; exit 1; } + @command -v uv >/dev/null 2>&1 || { echo "Missing uv. Install uv 0.13.9 or any later 0.13.x, then run make setup."; exit 1; } setup: require-tools @command -v pnpm >/dev/null 2>&1 || { echo "Missing pnpm. Install the Node and pnpm pins in web/, then run make setup."; exit 1; } diff --git a/README.md b/README.md index 9d10696d..a028127a 100644 --- a/README.md +++ b/README.md @@ -177,17 +177,7 @@ demo, benchmark, and direct exporter calls require an explicit overlay argument. ### Prerequisites - Python 3.12 to 3.14 (3.15 is not supported yet; pick a supported interpreter, for example `uv python install 3.13`) -- [uv](https://docs.astral.sh/uv/) exactly 0.13.0 for the `make` targets (`make setup`, `make demo`, `make check`). `pyproject.toml` pins `required-version = "==0.13.0"`, so any other uv fails with a version mismatch. Switch with `uv self update 0.13.0`, or install it fresh with `curl -LsSf https://astral.sh/uv/0.13.0/install.sh | sh`. The plain `pip install` paths below do not need uv. - - If you would rather not change your global uv, install 0.13.0 inside the clone (nothing is written outside it) and put it first on `PATH` for the session: - - ```bash - python3 -m venv .uv-tool && .uv-tool/bin/pip install uv==0.13.0 - export PATH="$PWD/.uv-tool/bin:$PATH" - uv --version # uv 0.13.0 - ``` - - `.uv-tool/` is gitignored. The venv only hosts the uv binary; uv picks its own supported project interpreter (see the Python range above). +- [uv](https://docs.astral.sh/uv/) 0.13.9 or any later 0.13.x (for example the current Homebrew uv) for the `make` targets (`make setup`, `make demo`, `make check`). `pyproject.toml` sets `required-version = ">=0.13.9,<0.14"`, so uv 0.14 or newer fails with a version mismatch; CI runs exactly 0.13.9. Install or update with `brew install uv` or `curl -LsSf https://astral.sh/uv/0.13.9/install.sh | sh`. uv picks its own supported project interpreter (see the Python range above). The plain `pip install` paths below do not need uv. - pnpm and Node (versions pinned in `web/`) for `make setup` and `make check` - A GitHub account (public repos work without a token) - `GITHUB_TOKEN` env var or `gh` CLI authenticated (for private repos and higher rate limits) @@ -245,7 +235,7 @@ output is private operator evidence unless it has been intentionally sanitized. ```bash git clone https://github.com/saagpatel/GithubRepoAuditor.git cd GithubRepoAuditor -uv sync --locked --extra config # requires uv 0.13.0, see Prerequisites +uv sync --locked --extra config # requires uv 0.13.9 or any later 0.13.x, see Prerequisites make demo ``` @@ -376,7 +366,7 @@ frontend uses Next.js 15 and React 19 with pinned Node and pnpm toolchains. JSON, Markdown, HTML, workbooks, and Notion payloads share the audit model. The canonical local portfolio truth path is `output/portfolio-truth-latest.json`. -For a contributor checkout, install uv 0.13.0 (see Prerequisites), run `make setup`, then `make check` (this is the test command; Python tests alone: `make check-python`). These use +For a contributor checkout, install uv 0.13.9 or any later 0.13.x (see Prerequisites), run `make setup`, then `make check` (this is the test command; Python tests alone: `make check-python`). These use locked dependencies and offline fixtures; semantic-index checks are a separate opt-in lane. See [CONTRIBUTING.md](CONTRIBUTING.md) for focused checks. diff --git a/pyproject.toml b/pyproject.toml index 20ec425e..f3ea5c07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -123,7 +123,7 @@ pytest_add_cli_args_test_selection = [ target-version = "py312" [tool.uv] -required-version = "==0.13.0" +required-version = ">=0.13.9,<0.14" constraint-dependencies = [ # fpdf2's Pillow range still permits versions affected by GHSA-332p-7hrc-92wf # and the related Pillow advisories.