make requirements file for images

This commit is contained in:
Malin Freeborn 2024-11-18 20:18:19 +01:00
parent 4d201ea8f4
commit a31d9c8a75
Signed by: andonome
GPG Key ID: 52295D2377F4D70F
2 changed files with 25 additions and 0 deletions

21
Makefile Normal file
View File

@ -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

4
requirements.txt Normal file
View File

@ -0,0 +1,4 @@
cairosvg
markdown
freetype-py
python-dateutil