add pip-compatible --group
flag to uv pip install
#11686
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a minimal redux of #10861 to be compatible with
uv pip
. I'm not 100% convinced the interaction with other sources is exactly what we want, but this is a good starting point.This implements the interface described in: pypa/pip#13065 (comment)
In that interface they add
--group <[path:]name>
topip install
,pip download
, andpip wheel
. Notably we do not defineuv pip download
anduv pip wheel
, so this PR only implements it foruv pip install
.It was previously proposed we should also support this flag for
uv pip compile
, which can be added trivially in this PR, but is currently not to minimize divergence.Fixes #8590
Current punts on #8969