We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ed50b3 commit ac34151Copy full SHA for ac34151
1 file changed
setup.py
@@ -1,10 +1,15 @@
1
+import re
2
+from pathlib import Path
3
+
4
from setuptools import setup
-from fastapi_vo import __version__
5
6
+with open(Path("fastapi_vo") / "__init__.py", encoding="utf-8") as fh:
7
+ version = re.search(r'__version__ = "(.*?)"', fh.read(), re.M).group(1)
8
9
10
setup(
11
name="fastapi-vo",
- version=__version__,
12
+ version=version,
13
url="https://github.com/rennancockles/fastapi-vo",
14
license="MIT",
15
author="Rennan Cockles",
0 commit comments