Source code for spin_pulse.version

# --------------------------------------------------------------------------------------
# This code is part of SpinPulse.
#
# (C) Copyright Quobly 2025.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
# --------------------------------------------------------------------------------------
# This file is auto-generated by setuptools-scm do NOT edit it.

from importlib_metadata import distributions
from packaging.version import parse

# We need to iterate because editable installs shows up as 2 distinct installs
# and only one carries the editable install information.
for d in (d for d in distributions() if d.name == "spin_pulse"):
    if (
        getattr(d, "origin", None)
        and getattr(d.origin, "dir_info", None)
        and getattr(d.origin.dir_info, "editable", False)
    ):
        from pathlib import Path

        from setuptools_scm import get_version

[docs] version = parse(get_version(root=Path(__file__).resolve().parent.parent.parent))
break else: version = parse("1.0.2.dev2+g0e8623756.d20260116") __version__ = str(version) del version