astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
25.42k stars 739 forks source link

uv pip install --group #8590

Open hynek opened 1 week ago

hynek commented 1 week ago

Hi,

I got really excited about PEP 735 but then I noticed it can't really be used with unlocked packages?

Like in https://github.com/hynek/svcs/pull/107, I would like to be able to do uv pip install --group dev --editable . (instead of uv pip install -e .[dev] although if you just allowed to pass dep groups like this, I'd be happy too)

This is completely orthogonal that many open-source packages can't use locking yet due to #7533 – some/many people just don't want to go that route.

Or am I missing something?

zanieb commented 1 week ago

We didn't add it to the uv pip API because it's not available there yet and we want to match their interface

hynek commented 1 week ago

Ah cool, that was my suspicion!