Fixed setup.py version metadata regex (2/2)
This commit is contained in:
2
setup.py
2
setup.py
@@ -7,7 +7,7 @@ from setuptools import find_packages, setup
|
||||
|
||||
def get_version(filename):
|
||||
with open(filename) as fh:
|
||||
metadata = dict(re.findall("__([a-z]+)__ = \"([^']+)\"", fh.read()))
|
||||
metadata = dict(re.findall("__([a-z]+)__ = \"([^\"]+)\"", fh.read()))
|
||||
return metadata['version']
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user