Skip to content

Conversation

abhiaagarwal
Copy link
Contributor

Description

Creates a new cargo profile for the python build, applying a few techniques from min-sized-rust. Sets up maturin to build with said profile.

Related Issue(s)

Relates to #3876

Documentation

The size of the wheel on my system is:

❯ du -sh *
20M     deltalake-1.2.1-cp39-abi3-macosx_11_0_arm64.whl

The equivalent wheel in pypi is 43.3 MB

Signed-off-by: Abhi Agarwal <[email protected]>
@abhiaagarwal abhiaagarwal changed the title Reduce wheel size chore: reduce wheel size Oct 20, 2025
@github-actions github-actions bot added the binding/python Issues for the Python package label Oct 20, 2025
@github-actions
Copy link

ACTION NEEDED

delta-rs follows the Conventional Commits specification for release automation.

The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification.

env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
with:
maturin-version: v1.6.0 # https://github.com/PyO3/maturin/issues/2154
Copy link
Collaborator

Choose a reason for hiding this comment

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

Haha completely forgot about this pin 😆

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, the issue seemed to be resolved upstream so I removed the pin

@codecov
Copy link

codecov bot commented Oct 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.74%. Comparing base (1cdec0d) to head (86c0107).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3878   +/-   ##
=======================================
  Coverage   73.73%   73.74%           
=======================================
  Files         151      151           
  Lines       39347    39347           
  Branches    39347    39347           
=======================================
+ Hits        29013    29015    +2     
+ Misses       9023     9021    -2     
  Partials     1311     1311           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ion-elgreco
Copy link
Collaborator

@abhiaagarwal could you benchmark the opt-level? Because I prefer performance over size

@rtyler rtyler enabled auto-merge (rebase) October 21, 2025 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

binding/python Issues for the Python package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants