33 lines
387 B
Makefile
Raw Normal View History

2024-12-14 17:32:29 +00:00
PYTHON=./.venv/bin/python
PIP=./.venv/bin/pip
BIN=./.venv/bin
2024-12-14 20:45:36 +00:00
ENV=./.venv/bin/activate
2024-12-14 17:32:29 +00:00
APP=form
all: ensure_env format install build test
ensure_env:
-@python3 -m venv .venv
install:
$(PIP) install -e .
format:
$(PIP) install shed
. $(ENV) && shed
build:
$(PIP) install build
$(PYTHON) -m build .
test:
$(PYTHON) -m unittest $(APP).tests
run:
$(BIN)/$(APP).serve