Module jmcore.version
Centralized version management for JoinMarket NG.
This is the single source of truth for the project version. All components inherit their version from here.
Functions
def get_version() ‑> str-
Expand source code
def get_version() -> str: """Return the current version string.""" return __version__Return the current version string.
def get_version_info() ‑> dict[str, str | int]-
Expand source code
def get_version_info() -> dict[str, str | int]: """Return version information as a dictionary.""" major, minor, patch = get_version_tuple() return { "version": __version__, "major": major, "minor": minor, "patch": patch, }Return version information as a dictionary.
def get_version_tuple() ‑> tuple[int, int, int]-
Expand source code
def get_version_tuple() -> tuple[int, int, int]: """Return the version as a tuple of (major, minor, patch).""" parts = __version__.split(".") return (int(parts[0]), int(parts[1]), int(parts[2]))Return the version as a tuple of (major, minor, patch).