You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, uv pip compile does not support Poetry's dependency groups feature. Adding this support would greatly enhance uv's compatibility with Poetry projects and improve workflow for developers who use both tools.
Use Case
Many projects use Poetry's dependency groups to separate different sets of dependencies (e.g., development dependencies, test dependencies, etc.). Being able to compile requirements files for specific groups using uv pip compile would streamline the process of managing dependencies in these projects.
Proposed Functionality
Add a new option to uv pip compile, such as --poetry-group or -g, that allows specifying one or more Poetry dependency groups.
When this option is used, uv pip compile should read the pyproject.toml file and only include dependencies from the specified group(s) in the compiled requirements file.
If no group is specified, the default behavior should be to include all dependencies (similar to Poetry's behavior).
An aside is Poetry could be then paired with Rye to resolve astral-sh/rye#421, albeit in a hacky way where one has both Rye and Poetry present in the same ecosystem 😆
I don't think we'll add support for reading Poetry's configuration (similarly, we have avoided reading pip's configuration). Instead, I'd point to PEP 735 which proposes a standardized format for dependency groups.
Agreed. Unfortunately I think we're unlikely to support this both because we avoid reading configuration designed for other tools and because Poetry's dependency syntax and semantics are not standardized and entirely custom to Poetry.
Description
Currently,
uv pip compile
does not support Poetry's dependency groups feature. Adding this support would greatly enhance uv's compatibility with Poetry projects and improve workflow for developers who use both tools.Use Case
Many projects use Poetry's dependency groups to separate different sets of dependencies (e.g., development dependencies, test dependencies, etc.). Being able to compile requirements files for specific groups using
uv pip compile
would streamline the process of managing dependencies in these projects.Proposed Functionality
uv pip compile
, such as--poetry-group
or-g
, that allows specifying one or more Poetry dependency groups.uv pip compile
should read thepyproject.toml
file and only include dependencies from the specified group(s) in the compiled requirements file.Example Usage
Additional Considerations
uv pip compile
options?Benefits
The text was updated successfully, but these errors were encountered: