mirror of
https://github.com/boostorg/website-v2.git
synced 2026-01-19 04:42:17 +00:00
897 B
897 B
Dependency Management
How to add a new Python dependency
- Run
just downto kill your running containers - Add the package to
requirements.in - Run
just pip-compile, which will add the dependency torequirements.txt - Run
just rebuildto rebuild your Docker image to include the new dependencies - Run
just upand continue with development
Upgrading dependencies
To upgrade all dependencies to their latest versions, run:
just pip-compile-upgrade.- Get the django version from requirements.txt and set the
DJANGO_VERSIONvalue in /justfile - Update the
--target-versionargs value for django-upgrade in .pre-commit-config.yaml to match - In a venv with installed packages run
just run-django-upgradeto upgrade python code. just buildto create new docker images.- Tear down docker containers and restart with the newly built images, then test.