Added Makefile wrapper

main
Jef Roosens 2021-12-30 21:29:05 +01:00
parent afa7cf782d
commit 26b2745e9b
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
3 changed files with 21 additions and 0 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
__pycache__/ __pycache__/
.venv/

18
Makefile 100644
View File

@ -0,0 +1,18 @@
# =====CONFIG=====
PYTHON := python3
VENV := .venv
# =====RECIPES=====
# Create the virtual environment
$(VENV)/bin/activate: setup.py
'$(PYTHON)' -m venv '$(VENV)'
'$(VENV)/bin/pip' install -r requirements.txt
venv: $(VENV)/bin/activate
.PHONY: venv
# Remove any temporary files
clean:
@ rm -rf '$(VENV)'
.PHONY: clean

2
requirements.txt 100644
View File

@ -0,0 +1,2 @@
Flask==2.0.2
gunicorn==20.1.0