32 lines
362 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
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