Skip to content

maturin develop only install dependencies #3248

Description

@BD103

I have development dependencies specified in a dependency group in pyproject.toml. I use maturin develop to install these dev dependencies.

# pyproject.toml

[dependency-groups]
dev = ["black~=26.5", "isort~=8.0"]

In CI, I have a workflow that runs black and isort on my project. The workflow works like this:

  1. Checkout repository
  2. Install Rust
  3. Install Python
  4. Run maturin develop
  5. Run black and isort

Right now, the maturin develop step is taking a significant portion of CI time because it has to compile the Rust crate. black and isort don't need the Rust crate compiled, however, because they only inspect Python files.

It would be really nice if there was a way for Maturin to install dependency groups without compiling the Rust crate. I was thinking something like maturin develop --no-compile, although I do not have a strong preference on the naming!

Thanks! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions