Quickly sandbox your AI agent.
Python
fix: upgrade uvr to 0.32.1, use plan.releases API
github-actions[bot]fd628599802f
diff --git a/pyproject.toml b/pyproject.tomlindex c505f77..41d63d6 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -67,7 +67,7 @@ dev = ["pytest-asyncio","pytest-timeout","hatchling",- "uv-release==0.32.0",+ "uv-release==0.32.1","pre-commit>=4.6.0",]diff --git a/uv.lock b/uv.lockindex 6d8b407..a13d8b4 100644--- a/uv.lock+++ b/uv.lock@@ -33,7 +33,7 @@ dev = [{ name = "pytest-timeout" },{ name = "ruff" },{ name = "ty" },- { name = "uv-release", specifier = "==0.32.0" },+ { name = "uv-release", specifier = "==0.32.1" },][[package]]@@ -1285,7 +1285,7 @@ wheels = [[[package]]name = "uv-release"-version = "0.32.0"+version = "0.32.1"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "diny" },@@ -1296,7 +1296,7 @@ dependencies = [{ name = "tomlkit" },]wheels = [- { url = "https://files.pythonhosted.org/packages/ef/62/b7e08b844dcbbea527fa8db54d3bb000a7570c361ce50d6e27549bddab02/uv_release-0.32.0-py3-none-any.whl", hash = "sha256:b53cd2bb15d348fe3637eab0335ed648d285097e0bf471347b004767b039a147", size = 111127, upload-time = "2026-04-30T23:10:47.218Z" },+ { url = "https://files.pythonhosted.org/packages/42/10/fd6d22ce33110922ffefd57292e5915961d54b17c498529abd79d0988f42/uv_release-0.32.1-py3-none-any.whl", hash = "sha256:7aadeefa4063c3d669bec1013fba62c11fde73c38b64f17265210f81fecc7b09", size = 111711, upload-time = "2026-05-01T00:29:26.161Z" },][[package]]diff --git a/uvr_hooks.py b/uvr_hooks.pyindex 6e5b44b..57692c4 100644--- a/uvr_hooks.py+++ b/uvr_hooks.py@@ -181,43 +181,13 @@ def _latest_release_tag(pkg: str) -> str | None:class Hooks(ReleaseHook):def post_plan(self, workspace, intent, plan: Plan) -> Plan:- """Skip jobs whose packages didn't change."""- changed = {c.package.name for c in plan.changes}+ """Customize the release plan."""+ changed = {r.name for r in plan.releases}if "test" not in plan.skip and not (changed & _TEST_PACKAGES):plan.skip.append("test")if "verify-licenses" not in plan.skip and "quicksand-qemu" not in changed:plan.skip.append("verify-licenses")- # Inject per-VM test install commands into the plan.- # The workflow downloads built wheels into dist/ via download-artifact.- # For unchanged packages we fetch their latest release wheels too.- install_lines = [- "uv venv --seed",- "uv pip install --reinstall pytest pytest-timeout pytest-asyncio",- ]- for pkg in sorted(_TEST_PACKAGES):- if pkg in changed:- continue- tag = _latest_release_tag(pkg)- if not tag:- continue- dist_name = pkg.replace("-", "_")- install_lines.append(- f"gh release download {tag} --repo $GITHUB_REPOSITORY"- f" --dir dist/"- f" --pattern '{dist_name}-*linux_x86_64.whl'"- f" --pattern '{dist_name}-*any.whl'"- f" --clobber || true"- )- install_lines.append(- "uv pip install --reinstall --find-links dist/"- " dist/quicksand-*.whl quicksand-ubuntu quicksand-alpine"- )- install = "\n".join(install_lines)- plan = plan.model_copy(- update={"test_install": {vm: install for vm in ("ubuntu", "alpine")}}- )-# Inject a platform-filter command after dep downloads. uv# incorrectly picks linux_aarch64 over macosx_arm64 from find-links# when both are present, so we remove non-native wheels after download.