.PHONY: all
all: develop test

.venv:
	python3 -mvenv .venv
	.venv/bin/pip install --upgrade pip
	.venv/bin/pip install maturin pytest markupsafe black

.PHONY: test
develop: .venv
	. .venv/bin/activate; maturin develop

.PHONY: develop-release
develop-release: .venv
	. .venv/bin/activate; maturin develop --release

.PHONY: test
test: .venv
	.venv/bin/pytest

.PHONY: format
format:
	.venv/bin/black tests python
