From 37719191b70de2b76beaa0cc87c61ec85eefddde Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Thu, 1 Aug 2024 12:57:28 +0200 Subject: [PATCH] Clean up README --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index be00381..7a0256d 100644 --- a/README.md +++ b/README.md @@ -85,16 +85,16 @@ make makemigrations hatch run dev:server ``` -#### Upgrade requirements +### Updating requirements -We use hatch-pip-compile. +We use hatch-pip-compile. That means we have a set of loosely defined `dependencies` in `pyproject.toml` and then we can keep the exactly pinned version in our `requirements.txt` (auto-generated). + +To generate `requirements.txt` and `requirements/requirements-dev.txt`, run the following command: ```bash -# Install hatch-pip-compile in some environment -pipx install hatch-pip-compile -# Change requirements in pyproject.toml (...) -# Update requirements.txt: -hatch-pip-compile -# Update requirements/requirements-dev.txt: -hatch-pip-compile dev +# Build requirements.txt etc +make requirements + +# Build Docker image with new Python requirements +make build ```