Skip to content

Commit

Permalink
Merge pull request #100 from lvgig/develop
Browse files Browse the repository at this point in the history
#99 into main
  • Loading branch information
davidhopkinson26 authored Jul 10, 2023
2 parents 700f384 + 5564b15 commit a393710
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
# https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
VERSION_FILE = "tubular/_version.py"
VERSION_STR_RE = r"^__version__ = ['\"]([^'\"]*)['\"]"
with open(VERSION_FILE).read() as version_file_str:
with open(VERSION_FILE) as version_file:
version_file_str = version_file.read()
mo = re.search(VERSION_STR_RE, version_file_str, re.M)
if mo:
version = mo.group(1)
Expand Down

0 comments on commit a393710

Please sign in to comment.