"""Allows you to skip entering your email after registering via EVE SSO."""

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

from aa_skip_email.helpers import is_placeholder_email, make_placeholder_email

__all__ = (
    "__title__",
    "__version__",
    "is_placeholder_email",
    "make_placeholder_email",
)

__title__ = "Allianceauth Skip Email"

# 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-skip-email")
except PackageNotFoundError:  # pragma: no cover
    __version__ = "0.0.0+local"
