24 lines
379 B
Makefile
Raw Normal View History

2024-12-09 20:48:50 +00:00
ENV=./.venv/bin/activate
2024-12-13 19:00:04 +00:00
PYTHON=./.venv/bin/python
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-13 19:00:04 +00:00
$(PYTHON) -m pip install shed
2024-12-09 20:48:50 +00:00
. $(ENV) && python -m shed
2024-11-27 01:59:42 +00:00
ensure_env:
-@python3 -m venv .venv
build:
2024-12-13 19:00:04 +00:00
$(PyTHON) -m pip install build
$(PYTHON) -m build .
2024-11-27 01:59:42 +00:00
install:
2024-12-13 19:00:04 +00:00
$(PYTHON) -m pip install -e .
2024-11-27 01:59:42 +00:00
run:
2024-12-13 19:00:04 +00:00
$(PYTHON) -m ragnar.run
2024-11-27 09:54:27 +00:00
test:
2024-12-13 19:00:04 +00:00
$(PYTHON) -m unittest ragnar.tests