Fix setup.py
This commit is contained in:
parent
50cc8eb956
commit
56d70e7230
1 changed files with 13 additions and 3 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue