21 lines
408 B
Makefile
21 lines
408 B
Makefile
|
|
SHELL := /usr/bin/env bash
|
||
|
|
|
||
|
|
PYTHON ?= python3
|
||
|
|
PIP ?= $(PYTHON) -m pip
|
||
|
|
|
||
|
|
.PHONY: venv install test clean
|
||
|
|
|
||
|
|
venv:
|
||
|
|
$(PYTHON) -m venv .venv
|
||
|
|
@echo "Activate with: . .venv/bin/activate"
|
||
|
|
|
||
|
|
install:
|
||
|
|
$(PIP) install -e .
|
||
|
|
|
||
|
|
test:
|
||
|
|
$(PYTHON) -m unittest discover -s tests -p "test_*.py" -v
|
||
|
|
|
||
|
|
clean:
|
||
|
|
rm -rf .venv .pytest_cache .ruff_cache dist build *.egg-info
|
||
|
|
find . -name "__pycache__" -type d -prune -exec rm -rf {} +
|