[codex] Prepare Python SDK beta documentation and package metadata#24836
Conversation
92a660f to
f3dce8d
Compare
💡 Codex Reviewhttps://github.com/openai/codex/blob/92a660f978e0fe7dbdee953d2f6eb2d43a07479a/.github/workflows/python-sdk-release.yml#L54 This job runs on https://github.com/openai/codex/blob/92a660f978e0fe7dbdee953d2f6eb2d43a07479a/sdk/python/pyproject.toml#L55 Because the sdist now ships ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a8947ffe94
ℹ️ 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".
| cd sdk/python | ||
| uv sync | ||
| source .venv/bin/activate | ||
| pip install openai-codex |
There was a problem hiding this comment.
Avoid advertising an install path that fails on Linux
On glibc Linux environments, this documented command cannot satisfy the package's pinned openai-codex-cli-bin==0.132.0 dependency: the current lock/PyPI metadata for that runtime has macOS, Windows, and musllinux wheels but no manylinux wheel or sdist, and uv's resolver fails with that exact platform error from sdk/python. Because this README is now the PyPI-facing install path, Linux users will fail before they can import the SDK unless the release pins a runtime with manylinux wheels or the docs clearly limit/support an alternate install path for those platforms.
Useful? React with 👍 / 👎.
Why
The initial public
openai-codexbeta should read and install like a normal published Python package before a release tag is created. This follows merged PR #24828, which establishes the independent SDK beta release plumbing and exact runtime dependency.What changed
sdk/python/README.mdas a compact PyPI-facing beta package page: published installation, one quickstart, short login examples, built-in help, and links to deeper guides.pip install openai-codexthe primary install path while beta releases are the only published SDK releases, with--predocumented for opting into prereleases after a stable release exists.help()/pydocdocstrings across the public API and generated public convenience methods throughscripts/update_sdk_artifacts.py.Apache-2.0license expression and Documentation URL in package metadata, without introducing a duplicated SDK-local license file.src/openai_codex,README.md, andpyproject.toml); the repository docs and runnable examples remain linked from the PyPI README.musllinuxruntime wheel.twine check --strictto the release workflow so malformed PyPI metadata or rendered README content fails before publishing.Validation
uv run --frozen --extra dev ruff check scripts/update_sdk_artifacts.py src/openai_codex tests/test_public_api_signatures.py tests/test_artifact_workflow_and_binaries.pybefore the final README-only reductions and review-fix follow-ups.openai_codex-0.1.0b1-py3-none-any.whlandopenai_codex-0.1.0b1.tar.gzbefore the final README-only reductions and review-fix follow-ups.python -m twine check --stricton both built artifacts before the final README-only reductions and review-fix follow-ups.Apache-2.0without a duplicated SDK-local license file.inspect.getdoc(...)resolves documentation for the package,Codex,CodexConfig, and key generated thread methods.