Skip to content

Commit

Permalink
Fix parsing of version string with double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
fthaler committed Jun 24, 2024
1 parent 278fa73 commit 77094a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def long_description():
def version():
"""Parse version info."""
initfile_content = read_file("stencil_benchmarks", "__init__.py")
match = re.search(r"__version__ = [']([^']*)[']", initfile_content, re.M)
match = re.search(r'__version__ = ["]([^"]*)["]', initfile_content, re.M)
if match:
return match.group(1)
raise RuntimeError("Unable to find version string")
Expand Down

0 comments on commit 77094a5

Please sign in to comment.