Update Python SDK runtime to 0.147.0

This commit is contained in:
Ahmed Ibrahim
2026-08-18 06:08:40 +00:00
parent 095a07a3e1
commit 025a88adbd
10 changed files with 1744 additions and 347 deletions
+8 -3
View File
@@ -38,10 +38,10 @@ jobs:
from pathlib import Path
sdk_version = os.environ["GITHUB_REF_NAME"].removeprefix("python-v")
if not re.fullmatch(r"[0-9]+\.[0-9]+\.[0-9]+b[0-9]+", sdk_version):
if not re.fullmatch(r"[0-9]+\.[0-9]+\.[0-9]+(?:b[0-9]+)?", sdk_version):
raise SystemExit(
"Python SDK release tags must identify a beta release, "
"for example python-v0.1.0b1."
"Python SDK release tags must identify a stable or beta release, "
"for example python-v0.147.0 or python-v0.1.0b1."
)
pyproject = tomllib.loads(Path("sdk/python/pyproject.toml").read_text())
@@ -56,6 +56,11 @@ jobs:
f"Expected exactly one pinned {prefix} dependency, found {runtime_versions}"
)
if "b" not in sdk_version and sdk_version != runtime_versions[0]:
raise SystemExit(
f"Stable SDK version {sdk_version} must match pinned runtime {runtime_versions[0]}."
)
with Path(os.environ["GITHUB_OUTPUT"]).open("a") as output:
print(f"runtime_version={runtime_versions[0]}", file=output)
print(f"sdk_version={sdk_version}", file=output)