ENV=./.venv/bin/activate
|
|
PYTHON=./.venv/bin/python
|
|
all: ensure_env format build install test
|
|
|
|
format:
|
|
$(PYTHON) -m pip install shed
|
|
. $(ENV) && python -m shed
|
|
|
|
ensure_env:
|
|
-@python3 -m venv .venv
|
|
|
|
build:
|
|
$(PYTHON) -m pip install build
|
|
$(PYTHON) -m build .
|
|
|
|
install:
|
|
$(PYTHON) -m pip install -e .
|
|
|
|
run:
|
|
$(PYTHON) -m ragnar.run
|
|
|
|
test:
|
|
$(PYTHON) -m unittest ragnar.tests
|