Skip to content

Instantly share code, notes, and snippets.

@ricklon
Created March 23, 2020 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricklon/ac9b2b5e9a91b10b7a05686d6333be45 to your computer and use it in GitHub Desktop.
Save ricklon/ac9b2b5e9a91b10b7a05686d6333be45 to your computer and use it in GitHub Desktop.
Convert requirements.txt to poetry format
cat requirements.txt | perl -pe 's/([<=>]+)/:$1/g' | xargs -n 1 -I {} echo "poetry add '{}'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment