From 87968fa6ee2ca42bd941d0b19e3b36596dc36533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Marques?= Date: Tue, 4 Aug 2026 20:46:51 -0300 Subject: [PATCH] chore: let uv 0.12 build with its built-in backend Outside the declared uv_build range, uv falls back to an isolated PEP 517 build that downloads the backend from PyPI. Scaffolded workers install this package from a source tarball, so the fallback hit every worker image build. --- maestro_worker_python/scaffold/Dockerfile | 2 +- pyproject.toml | 2 +- tests/test_init.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/maestro_worker_python/scaffold/Dockerfile b/maestro_worker_python/scaffold/Dockerfile index ce9c419..52eac02 100644 --- a/maestro_worker_python/scaffold/Dockerfile +++ b/maestro_worker_python/scaffold/Dockerfile @@ -3,7 +3,7 @@ ARG BASE_IMAGE=python:3.12-slim-trixie FROM ${BASE_IMAGE} -COPY --from=ghcr.io/astral-sh/uv:0.11.25 /uv /uvx /bin/ +COPY --from=ghcr.io/astral-sh/uv:0.12.1 /uv /uvx /bin/ ENV UV_LINK_MODE=copy diff --git a/pyproject.toml b/pyproject.toml index 1558973..85d9cd0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ dev = [ ] [build-system] -requires = ["uv_build>=0.11.25,<0.12"] +requires = ["uv_build>=0.11.25,<0.13"] build-backend = "uv_build" [tool.ruff] diff --git a/tests/test_init.py b/tests/test_init.py index 6ffeb4b..90a4797 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -35,7 +35,7 @@ def test_init_creates_complete_worker_scaffold(tmp_path, monkeypatch): dockerfile = (target / "Dockerfile").read_text() assert "ARG BASE_IMAGE=python:3.12-slim-trixie" in dockerfile assert "FROM ${BASE_IMAGE}" in dockerfile - assert "COPY --from=ghcr.io/astral-sh/uv:0.11.25 /uv /uvx /bin/" in dockerfile + assert "COPY --from=ghcr.io/astral-sh/uv:0.12.1 /uv /uvx /bin/" in dockerfile assert "UV_LINK_MODE=copy" in dockerfile assert "COPY pyproject.toml uv.lock ./" in dockerfile assert "--mount=type=cache,target=/root/.cache/uv" in dockerfile