Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to specify dependency groups with uv pip install and uv pip compile? #9457

Closed
cthoyt opened this issue Nov 26, 2024 · 2 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@cthoyt
Copy link
Contributor

cthoyt commented Nov 26, 2024

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 with uv 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.

@zanieb
Copy link
Member

zanieb commented Nov 26, 2024

@zanieb zanieb added the duplicate This issue or pull request already exists label Nov 26, 2024
@cthoyt
Copy link
Contributor Author

cthoyt commented Nov 26, 2024

sorry about that, I did in fact search the issue tracker, but didn't find those. Maybe you could also add the text "dependency group" / "dependency groups" without dashes to make it more findable!

@cthoyt cthoyt closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants