Skip to content

feat: add inference for Python wheels that bundle Rust binaries. - #1408

Merged
behnazh-w merged 12 commits into
mainfrom
abhinav/python-rust-inference
Jul 16, 2026
Merged

feat: add inference for Python wheels that bundle Rust binaries.#1408
behnazh-w merged 12 commits into
mainfrom
abhinav/python-rust-inference

Conversation

@AbhinavPradeep

Copy link
Copy Markdown
Contributor

Summary

Added inference for non-pure Python wheels that bundle Rust binaries

Description of changes

  1. Modified the buildspec to introduce the concept of a SpecBuildRequirementDict. This provides a richer description of build dependencies.
  2. Added inference for the maturin build tool in specific. Rust-related build dependancies are read from the Cargo.lock/toml and the right Rust toolchain versions are inferred.

Checklist

  • I have reviewed the contribution guide.
  • My PR title and commits follow the Conventional Commits convention.
  • My commits include the "Signed-off-by" line.
  • I have signed my commits following the instructions provided by GitHub. Note that we run GitHub's commit verification tool to check the commit signatures. A green verified label should appear next to all of your commits on GitHub.
  • I have updated the relevant documentation, if applicable.
  • I have tested my changes and verified they work as expected.

@AbhinavPradeep
AbhinavPradeep requested a review from behnazh-w as a code owner May 15, 2026 05:05
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 15, 2026
Comment thread src/macaron/build_spec_generator/common_spec/pypi_spec.py Fixed
Comment thread src/macaron/resources/schemas/macaron_buildspec_schema.json
@AbhinavPradeep
AbhinavPradeep force-pushed the abhinav/python-rust-inference branch from 0d0bd9b to c047ca2 Compare June 30, 2026 02:15
Comment thread src/macaron/build_spec_generator/common_spec/pypi_spec.py Fixed
Comment thread tests/integration/cases/pypi_tree-sitter/expected_default.buildspec
@AbhinavPradeep
AbhinavPradeep force-pushed the abhinav/python-rust-inference branch from bf85a46 to 266764e Compare July 16, 2026 00:32
Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
@AbhinavPradeep
AbhinavPradeep force-pushed the abhinav/python-rust-inference branch from d86640a to 7380431 Compare July 16, 2026 04:06
@behnazh-w behnazh-w changed the title feat: added inference for Python wheels that bundle Rust binaries. feat: add inference for Python wheels that bundle Rust binaries. Jul 16, 2026
@behnazh-w
behnazh-w merged commit dbe410d into main Jul 16, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants