Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 915 Bytes

dependency-management.md

File metadata and controls

32 lines (21 loc) · 915 Bytes

Dependency Management

We use pip-tools to manage our python dependencies and create reproducible environments.

Tools

Workflow

  1. Our requirements are tracked in ../backend/requirements
  2. We use pip-compile to generate a requirements.txt file with hashes
  3. We track both in version control
  4. We use requirements.txt to install dependencies locally as well as in deployed environments.

Installing dependencies

If you are running the Docker containers, they will automatically install.

If you are running locally, you can run:

cd backend
pip install -r requirements.txt

for the dependencies for the project. Developer dependencies (like linters) can be installed with:

cd backend
pip install -r dev-requirements.txt