Fix setup.py

This commit is contained in:
Nikita Karamov 2023-01-23 07:02:11 +01:00
parent 56910e6e9c
commit 507020449f
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD

View file

@ -45,7 +45,7 @@ Authors:
VERSIONFILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "scour", "__init__.py") VERSIONFILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "scour", "__init__.py")
verstrline = open(VERSIONFILE).read() verstrline = open(VERSIONFILE).read()
VSRE = r"^__version__ = u['\"]([^'\"]*)['\"]" VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M) mo = re.search(VSRE, verstrline, re.M)
if mo: if mo:
verstr = mo.group(1) verstr = mo.group(1)