def test_version_tuple_from_string(vstr, expected): assert make_version_tuple(vstr) == expected
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