Last active
February 9, 2024 18:37
-
-
Save carc1n0gen/6752119b5a678d617a3700af8b863cb8 to your computer and use it in GitHub Desktop.
Makefile for a flask python web app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: setup dev | |
setup: | |
test -d .venv || python -m venv .venv | |
. .venv/bin/activate; pip install -r requirements.txt | |
dev: | |
. .venv/bin/activate; flask --app app.create_app run --debug | |
test: | |
. .venv/bin/activate; PYTHONPATH=. pytest | |
clean: | |
rm -rf .venv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment