look at switching to pip-compile (socorro)
Categories
(Socorro :: General, task, P2)
Tracking
(Not tracked)
People
(Reporter: willkg, Assigned: willkg)
Details
Attachments
(1 file)
The GCP Ingestion Edge uses pip-compile and a requirements.in file to manage first-order dependencies.
When they add new dependencies, they add it to requirements.in and then run pip-compile to generate a requirements.txt with hashes. They have a step in CircleCI that verifies that the requirements.txt file is up-to-date in respect to the requirements.in file. The compiled requirements.txt file has comments about what depends on what which is pretty helpful.
Socorro uses a requirements.txt file for first-order dependencies and a constraints.txt file for dependencies of dependencies. In this way, all the first-order dependencies are installed and whatever they need from the constraints file is also installed. This gets a little onerous because the constraints file grows over time and requires someone to delete and re-create it periodically to reduce it. Further, the pip devs were surprised that we use the constraints file in this way--it's not really how it was intended to be used.
This bug covers testing out a system that uses pip-compile and switching.
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 1•5 years ago
|
||
| Assignee | ||
Comment 2•5 years ago
|
||
| Assignee | ||
Comment 3•5 years ago
|
||
This went out in bug #1669777 with 2020.10.07. Marking as FIXED.
Description
•