3 ms·
I prefer this resolver to `pip freeze` type pinning for dependency pull safety. Pip freeze makes it a nightmare to remove old packages if you have hundreds of p
by zests 6y ago
I prefer this resolver to `pip freeze` type pinning for dependency pull safety. Pip freeze makes it a nightmare to remove old packages if you have hundreds of packages frozen.
- takeda 6y agoThis doesn't replace pip freeze. There are two kinds of dependencies: - fluid ones, where you specify immediate dependencies of your application with version ranges (typically versions that are api compatible with your app) - locked versions (this is what requirements.txt supposed to be) You get can get this kind of behavior if you define packages in setup.cfg in install_requires and then use pip-compile (from pip-tools) to generate requirements.txt based on it. pip-sync can then synchronize packages to requirements.txt. Alternatively you could just use poetry which does all of this with a nicer interface.
- zests 6y agoThis replaces a use case of pip freeze. If you only use pip freeze for that use case then it is a replacement.