Skip to content

Publish Python runtime wheels on release#21784

Merged
aibrahim-oai merged 10 commits into
mainfrom
codex/publish-python-runtime-pypi
May 8, 2026
Merged

Publish Python runtime wheels on release#21784
aibrahim-oai merged 10 commits into
mainfrom
codex/publish-python-runtime-pypi

Conversation

@aibrahim-oai

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

Copy link
Copy Markdown
Collaborator

Why

Published Python SDK builds depend on an exact openai-codex-cli-bin runtime package, but the release workflow did not publish that runtime package to PyPI. That left the SDK packaging story incomplete: release artifacts could produce Codex binaries, but Python users still needed a matching wheel carrying the platform-specific runtime and helper executables.

This PR is stacked on #21787 so release jobs can include helper binaries in runtime wheels: Linux wheels include bwrap for sandbox fallback, and Windows wheels include the signed sandbox/elevation helpers beside codex.exe.

What changed

  • Builds platform-specific openai-codex-cli-bin wheels from signed release binaries on macOS, Linux, and Windows release runners.
  • Packages Linux bwrap into musllinux runtime wheels.
  • Packages Windows sandbox helper executables into Windows runtime wheels.
  • Uploads runtime wheels as GitHub release assets and publishes them to PyPI using trusted publishing from the pypi GitHub environment.
  • Keeps the new Python runtime publish job non-blocking so failures need follow-up but do not fail the Rust release workflow.
  • Pins the PyPA publish action to the v1.13.0 commit SHA for reproducible release publishing.
  • Documents that runtime wheels are platform wheels published through PyPI trusted publishing.

Testing

  • ruby -e 'require "yaml"; ARGV.each { |f| YAML.load_file(f); puts "ok #{f}" }' .github/workflows/rust-release.yml .github/workflows/rust-release-windows.yml
  • git diff --check

CI is the real end-to-end verification for the release workflow path.

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

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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6f2489c859

ℹ️ 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 .github/workflows/rust-release-windows.yml
Allow runtime package staging to include extra executables beside the bundled Codex binary so Windows runtime wheels can carry sandbox helpers.

Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai force-pushed the codex/publish-python-runtime-pypi branch from 41076bd to 5cec2c9 Compare May 8, 2026 17:29
@aibrahim-oai aibrahim-oai changed the base branch from main to codex/python-runtime-windows-helpers May 8, 2026 17:29

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

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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5cec2c92c3

ℹ️ 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 .github/workflows/rust-release.yml Outdated
Document why helper executables are copied beside the bundled Codex binary during runtime package staging.

Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai force-pushed the codex/publish-python-runtime-pypi branch from 5cec2c9 to 69eb91c Compare May 8, 2026 17:34
Use generic resource fixture names and comments so runtime package staging can support Linux bwrap as well as Windows helpers.

Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai force-pushed the codex/publish-python-runtime-pypi branch from 69eb91c to b6b23fa Compare May 8, 2026 17:40
@aibrahim-oai

Copy link
Copy Markdown
Collaborator Author

@codex review

aibrahim-oai and others added 4 commits May 8, 2026 20:44
Assert staged runtime resource binaries land under the wheel include path so packaged helpers are not dropped during build.

Co-authored-by: Codex <noreply@openai.com>
Build platform-specific openai-codex-cli-bin wheels from signed release binaries and publish them to PyPI using trusted publishing.

Co-authored-by: Codex <noreply@openai.com>
Document why the release workflow includes sandbox helper executables in Windows Python runtime wheels.

Co-authored-by: Codex <noreply@openai.com>
Pass the release bwrap binary into Linux runtime wheel staging so PyPI installs preserve sandbox fallback behavior.

Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai force-pushed the codex/publish-python-runtime-pypi branch from b6b23fa to 9196541 Compare May 8, 2026 17:44
aibrahim-oai and others added 3 commits May 8, 2026 20:46
Set the Python runtime publish job environment to match the PyPI trusted publisher configuration.

Co-authored-by: Codex <noreply@openai.com>
Use the v1.13.0 commit for the PyPI publish action so the pinned action reference has a clear release version.

Co-authored-by: Codex <noreply@openai.com>
Allow the Rust release workflow to finish even if the new Python runtime PyPI publish job needs follow-up.

Co-authored-by: Codex <noreply@openai.com>
Base automatically changed from codex/python-runtime-windows-helpers to main May 8, 2026 19:00
@aibrahim-oai aibrahim-oai merged commit 9183503 into main May 8, 2026
25 checks passed
@aibrahim-oai aibrahim-oai deleted the codex/publish-python-runtime-pypi branch May 8, 2026 19:01
@github-actions github-actions Bot locked and limited conversation to collaborators May 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant