31 lines
408 B
Makefile
Raw Normal View History

2024-12-02 16:41:02 +00:00
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