from ._version import get_versions __version__ = get_versions()["version"] del get_versions from ._widget_version import __frontend_version__ def stable_semver(): """ Get the stable portion of the semantic version string (the first three numbers), without any of the trailing labels '3.0.0rc11' -> '3.0.0' """ from packaging.version import Version return Version(__version__).base_version