Back to project.

Raw source file available here .

PYTHON=./.venv/bin/python
PIP=./.venv/bin/pip
BIN=./.venv/bin
ENV=./.venv/bin/activate
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