2024-12-09 20:48:50 +00:00
|
|
|
ENV=./.venv/bin/activate
|
|
|
|
|
2024-11-27 09:54:27 +00:00
|
|
|
all: ensure_env format build install test
|
2024-11-27 01:59:42 +00:00
|
|
|
|
|
|
|
format:
|
2024-12-09 20:48:50 +00:00
|
|
|
./.venv/bin/python -m pip install shed
|
|
|
|
. $(ENV) && python -m shed
|
2024-11-27 01:59:42 +00:00
|
|
|
|
|
|
|
ensure_env:
|
|
|
|
-@python3 -m venv .venv
|
|
|
|
|
|
|
|
build:
|
|
|
|
./.venv/bin/python -m pip install build
|
|
|
|
./.venv/bin/python -m build .
|
|
|
|
|
|
|
|
install:
|
|
|
|
./.venv/bin/python -m pip install -e .
|
|
|
|
|
|
|
|
run:
|
2024-11-27 09:54:27 +00:00
|
|
|
python -m ragnar.run
|
|
|
|
|
|
|
|
test:
|
2024-12-09 20:48:50 +00:00
|
|
|
./.venv/bin/python -m unittest ragnar.tests
|