From 3ad282240c232485178d2ec4181aff8d374e05e5 Mon Sep 17 00:00:00 2001 From: Declan Brady Date: Fri, 30 Oct 2026 12:48:40 -0400 Subject: [PATCH] chore(release): keep uv.lock in sync with release versions release-please bumps pyproject.toml and adk/pyproject.toml but never touched uv.lock, so the lock fell behind on every release. CI ran uv sync without --locked, so the drift was not caught. - Add toml extra-files entries so release-please sets the version of the agentex-client and agentex-sdk entries in uv.lock. - Refresh uv.lock to 0.28.5. - Run uv sync --locked in the CI lint and build jobs. The jsonpath filter matches both @.name and @.name.value because release-please 16.18.0 runs jsonpath over a tagged TOML tree where each value is wrapped as {start, end, value}. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_018gtTYcnigSuJ6qquhhDzxg --- .github/workflows/ci.yml | 4 ++-- release-please-config.json | 16 ++++++++++++++-- uv.lock | 4 ++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29e05db55..e30612d50 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: version: '0.10.2' - name: Install dependencies - run: uv sync --all-packages --all-extras + run: uv sync --locked --all-packages --all-extras - name: Run lints run: ./scripts/lint @@ -54,7 +54,7 @@ jobs: version: '0.10.2' - name: Install dependencies - run: uv sync --all-packages --all-extras + run: uv sync --locked --all-packages --all-extras - name: Run build # Both workspace members. --wheel is load-bearing: the heavy's cross-dir diff --git a/release-please-config.json b/release-please-config.json index f6a64f92e..48f511833 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -3,11 +3,23 @@ ".": { "component": "agentex-client", "extra-files": [ - "src/agentex/_version.py" + "src/agentex/_version.py", + { + "type": "toml", + "path": "uv.lock", + "jsonpath": "$.package[?(@.name=='agentex-client' || @.name.value=='agentex-client')].version" + } ] }, "adk": { - "component": "agentex-sdk" + "component": "agentex-sdk", + "extra-files": [ + { + "type": "toml", + "path": "/uv.lock", + "jsonpath": "$.package[?(@.name=='agentex-sdk' || @.name.value=='agentex-sdk')].version" + } + ] } }, "plugins": [ diff --git a/uv.lock b/uv.lock index b78d910c3..f8e8bf9a3 100644 --- a/uv.lock +++ b/uv.lock @@ -15,7 +15,7 @@ members = [ [[package]] name = "agentex-client" -version = "0.28.4" +version = "0.28.5" source = { editable = "." } dependencies = [ { name = "anyio" }, @@ -91,7 +91,7 @@ dev = [ [[package]] name = "agentex-sdk" -version = "0.28.4" +version = "0.28.5" source = { editable = "adk" } dependencies = [ { name = "agentex-client" },