31 lines
408 B
Makefile
31 lines
408 B
Makefile
PYTHON=./.venv/bin/python
|
|
PIP=./.venv/bin/pip
|
|
BIN=./.venv/bin
|
|
|
|
all: format install build run test
|
|
|
|
ensure_env:
|
|
-@python3 -m venv .venv
|
|
|
|
install: ensure_env
|
|
$(PIP) install -e .
|
|
|
|
build: ensure_env
|
|
$(PIP) install build
|
|
$(PYTHON) -m build .
|
|
|
|
format: ensure_env
|
|
$(PIP) install shed
|
|
$(BIN)/shed src/devranta/*.py
|
|
|
|
test: ensure_env
|
|
$(PYTHON) -m unittest devranta.tests
|
|
|
|
run: ensure_env
|
|
$(BIN)/devranta
|
|
|
|
|
|
|
|
|
|
|