WIP: make requirements file for images #28

Draft
andonome wants to merge 1 commits from requirements into master
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