Skip to content

Commit

Permalink
updates replace_version.py regex to accept prereleases
Browse files Browse the repository at this point in the history
  • Loading branch information
KPrasch committed Sep 7, 2022
1 parent 4ff882b commit fb2d19e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nucypher-core-python/replace_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_version():
lines = f.readlines()

for line in lines:
m = re.match(r'^version = "(\d+\.\d+\.\d+)"$', line)
m = re.match(r'^version = "(\d+\.\d+\.\d+)(-[a-z]+\.\d+)?"$', line)
if m:
version = m.group(1)
break
Expand All @@ -26,6 +26,7 @@ def get_version():

return version


def relative_to_published():

version = get_version()
Expand Down

0 comments on commit fb2d19e

Please sign in to comment.