Skip to content

Commit

Permalink
Tiny fix in find_pypi_tag.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed May 17, 2021
1 parent d979f5b commit 1fcdc18
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/find_pypi_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ def parse_cmake_version_info():
m = re.search(r'set\(PROJECT_VERSION_PRERELEASE \"(.*?)\"\)', content)
pre_release = ''
if m:
pre_release = m.groups()[0]
v += f".{pre_release}"
pre_release = m.groups()[0].strip()
if pre_release:
v += f".{pre_release}"

return version.Version(v)

Expand Down

0 comments on commit 1fcdc18

Please sign in to comment.