Skip to content

Commit

Permalink
Repair version token reg for Black formatting
Browse files Browse the repository at this point in the history
We should move this to setup.cfg style but for now
just get things to work.
  • Loading branch information
zzzeek committed Jan 29, 2021
1 parent 1b3c27d commit bf6b94b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
v = open(
os.path.join(os.path.dirname(__file__), "sphinx_paramlinks/__init__.py")
)
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
VERSION = (
re.compile(r".*__version__ = [\"'](.*?)[\"']", re.S)
.match(v.read())
.group(1)
)
v.close()

readme = os.path.join(os.path.dirname(__file__), "README.rst")
Expand Down

0 comments on commit bf6b94b

Please sign in to comment.