poetry-plugin-export icon indicating copy to clipboard operation
poetry-plugin-export copied to clipboard

CLI export feature - Export all versions of requirements. ie. DEV & PROD

Open jonnyhoff opened this issue 2 years ago • 3 comments

Feature Request

CLI export feature

Export all versions of requirements. ie. DEV & PROD

Example command:

--all argument

poetry export --without-hashes --all -f requirements.txt

Desired output:

requirements.txt
requirements.dev.txt

jonnyhoff avatar Jun 21 '23 12:06 jonnyhoff

poetry export --without-hashes --only=main -o requirements.txt
poetry export --without-hashes --only=dev -o requirements.dev.txt

dimbleby avatar Jun 21 '23 12:06 dimbleby

the implied suggestion of my previous comment was that this feature request is low value because the desired output is easily achieved already

ie IMO let's just close it

dimbleby avatar Jun 22 '23 08:06 dimbleby

Hi,

I just add a comment as I've a project with some groups (5, yes, that's a lot!) and that's a pain to run 5 commands to generate 5 files separately. Even if I can redirect all outputs to the same file, I don't want to write all groups several times (one in gitlab-ci file, one in makefile, etc).

I also specify that I do not have a root dependency group and by default, nothing is exported. This would be great to have the --all option (or have this --all option as a default and select groups to add/exclude as options).

Thanks

etienne-monier avatar Apr 15 '24 11:04 etienne-monier