Re:Python Pip 20.3 Released with new resolver
by ghshephard on Monday November 30, 2020 @09:55PM
(#25261761)
pip freeze > requirements.txt
Lists every python module that's been loaded into the virtualenvironment. So, from my (admittedly new) understanding, that means we guarantee that in the production/devel/docker environment - every python module will be identical to whatever was installed in the virtual env.Dependencies and transitive dependencies are guaranteed to be resolved/ensured because we list everyone one of them out in the requirements.txt file.
Re:Python Pip 20.3 Released with new resolver
by jshen on Monday November 30, 2020 @10:43PM
(#25262058)
Yes, this works as you expect. What it lacks are three big things; making it easy to see what your direct dependencies are, separating dev dependencies from prod dependencies, and an easy way to update a dependency while resolving all transitive dependencies.
There are other shortcomings, but those are the big ones.
Second, how do you separate dev dependencies from prod dependencies, and how do you update a dependency and ensure all of its transitive dependencies are resolved appropriately?