File versioneer.py of Package failed_python-spake2

# Minimal compatibility shim for Versioneer used by setup.py.
# The original versioneer.py expected older configparser APIs on newer Pythons.
# To keep changes minimal and avoid invoking the full versioneer implementation,
# provide a tiny replacement that exposes the functions setup.py needs.
#
# This file returns the static package version present in this source tree.
# Keep it intentionally small and dependency-free.

def get_versions():
    """
    Return a dictionary similar to what versioneer.get_versions() provides.
    Only the 'version' key is required by setup.py in this package.
    """
    return {
        "version": "0.8",
        "full-revisionid": None,
        "dirty": False,
        "error": None
    }

def get_version():
    """
    Return the package version string.
    """
    return get_versions()["version"]
openSUSE Build Service is sponsored by