Skip to content

Commit

Permalink
Unbreak setup.py's build() (conan-io#483)
Browse files Browse the repository at this point in the history
Dash ('-') in version "0.12.1-dev" breaks the regex. Allow the version to contain dashes.
  • Loading branch information
tivek authored and memsharded committed Sep 14, 2016
1 parent a6a491d commit 58150a9
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 @@ -38,7 +38,7 @@ def load_version():
"conans", "__init__.py"))
with open(filename, "rt") as version_file:
conan_init = version_file.read()
version = re.search("__version__ = '([0-9a-z.]+)'", conan_init).group(1)
version = re.search("__version__ = '([0-9a-z.-]+)'", conan_init).group(1)
return version


Expand Down

0 comments on commit 58150a9

Please sign in to comment.