Skip to content

Instantly share code, notes, and snippets.

@voice1
Created September 28, 2021 18:52
Show Gist options
  • Save voice1/57b05f73e405a05bbc43d75b10771c97 to your computer and use it in GitHub Desktop.
Save voice1/57b05f73e405a05bbc43d75b10771c97 to your computer and use it in GitHub Desktop.
Import pip requirements.txt to poetry
cat requirements.txt | perl -pe 's/([<=>]+)/:$1/' | xargs -t -n 1 -I {} poetry add '{}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment