예제 #1
0
def test_version_tuple_from_string(vstr, expected):
    assert make_version_tuple(vstr) == expected
예제 #2
0
def main(args):
    components = list(make_version_tuple())
    components[-1] += 1
    version = '.'.join(str(c) for c in components)
    subprocess.check_output(['git', 'tag', version])
    return 0