Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Honestly, pip freeze includes the whole content of a venv site-packages, and the exact versions. For most projects, that's equivalent to all the dependancies recursively pins with peotry, although you don't have the clean pyproject-dev-prod/lock file separation.

So a huge number of cases can be handled with just that. It will be "reproducible" enought for a lot of people.



> although you don't have the clean pyproject-dev-prod/lock file separation

That's why I use "poetry export -f requirements.txt > requirements.txt" instead of pip freeze. It only exports prod requirements from the poettry lock file.


Nice trick, and very useful to make sure people never have to know about poetry if your team can't deal with it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: