Skip to content

Instantly share code, notes, and snippets.

@osolmaz
Created September 26, 2022 15:38
Show Gist options
  • Save osolmaz/a4be3d68194fa30718bfc22b1488096b to your computer and use it in GitHub Desktop.
Save osolmaz/a4be3d68194fa30718bfc22b1488096b to your computer and use it in GitHub Desktop.
Export dependencies with Poetry, only package versions without hashes and platform details, in one line
poetry export --without-hashes --format=requirements.txt | grep -E '^[^# ]' | cut -d ';' -f1 > requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment