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

poetry add requirements.txt #10113

Closed
jonnyhoff opened this issue Jan 26, 2025 · 2 comments
Closed

poetry add requirements.txt #10113

jonnyhoff opened this issue Jan 26, 2025 · 2 comments
Labels
area/deps Related to representing and locking dependencies kind/feature Feature requests/implementations

Comments

@jonnyhoff
Copy link

Issue Kind

Brand new capability

Description

Having the ability to run poetry add requirements.txt would greatly improve developer experience.

I use poetry for all my projects but when working on other people's projects, I've found that it's a little bit cumbersome to have to wangle poetry add command to pass the requirements file.

Impact

Developer Experience.

Workarounds

cat requirements.txt | xargs poetry add

OR

poetry add $(cat requirements.txt)

@jonnyhoff jonnyhoff added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Jan 26, 2025
@dimbleby
Copy link
Contributor

dimbleby commented Jan 26, 2025

Those workarounds do not look cumbersome.

Previously rejected at #8837

@abn
Copy link
Member

abn commented Jan 26, 2025

I'm afraid I agree that the workarounds might be the right solution here :)

As stated in #8837, this (if it actually needs to be done) might be a case for a plugin more so than poetry itself.

The maintenance burden for a feature like this does not make much sense at the moment. While the feature itself might be trivial (#famouslastwords), the ongoing support of it might trigger more nuanced fixes and improvements that deter time from areas already requiring maintenance. This is the reason we eventually spun out the export command to a plugin.

In any case, I'm closing this for now as this won't be implemented as things stand.

@abn abn closed this as completed Jan 26, 2025
@abn abn added area/deps Related to representing and locking dependencies and removed status/triage This issue needs to be triaged labels Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/deps Related to representing and locking dependencies kind/feature Feature requests/implementations
Projects
None yet
Development

No branches or pull requests

3 participants