From a31d9c8a757fbeb9cdb09a8e7fa5a32b6e66b71e Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Mon, 18 Nov 2024 20:18:19 +0100 Subject: [PATCH] make requirements file for images --- Makefile | 21 +++++++++++++++++++++ requirements.txt | 4 ++++ 2 files changed, 25 insertions(+) create mode 100644 Makefile create mode 100644 requirements.txt diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f82243b --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +VENV = venv +PYTHON = $(VENV)/bin/python3 +PIP = $(VENV)/bin/pip +POSTERS = poster_light.png poster_dark.png + +output: $(POSTERS) + +poster_%.png: image_poster.py $(VENV)/bin/activate + $(PYTHON) $< 2>/dev/null + + +$(VENV)/bin/activate: requirements.txt + python3 -m venv $(VENV) + echo '*' > $(VENV)/.gitignore + $(PIP) install -r requirements.txt + + +clean: + $(RM) -r __pycache__ + $(RM) -r $(VENV) + $(RM) *.png diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..50fd310 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +cairosvg +markdown +freetype-py +python-dateutil -- 2.30.2