include readme as long_description in setup.py

This commit is contained in:
lucasheld 2022-08-03 23:29:11 +02:00
parent f9b90ad2b8
commit f737d722e4

View file

@ -15,10 +15,15 @@ here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "uptime_kuma_api", "__version__.py"), "r", "utf-8") as f: with open(os.path.join(here, "uptime_kuma_api", "__version__.py"), "r", "utf-8") as f:
exec(f.read(), info) exec(f.read(), info)
with open("README.md", "r", "utf-8") as f:
readme = f.read()
setup( setup(
name=info["__title__"], name=info["__title__"],
version=info["__version__"], version=info["__version__"],
description="A python wrapper for the Uptime Kuma WebSocket API", description="A python wrapper for the Uptime Kuma WebSocket API",
long_description=readme,
long_description_content_type="text/markdown",
url="https://github.com/lucasheld/uptime-kuma-api", url="https://github.com/lucasheld/uptime-kuma-api",
author=info["__author__"], author=info["__author__"],
author_email="lucasheld@hotmail.de", author_email="lucasheld@hotmail.de",