Updated Makefile.

This commit is contained in:
retoor 2024-12-13 19:00:04 +00:00
parent 46fa756d94
commit 9405fe728b

View File

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