Skip to content

Commit

Permalink
fix version parsing in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mfreeborn committed Jul 28, 2020
1 parent b0f5a18 commit 8ddf0ed
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import re
from pathlib import Path

from setuptools import setup

from fastapi_sqlalchemy import __version__ as version
with open(Path("fastapi_sqlalchemy") / "__init__.py", encoding="utf-8") as fh:
version = re.search(r'__version__ = "(.*?)"', fh.read(), re.M).group(1)

with open("README.rst", encoding="utf-8") as f:
long_description = f.read()
with open("README.rst", encoding="utf-8") as fh:
long_description = fh.read()

setup(
name="FastAPI-SQLAlchemy",
Expand Down

0 comments on commit 8ddf0ed

Please sign in to comment.