"""Versione dell'app, incrementata ad ogni deploy. Compare nei messaggi Telegram per correlare i msg al codice in esecuzione. Sorgente: file VERSION nella root (cotto nell'immagine al build). Bump: scripts/bump_version.py (o scripts/deploy.sh, che bumpa+committa+rebuilda).""" from __future__ import annotations from pathlib import Path _VERSION_FILE = Path(__file__).resolve().parents[1] / "VERSION" def get_version() -> str: try: return _VERSION_FILE.read_text().strip() except Exception: return "0.0.0" APP_VERSION = get_version()