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 8a365db96..0085c1b49 100644 --- a/sdk/python/CHANGELOG.md +++ b/sdk/python/CHANGELOG.md @@ -20,7 +20,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