From b8ec655a1e6fab181c96aa89cc0e02e2644373b8 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Nov 2026 05:47:26 +0000 Subject: [PATCH] fix(release): align Python SDK release trigger with python-sdk-v* tag convention The release workflow trigger pattern was python-v*, but the actual release tag followed the python-sdk-v* convention from the archived repository. This mismatch prevented the workflow from running on tagged releases. Changes: - Update workflow trigger from 'python-v*' to 'python-sdk-v*' - Update check_python_release.py to expect 'python-sdk-v' prefix - Update documentation in README.md and CHANGELOG.md to reflect the actual tag convention The trigger now matches the existing python-sdk-v0.5.0 tag and the tag convention documented in earlier releases (python-sdk-v0.4.0). Refs: #280 (receipt signing issues), evidence in uploads/amw-sbom-signing-receipts-evidence-2026-11-09.md Signed-off-by: Cursor Agent Co-authored-by: Christopher --- .github/scripts/check_python_release.py | 6 +++--- .github/workflows/release-python.yml | 2 +- sdk/python/CHANGELOG.md | 2 +- sdk/python/README.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/scripts/check_python_release.py b/.github/scripts/check_python_release.py index dd5d18121..4c9419b23 100644 --- a/.github/scripts/check_python_release.py +++ b/.github/scripts/check_python_release.py @@ -10,9 +10,9 @@ def verify_release( event_name: str, tag: str, input_version: str, pyproject: Path, dist: Path ) -> str: if event_name == "push": - if not tag.startswith("python-v"): - raise ValueError("push tag must start with python-v") - requested_version = tag[len("python-v") :] + if not tag.startswith("python-sdk-v"): + raise ValueError("push tag must start with python-sdk-v") + requested_version = tag[len("python-sdk-v") :] elif event_name == "workflow_dispatch": requested_version = input_version else: diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index 4b6ce4883..d3d96004b 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -3,7 +3,7 @@ name: Release Python SDK on: push: tags: - - 'python-v*' + - 'python-sdk-v*' workflow_dispatch: inputs: version: diff --git a/sdk/python/CHANGELOG.md b/sdk/python/CHANGELOG.md index d8c8c9a68..5055dd656 100644 --- a/sdk/python/CHANGELOG.md +++ b/sdk/python/CHANGELOG.md @@ -11,7 +11,7 @@ the legacy `amount` alias when both differ, `charge()` now raises `IdempotencyConflictError` for every 409 response, and `B2AEdgeClient.execute_awi_action()` requires a permit and key. `parse_402_response()` always sets the two amounts equal, so its normal path -is unchanged. The tag is not cut by this change. `python-v0.5.0` is still a +is unchanged. The tag is not cut by this change. `python-sdk-v0.5.0` is still a release decision. ### Distribution name diff --git a/sdk/python/README.md b/sdk/python/README.md index 970ddef19..6d09259fc 100644 --- a/sdk/python/README.md +++ b/sdk/python/README.md @@ -4,7 +4,7 @@ Typed async client for the governed MCP trust loop: `discover → authenticate → authorize → invoke → meter → receipt → audit → govern` -The `amw-sdk` distribution is at version `0.5.0`. Tags matching `python-v*` +The `amw-sdk` distribution is at version `0.5.0`. Tags matching `python-sdk-v*` trigger the PyPI release workflow. Until publication, install from this checkout. ## Installation