Handling Python Requirements#

This project uses pip-tools to lock Python requirements. Each requirement must be specified in pyproject.toml and then locked via pip-compile. Development and production requirements are seperated. The relevant commands for generating lock files are:

For development:

pip-compile --extra=dev --output-file=deps/dev.txt pyproject.toml

For production:

pip-compile --allow-unsafe --extra=prod --generate-hashes --output-file=deps/prod.txt pyproject.toml

If you’re upgrading packages, make sure to add --upgrade flag.

Once you update the dependencies, rebuild the project and make sure the tests are passing.