Freeze Poetry Dependencies into requirements.txt
Freeze your poetry requirements into a requirements.txt file.
It's poetry
pip makes it easy. It's like poetry.
We want poetry to be as poetic as pip, but it's not.
Easy as pip
pip freeze > requirements.txt
Thanksgiving pie-level easy.
Poetry
Well what about poetry. If you're using it, you've set up your project:
poetry init
Added a depedency:
poetry add psycopg2
And now you're able to freeze (export) those dependencies:
poetry export --without-hashes --format=requirements.txt > requirements.txt
Maybe more flexible. Definitely more wordy This command is a bit more quirky.