3 ms·
First, how did you generate that requirements file? Second, how do you separate dev dependencies from prod dependencies, and how do you update a dependency and
by jshen 6y ago
First, how did you generate that requirements file?
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?
- ghshephard 6y agopip 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.
- jshen 6y agoYes, 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.