We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0f5a18 commit 8ddf0edCopy full SHA for 8ddf0ed
setup.py
@@ -1,9 +1,13 @@
1
+import re
2
+from pathlib import Path
3
+
4
from setuptools import setup
5
-from fastapi_sqlalchemy import __version__ as version
6
+with open(Path("fastapi_sqlalchemy") / "__init__.py", encoding="utf-8") as fh:
7
+ version = re.search(r'__version__ = "(.*?)"', fh.read(), re.M).group(1)
8
-with open("README.rst", encoding="utf-8") as f:
- long_description = f.read()
9
+with open("README.rst", encoding="utf-8") as fh:
10
+ long_description = fh.read()
11
12
setup(
13
name="FastAPI-SQLAlchemy",
0 commit comments