()
return {
        "version_scheme": "post-release",
        "local_scheme": editable_local_scheme,
        "write_to": "usb/_version.py",
    }
append '-editable' to version for editable installs
append '-editable' to version for editable installs
append - editable to version for editable installs
def pyusb_scm_version():
    """append '-editable' to version for editable installs"""
    from setuptools_scm.version import get_local_node_and_date

    def editable_local_scheme(version):
        local_scheme = get_local_node_and_date(version)
        # setuptools scans sys.argv for matching command classes
        # (see `setuptools._distutils.dist.Distribution._parse_command_opts`)
        if "develop" in sys.argv[1:]:
            return local_scheme + "-editable"
        return local_scheme

    return {
        "version_scheme": "post-release",
        "local_scheme": editable_local_scheme,
        "write_to": "usb/_version.py",
    }
def pyusb_scm_version ( ) : from setuptools_scm . version import get_local_node_and_date def editable_local_scheme ( version ) : local_scheme = get_local_node_and_date ( version ) # setuptools scans sys.argv for matching command classes # (see `setuptools._distutils.dist.Distribution._parse_command_opts`) if "develop" in sys . argv [ 1 : ] : return local_scheme + "-editable" return local_scheme return { "version_scheme" : "post-release" , "local_scheme" : editable_local_scheme , "write_to" : "usb/_version.py" , }