"""Alliance Auth Discord Audit — orphan-role reconciliation."""

from importlib.metadata import PackageNotFoundError
from importlib.metadata import version as _version

__title__ = "Discord Audit"

# Single source of truth for the version is ``pyproject.toml``. At
# runtime we read the installed-distribution metadata so the value
# never drifts from the wheel that's actually deployed. The fallback
# matters only for editable / source checkouts where the metadata
# may not be installed yet.
try:
    __version__ = _version("aa-discord-audit")
except PackageNotFoundError:
    __version__ = "0.0.0+local"
