Initial commit.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user