4 ms·
This doesn't replace pip freeze. There are two kinds of dependencies: - fluid ones, where you specify immediate dependencies of your application with version
by takeda 6y ago
This 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.