Some checks failed
CI (tests + ruff) and stable tag / unittest (py3.10) (push) Has been cancelled
CI (tests + ruff) and stable tag / unittest (py3.11) (push) Has been cancelled
CI (tests + ruff) and stable tag / unittest (py3.12) (push) Has been cancelled
CI (tests + ruff) and stable tag / unittest (py3.13) (push) Has been cancelled
CI (tests + ruff) and stable tag / ruff (py3.12) (push) Has been cancelled
CI (tests + ruff) and stable tag / Tag stable (if version commit) (push) Has been cancelled
https://chatgpt.com/share/69468609-0584-800f-a3e0-9d58210fb0e8
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 {} +
|