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
Is it possible to support Poetry groups via --extra? It seems that they are not (yet) supported
Poetry supports both "extras" and "dependency groups". pip-compile supports "extras" but (afaik) does not support "dependency groups".
Poetry encourages the use of "dependency groups" for e.g. dev requirements.
Describe the solution you'd like
Poetry encourages the use of a "dev" group for dependencies. From the Poetry docs
you might have dependencies that are only needed to test your project or to build the documentation.
Further, poetry encourages dev dependencies to be put into a group:
$ poetry add --dev black
The --dev option is deprecated, use the `--group dev` notation instead.
An an example, if I include isort in "extras" via pip-compile -v --extra dev -o dev-requirements.txt pyproject.toml isort will be included in requirements
Currently not, because it seems pip-tools builds wheels to get metadata['Provides-Extra'], and poetry group dependencies are not exposable to wheel metadata. So to do it, pip-tools needs to manually parse pyproject
What's the problem this feature will solve?
Is it possible to support Poetry groups via
--extra
? It seems that they are not (yet) supportedPoetry supports both "extras" and "dependency groups". pip-compile supports "extras" but (afaik) does not support "dependency groups".
Poetry encourages the use of "dependency groups" for e.g. dev requirements.
Describe the solution you'd like
Poetry encourages the use of a "dev" group for dependencies. From the Poetry docs
Further, poetry encourages dev dependencies to be put into a group:
$ poetry add --dev black The --dev option is deprecated, use the `--group dev` notation instead.
An an example, if I include isort in "extras" via
pip-compile -v --extra dev -o dev-requirements.txt pyproject.toml
isort will be included in requirementsHowever when I use the
dev
group it will not be inlcudedAlternative Solutions
As a workaround, I can use
extra
with a list of dev dependencies.Additional context
The text was updated successfully, but these errors were encountered: