Closed Bug 1668517 Opened 5 years ago Closed 5 years ago

look at switching to pip-compile (socorro)

Categories

(Socorro :: General, task, P2)

Tracking

(Not tracked)

RESOLVED FIXED

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: nobody → willkg
Status: NEW → ASSIGNED
Summary: look at switching to pip-compile → look at switching to pip-compile (socorro)

This went out in bug #1669777 with 2020.10.07. Marking as FIXED.

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: