Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jonnyhoff opened this issue Jun 21, 2023 · 3 comments
Open

Comments

@jonnyhoff
Copy link

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
@dimbleby
Copy link
Contributor

dimbleby commented Jun 21, 2023

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

@Secrus Secrus transferred this issue from python-poetry/poetry Jun 22, 2023
@dimbleby
Copy link
Contributor

dimbleby commented Jun 22, 2023

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

@etienne-monier
Copy link

etienne-monier commented Apr 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants