Skip to content

[1/6] Pin Python SDK runtime dependency#21891

Open
aibrahim-oai wants to merge 2 commits intocodex/publish-python-runtime-pypifrom
codex/python-sdk-pin-runtime-types
Open

[1/6] Pin Python SDK runtime dependency#21891
aibrahim-oai wants to merge 2 commits intocodex/publish-python-runtime-pypifrom
codex/python-sdk-pin-runtime-types

Conversation

@aibrahim-oai
Copy link
Copy Markdown
Collaborator

@aibrahim-oai aibrahim-oai commented May 9, 2026

Stack

This PR is the first change in the stack, on top of #21812.

Why

The Python SDK should declare the exact runtime package it expects instead of inferring a runtime version from the SDK package version. That makes the runtime relationship visible to packaging tools and reviewers.

What changed

  • Declare openai-codex-cli-bin==0.131.0a4 in sdk/python/pyproject.toml.
  • Update uv.lock for the published runtime wheels.
  • Resolve the runtime pin from the declared dependency in _runtime_setup.py.
  • Update targeted docs and tests that describe the runtime pin source of truth.

Verification

  • CI is running on this PR stack.
  • Local structural checks before submitting: git diff --check and workflow YAML parse.

@aibrahim-oai
Copy link
Copy Markdown
Collaborator Author

aibrahim-oai commented May 9, 2026

This change is part of the following stack:

Change managed by git-spice.

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 41a3b1da7e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sdk/python/pyproject.toml
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = ["pydantic>=2.12"]
dependencies = ["pydantic>=2.12", "openai-codex-cli-bin==0.131.0a4"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Publish Linux runtime wheels pip can install

Pinning this dependency makes every SDK install resolve openai-codex-cli-bin, but the new lockfile only has Linux wheels tagged musllinux_1_1_*. Standard glibc Linux interpreters advertise manylinux/linux tags, not musllinux, so pip/uv install openai-codex-app-server-sdk will fail on the common Linux target until manylinux/linux-compatible runtime wheels are published or the dependency is conditional.

Useful? React with 👍 / 👎.

@aibrahim-oai aibrahim-oai force-pushed the codex/python-sdk-pin-runtime-types branch from 6679dff to edf326e Compare May 9, 2026 07:04
@aibrahim-oai aibrahim-oai changed the title Pin Python SDK to published runtime Pin Python SDK runtime dependency May 9, 2026
@aibrahim-oai aibrahim-oai changed the title Pin Python SDK runtime dependency [1/3] Pin Python SDK runtime dependency May 9, 2026
aibrahim-oai and others added 2 commits May 9, 2026 10:23
Make the Python SDK declare its published runtime package dependency directly and resolve the runtime version from that pin instead of inferring it from the SDK package version.

Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai force-pushed the codex/python-sdk-pin-runtime-types branch from edf326e to c24694b Compare May 9, 2026 07:24
@aibrahim-oai aibrahim-oai changed the title [1/3] Pin Python SDK runtime dependency [1/4] Pin Python SDK runtime dependency May 9, 2026
@aibrahim-oai aibrahim-oai changed the title [1/4] Pin Python SDK runtime dependency [1/5] Pin Python SDK runtime dependency May 9, 2026
@aibrahim-oai aibrahim-oai changed the title [1/5] Pin Python SDK runtime dependency [1/6] Pin Python SDK runtime dependency May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant