Pacchetto Windows: report PDF su Windows offline (WeasyPrint DLL, Kaleido con Edge o Chrome) #78
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ANALISI (passo 1, Opus 5.5) — piano B del pacchetto Windows (issue madre e contratto: piano C, stessa serie)
COSA: i report PDF (src/backend/services/report_service.py: Jinja2 + Plotly/Kaleido 1.2.0 + WeasyPrint 68.1) devono funzionare su Windows offline, dentro il pacchetto.
PERCHÉ: WeasyPrint su Windows vuole le DLL di Pango/GTK; Kaleido 1.x non porta più Chromium e cerca un browser installato. Allo stand non c'è Internet.
FILE E MODIFICHE:
TEST:
uv run --python 3.13 --extra server --extra dev pytest src/backend/tests -q -k report.NON TOCCARE: pyproject.toml, uv.lock, packaging/windows/avvio.py, build.ps1, .iss, workflow, src/backend/config.py, database.py, src/frontend/, scripts/, vendor/. Se serve una dipendenza nuova, scriverla nel rapporto.
🔵 daitarn — preso in carico 2026-10-17T07:03:21Z
ramo:
lavoro/daitarn· capacità: build-windows, gpuSoluzione
ESITO: fatto
COSA: report PDF su Windows offline (WeasyPrint con DLL MSYS2 pinnate, kaleido con Edge/Chrome locale, mathjax senza CDN).
FILE: packaging/windows/pdf/prendi-gtk.ps1 (21 pacchetti ucrt64 con sha256, 27 DLL + fonts + licenze), packaging/windows/pdf/LEGGIMI.md, src/backend/services/report_service.py (mathjax locale), src/backend/tests/test_report_windows.py.
COMMIT:
0a68a99su lavoro/daitarn-tmf-pdf, unito in V3.0.0 conf23e87e(V3.0.0 a0e92959), tag v3.0.0-rc1.PROVA: ramo integrato, prendi-gtk.ps1 -> 27 DLL; test_report_windows con WEASYPRINT_DLL_DIRECTORIES -> 2 passati; dall'exe installato i report SPC e tabella escono in PDF (agente piano C).
MANCA: copia della cache %LOCALAPPDATA%\Tielogic\tmf-gtk-cache su Wasabi (MSYS2 elimina i pacchetti vecchi).