From a5dc472163c7da4d7a51a16526777f7774c4c84a Mon Sep 17 00:00:00 2001 From: Benedikt Reiser Date: Tue, 6 Oct 2026 13:57:16 +0200 Subject: [PATCH 1/2] ci: bump the project version in uv.lock on release The release only bumped pyproject.toml, so after every release uv.lock still recorded the previous portal-client version and `uv sync --locked` failed CI on the next push. Update the lockfile's entry alongside pyproject.toml, fail the release if that entry can't be found, and commit uv.lock with the release. Co-Authored-By: Claude Opus 5.5 --- .releaserc.json | 2 +- scripts/update-version-number.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.releaserc.json b/.releaserc.json index 05290de..6785053 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -13,7 +13,7 @@ [ "@semantic-release/git", { - "assets": ["pyproject.toml"], + "assets": ["pyproject.toml", "uv.lock"], "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" } ] diff --git a/scripts/update-version-number.sh b/scripts/update-version-number.sh index 6ad3eb4..5ea35c8 100755 --- a/scripts/update-version-number.sh +++ b/scripts/update-version-number.sh @@ -9,3 +9,11 @@ fi echo "Updating Version to: $1" sed -i "s/version = \".*\"$/version = \"$1\"/" pyproject.toml + +# uv.lock records the project's own version as well; unless it matches pyproject.toml, `uv sync --locked` rejects +# the lockfile +sed -i "/^name = \"portal-client\"$/{n;s/^version = \".*\"$/version = \"$1\"/}" uv.lock +if ! grep -A1 '^name = "portal-client"$' uv.lock | grep -qx "version = \"$1\""; then + >&2 echo "Could not update the portal-client version in uv.lock" + exit 1 +fi From c4ce0f969f09a0477e03803e209d90a7bc849054 Mon Sep 17 00:00:00 2001 From: Benedikt Reiser Date: Tue, 6 Oct 2026 13:44:57 +0200 Subject: [PATCH 2/2] chore: sync the uv lockfile with the 3.5.0 project version The 3.5.0 release commit bumped pyproject.toml only, so `uv sync --locked` in CI rejected the lockfile, which still recorded portal-client 3.4.1. Co-Authored-By: Claude Opus 5.5 --- uv.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uv.lock b/uv.lock index 627ea96..02dcc35 100644 --- a/uv.lock +++ b/uv.lock @@ -166,7 +166,7 @@ wheels = [ [[package]] name = "portal-client" -version = "3.4.1" +version = "3.5.0" source = { editable = "." } dependencies = [ { name = "backoff" },