Fix setup.py
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
This commit is contained in:
2
setup.py
2
setup.py
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user