Files

28 lines
563 B
Makefile
Raw Permalink Normal View History

2025-11-20 14:40:42 +01:00
# Simple helpers
PY ?= python
HOST ?= 0.0.0.0
PORT ?= 5050
TOKEN ?= changeme
DATA ?=
.PHONY: install dev run test seed clean
install:
$(PY) -m pip install -U pip
$(PY) -m pip install -e . -r requirements-dev.txt
dev:
$(PY) -m pip install -r requirements-dev.txt
run:
2025-11-20 16:55:03 +01:00
$(PY) -m encounterflow.cli --host $(HOST) --port $(PORT) --token $(TOKEN) $(if $(DATA),--data-dir $(DATA),)
2025-11-20 14:40:42 +01:00
test:
pytest -q
seed:
curl -s -X POST "http://$(HOST):$(PORT)/admin/seed_icons?token=$(TOKEN)" >/dev/null || true
clean:
rm -rf .pytest_cache .coverage build dist *.egg-info