Skip to content

chore(python): Add py-polars to Cargo workspace#12256

Merged
stinodego merged 5 commits intomainfrom
workspace-pypolars
Nov 5, 2023
Merged

chore(python): Add py-polars to Cargo workspace#12256
stinodego merged 5 commits intomainfrom
workspace-pypolars

Conversation

@stinodego
Copy link
Contributor

@stinodego stinodego commented Nov 5, 2023

This adds the py-polars crate to the workspace as a non-default member. Benefits:

  • Integrates everything in the workspace. Can run everything from the workspace root (clippy / build / ...). This will help simplify the CI in the future (for now, everything keeps working as before).
  • Removes duplication between dependency versions in workspace / py-polars manifest
  • Only a single target folder in the workspace - saves a whole bunch of space on my device and saves re-compiling things.

The Cargo.lock is now in the repo root, as well as the profile definitions. These will still be picked up by maturin and included in the sdist.

For some context, the official recommendation for Rust projects is now to check in the lockfile, even for libraries:
rust-lang/cargo#12382

@github-actions github-actions bot added internal An internal refactor or improvement python Related to Python Polars labels Nov 5, 2023
@stinodego stinodego marked this pull request as ready for review November 5, 2023 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement python Related to Python Polars

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants