How to specify dependency groups with uv pip install
and uv pip compile
?
#9457
Labels
duplicate
This issue or pull request already exists
I'm on uv 0.5.4 (Homebrew 2024-11-20) and it doesn't appear there's a way to install dependency groups with
uv pip install
nor include it in compilation withuv pip compile
.Based on the PEP (cf. https://peps.python.org/pep-0735/#installing-dependency-groups), pip should eventually be able to do this with something like:
$ pip install --dependency-groups=tests .
I wasn't able to find any evidence that an implementation has made it into pip's recent October v24.3.1 release nor mention on its changelog (https://pip.pypa.io/en/stable/news/).
Q: Is uv waiting for pip to establish an interface, then it will adopt it? I can see how implementing something that is different from pip might be problematic for maintaining compatibility.
For context,
uv sync
already does implement dependency groups with--group
and related flags.The text was updated successfully, but these errors were encountered: