Re:Ask HN: Why Poetry did not become a mainstream package ma...
by awaythrowact on Saturday June 19, 2021 @10:03AM
(#27560537)
Why is pip freeze not 100%?
[ Parent
| on HN ]
Re:Ask HN: Why Poetry did not become a mainstream package ma...
by nickjj on Saturday June 19, 2021 @10:07AM
(#27560565)
> Why is pip freeze not 100%?
You mean not 100% fool proof?
It is, but with the strategy above a new lock file will get generated if the requirements.txt file is newer than the lock file, so if you change 1 dependency you might get newer unexpected dependencies. This is just the limitation of how pip works without building a whole new layer of dependency tracking in (which I guess is why Poetry and similar tools exists). Fortunately in practice I'm happy with the pip solution because it's a few line shell script and hasn't been a problem yet. The important part of having the lock file is there for reproduceable builds today and in the future.