manage.get.gov/docs/operations/runbooks/update_python_dependencies.md
2022-08-31 16:02:51 -05:00

707 B

HOWTO Update Python Dependencies

========================

  1. Check the Pipfile for pinned dependencies and manually adjust the version numbers
  2. Run cd src, docker-compose up -d, and docker-compose exec app pipenv update to perform the upgrade and generate a new Pipfile.lock
  3. (optional) Run docker-compose stop and docker-compose build to build a new image for local development with the updated dependencies.

The reason for de-coupling the build and update steps is to increase consistency between builds and reduce "it works on my laptop!". Therefore, build uses the lock file as-is; dependencies are never updated except by explicit choice.