Patch release. Version bumped across all sources + lock files; [0.3.5] CHANGELOG. Ships: - #270 — speaker diarization fixed on PyTorch >=2.6 (weights_only=True rejected the pyannote checkpoint's TorchVersion global); the loader now registers the shared safe-globals allowlist before loading. Tagging v0.3.5 triggers release.yml (desktop) + docker.yml. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
16 lines
592 B
Python
16 lines
592 B
Python
"""Single source of truth for the app version at runtime.
|
|
|
|
Read from the installed package metadata (driven by ``pyproject.toml``) so the
|
|
FastAPI/API version and exported-bundle metadata never drift to a stale literal
|
|
again (the prior "0.4.0" / "0.2.7" bug). Falls back to a literal only when
|
|
running from a raw source checkout that was never ``uv sync``'d.
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
from importlib.metadata import PackageNotFoundError, version
|
|
|
|
try:
|
|
APP_VERSION = version("omnivoice")
|
|
except PackageNotFoundError: # non-installed source checkout
|
|
APP_VERSION = "0.3.5"
|