Skip to content

Commit

Permalink
fix set up
Browse files Browse the repository at this point in the history
  • Loading branch information
anh-tong committed Sep 27, 2022
1 parent d817573 commit 631b0cd
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
import pathlib
import re

import setuptools


HERE = pathlib.Path(__file__).resolve().parent

with open(HERE / "signax" / "__init__.py") as f:
meta_match = re.search(
r"^__version__ = ['\"]([^'\"]*)['\"]",
f.read(),
re.M,
)
if meta_match:
version = meta_match.group(1)
else:
raise RuntimeError("Unable to find __version__ string.")

metadata = {
"name": "signax",
"version": "0.1.0",
"version": version,
"author": "signax authors",
"author_email": "[email protected]",
}
Expand Down

0 comments on commit 631b0cd

Please sign in to comment.