Fix setup.py

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
This commit is contained in:
Raphaël Barrois
2012-05-16 00:53:17 +02:00
parent c57899e853
commit 0b766cf96d

View File

@@ -12,7 +12,7 @@ root_dir = os.path.abspath(os.path.dirname(__file__))
def get_version():
version_re = re.compile(r"^__version__ = '([\w_.]+)'$")
version_re = re.compile(r"^__version__ = '([\w_.-]+)'$")
with open(os.path.join(root_dir, 'src', 'semantic_version', '__init__.py')) as f:
for line in f:
match = version_re.match(line[:-1])