Пример #1
0
def manatee_min_version(ver: str) -> bool:
    """
    Tests whether the provided version string represents a newer or
    equal version than the one currently configured.

    arguments:
    ver -- a version signature string 'X.Y.Z' (e.g. '2.130.7')
    """
    ver_parsed = int(''.join('%03d' % int(x) for x in ver.split('.')))
    actual = int(''.join('%03d' % int(x)
                         for x in manatee.version().split('-')[-1].split('.')))
    return ver_parsed <= actual
Пример #2
0
def manatee_min_version(ver):
    """
    Tests whether the provided version string represents a newer or
    equal version than the one currently configured.

    arguments:
    ver -- a version signature string 'X.Y.Z' (e.g. '2.130.7')
    """
    ver = int(''.join(map(lambda x: '%03d' % int(x), ver.split('.'))))
    actual = int(''.join(map(lambda x: '%03d' %
                             int(x), manatee.version().split('-')[-1].split('.'))))
    return ver <= actual
Пример #3
0
def manatee_min_version(ver):
    """
    Tests whether the provided version string represents a newer or
    equal version than the one currently configured.

    arguments:
    ver -- a version signature string 'X.Y.Z' (e.g. '2.130.7')
    """
    ver = int(''.join(map(lambda x: '%03d' % int(x), ver.split('.'))))
    actual = int(''.join(map(lambda x: '%03d' %
                             int(x), manatee.version().split('-')[-1].split('.'))))
    return ver <= actual
Пример #4
0
def manatee_version():
    """
    Returns Manatee version (as a string)
    """
    return manatee.version()
Пример #5
0
def manatee_version():
    """
    Returns Manatee version (as a string)
    """
    return manatee.version()