mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
Prepare Python SDK 0.147.0 stable release (#39155)
## What changed - Pin `openai-codex` to the `0.147.0` CLI runtime and regenerate its protocol models and lockfile. - Allow stable Python SDK release tags and require their versions to match the pinned runtime. - Expose the regenerated API additions, including thread sections, environment connection notifications, audio inputs, and the `section_id` thread-list filter. ## Testing - Update release staging, generated-contract, notification, and public-signature coverage for the new runtime. GitOrigin-RevId: 8b99ef6781e01c34d9d697c8c44247fb4e4fe3ab
This commit is contained in:
11
.github/workflows/python-sdk-release.yml
vendored
11
.github/workflows/python-sdk-release.yml
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user