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
I want to create a requirement file using the pdm export command for a specific --group. Though, I cannot seem to make it work except if I do some workaround.
To be able to get only the "group1" I am doing: pdm export --group group1 --no-default --prod -o requirements.txt
What I expect
Something more concise like: pdm export --group group1 -o requirements.txt
as for me the --no-default --prod is not very natural and well documented. It seems quite confusing to use those two options at the same time.
I think that poetry has --only and --with options, that could be a great addition.
Maybe I am missing something and if it's the case I'd be happy to get a proper way to do this!
The text was updated successfully, but these errors were encountered:
Problem
I want to create a requirement file using the
pdm export
command for a specific--group
. Though, I cannot seem to make it work except if I do some workaround.Here is a
pyproject.toml
that can be used:To be able to get only the "group1" I am doing:
pdm export --group group1 --no-default --prod -o requirements.txt
What I expect
Something more concise like:
pdm export --group group1 -o requirements.txt
as for me the
--no-default --prod
is not very natural and well documented. It seems quite confusing to use those two options at the same time.I think that poetry has
--only
and--with
options, that could be a great addition.Maybe I am missing something and if it's the case I'd be happy to get a proper way to do this!
The text was updated successfully, but these errors were encountered: