Fix setup.py

This commit is contained in:
Kevo 2022-02-27 08:43:50 +01:00
parent 50cc8eb956
commit 56d70e7230

View file

@ -1,13 +1,23 @@
import typing as t import typing as t
from pathlib import Path
from .client import PipedClient from .client import PipedClient
from .models.comments import Comments from .models.comments import Comments
from setup import __doc__ as __sdoc__
__doc__ = __sdoc__ # For pdoc:
README_PATH = Path(__file__).parent.absolute() / Path('README.md')
try:
with open(README_PATH, 'r', encoding="UTF-8") as readme:
__readme__ = readme.read()
except:
__readme__ = "Failed to read README.md!"
__doc__ = __readme__
# Supress unused-import warnings: # Supress unused-import warnings: