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