Skip to content

Publish r-lib-ir wheels to PyPI - #147

Open
t-kalinowski wants to merge 5 commits into
mainfrom
feat/pypi-release
Open

Publish r-lib-ir wheels to PyPI#147
t-kalinowski wants to merge 5 commits into
mainfrom
feat/pypi-release

Conversation

@t-kalinowski

@t-kalinowski t-kalinowski commented Jul 31, 2026

Copy link
Copy Markdown
Member

Summary

Make ir installable from PyPI with uv tool install r-lib-ir, which installs both ir and rx. Extend the tag-driven release so GitHub and PyPI artifacts use the same package version, and only restore the development version after public installs work.

User-facing changes

  • Add PyPI metadata for binary-only Maturin wheels under the package name r-lib-ir.
  • Publish wheels for macOS ARM and x86, manylinux ARM and x86, and Windows x86.
  • Document the uv install command and the one-time Trusted Publisher setup.
  • Install and verify uv from the Unix and Windows development setup scripts so a fresh development environment can run the full check.

Internal changes

  • Build and install-test every release wheel before publishing the GitHub Release, then publish to PyPI with OIDC.
  • Require the release tag to match the Cargo package version and verify the complete five-wheel set.
  • Retry public PyPI visibility in the release script and stop before the post-release +dev commit if either installed command fails.
  • Pin setup-uv to a published exact release in CI and release workflows.
  • Key Python resolution markers by the effective UV_CACHE_DIR and UV_PYTHON_INSTALL_DIR, allowing reuse without crossing uv storage roots.
  • Add CI coverage that builds a wheel and verifies that uv tool install exposes both executables, plus release-sequencing and cache-key regressions.

Notes

The first PyPI release requires the pypi GitHub environment and the pending Trusted Publisher described in RELEASE.md. The workflow publishes wheels only, without a source distribution.

@t-kalinowski
t-kalinowski marked this pull request as ready for review July 31, 2026 16:34

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

Copy link
Copy Markdown

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: 418b1f536d

ℹ️ 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 tests/python_package.rs
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