* Datenmodell + Alembic-Initialmigration (Plan §4), Seed Saison 2026 * Wertungs-Engine (Plan §3.3), regelbasiert je Kategorie/Saison - Abnahmetest gegen die Ergebnisliste 2026-05-31 * Meisterschaftsberechnung mit Streichresultaten + Tie-Break (PLATZHALTER-Punktetabelle, O-1 offen) * Ingest-API (idempotent, dry_run) inkl. Excel-Leser und Fahrer-Matching/Merge * Zeitmessungs-Endpoint (Batch, idempotent, unzugeordnet/unplausibel) + SSE-Anzeige - Mess-Pi-Client bewusst NICHT enthalten (docs/zeitmessung-endpoint.md) * Frontend: öffentliche Seiten + internes Backend (Jinja2/HTMX, kein Build) * Auslieferung: Docker (multi-arch) + docker-compose sowie Debian-Paket/APT-Repo * 57 Tests grün gegen echte PostgreSQL-Testdatenbank Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
39 lines
1.2 KiB
Makefile
Executable File
39 lines
1.2 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
# Baut ein in sich geschlossenes virtualenv unter /opt/oamc-turnier.
|
|
# Bewusst ohne dh-virtualenv (nicht in Debian 13 main) — venv + pip von Hand.
|
|
|
|
export DH_VERBOSE = 1
|
|
VENV = debian/oamc-turnier/opt/oamc-turnier/venv
|
|
APPDIR = debian/oamc-turnier/opt/oamc-turnier
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_build:
|
|
# nichts zu kompilieren
|
|
|
|
override_dh_auto_test:
|
|
# Tests laufen in CI gegen eine echte DB, nicht im Paketbau
|
|
|
|
override_dh_auto_install:
|
|
mkdir -p $(APPDIR)
|
|
python3 -m venv $(VENV)
|
|
$(VENV)/bin/pip install --no-cache-dir --upgrade pip
|
|
$(VENV)/bin/pip install --no-cache-dir .
|
|
# Migrationen + alembic.ini mitliefern (fuer "oamc-turnier migrate")
|
|
cp -r migrations $(APPDIR)/migrations
|
|
cp alembic.ini $(APPDIR)/alembic.ini
|
|
# venv relozierbar halten: absolute Shebangs auf den Zielpfad umschreiben
|
|
find $(VENV)/bin -type f -exec sed -i \
|
|
"1s|^#!.*python.*|#!/opt/oamc-turnier/venv/bin/python3|" {} + || true
|
|
# Wrapper in /usr/bin
|
|
mkdir -p debian/oamc-turnier/usr/bin
|
|
ln -sf /opt/oamc-turnier/venv/bin/oamc-turnier debian/oamc-turnier/usr/bin/oamc-turnier
|
|
|
|
override_dh_installsystemd:
|
|
dh_installsystemd --no-start --no-enable
|
|
|
|
override_dh_fixperms:
|
|
dh_fixperms
|
|
chmod 0640 debian/oamc-turnier/etc/oamc-turnier/oamc-turnier.env || true
|