def get_version(self):
describe_byte_string = subprocess.check_output(
['git', 'describe', '--match', 'v*.*.*'])
version_string = re.findall(self.version_pat, describe_byte_string)[0]
return version.parse(version_string)
评论列表
文章目录