From adc18bbfc458d0883abe035d826061c9e00f6d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Clgen=20Sar=C4=B1kavak?= Date: Sun, 14 Dec 2025 00:37:43 +0300 Subject: [PATCH 1/3] Add FIXME note --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 77d7647e..06da1923 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ help: _uv: # ensure uv is installed + # FIXME: pip may not be always available pip install uv test: From 3f8d578715140aa71b329b597be1591982c40f4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Clgen=20Sar=C4=B1kavak?= Date: Sun, 14 Dec 2025 00:38:09 +0300 Subject: [PATCH 2/3] Ensure virtualenv is created --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 06da1923..a719766c 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,8 @@ _uv: # ensure uv is installed # FIXME: pip may not be always available pip install uv + # ensure virtualenv is created + uv venv --allow-existing test: coverage run -m pytest -vvv tests From ccc10ab9eb9af5c12429e03fa99b6d7efe6384f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Clgen=20Sar=C4=B1kavak?= Date: Sun, 14 Dec 2025 00:38:37 +0300 Subject: [PATCH 3/3] Wrap python commands with "uv run" --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a719766c..05e934de 100644 --- a/Makefile +++ b/Makefile @@ -24,10 +24,10 @@ mypy: build: _uv uv pip install -r requirements.prod.txt -r requirements.dev.txt rm -rf staticfiles/* - python manage.py collectstatic --no-input + uv run python manage.py collectstatic --no-input rm -f ccbv.sqlite - python manage.py migrate - python manage.py load_all_django_versions + uv run python manage.py migrate + uv run python manage.py load_all_django_versions build-prod: pip install -r requirements.prod.txt