3 ms·
The lack of discussion of lock files is a big omission in any 'best practices' page. "Lock" only appears in a log output of Poetry. Even if the answer is "Poet
by thundergolfer 5y ago
The lack of discussion of lock files is a big omission in any 'best practices' page. "Lock" only appears in a log output of Poetry.
Even if the answer is "Poetry handles it" you certainly want to explain why they're important just like is being done in the rest of the "Why use..." sections.
- nerdponx 5y agoFor a generic lockfile, use the pip-compile tool from https://pypi.org/project/pip-tools https://pypi.org/project/pip-tools
- beaugunderson 5y agoHuge +1 for this; pip-compile is so much faster and less surprising than poetry. Poetry's #1 footgun is that it updates the version of unrelated dependencies when you add a new dependency. No thanks.
- pmkiwi 5y agoYeap I am using pip-compile too because I always managed to mess up my environment when using poetry!
- 0x008 5y agoYes! Lockfiles are basically the only reason to use poetry over pip+venv or am I missing something?