Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 340 Bytes

poetry_import_requirementstxt.md

File metadata and controls

12 lines (10 loc) · 340 Bytes

Poetry - Import Requirements.txt

If you use poetry and wish to import the requirements.txt of a related/dependent project, you can import some of these packages like so.

If the packages are versioned:

cat requirements.txt | xargs -I % sh -c 'poetry add "%"'

If no versions:

cat requirements.txt|xargs poetry add