Skip to content

Commit

Permalink
Merge pull request #22 from anh-tong/fix-setup
Browse files Browse the repository at this point in the history
fix set up
  • Loading branch information
anh-tong authored Sep 27, 2022
2 parents d817573 + 631b0cd commit e63eb39
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 e63eb39

Please sign in to comment.