Added loading of README to setup.py

This commit is contained in:
squidfunk 2019-03-28 20:50:04 +01:00
parent 56d04bb1a6
commit c37978f1f2

View File

@ -32,6 +32,10 @@ with open("requirements.txt") as data:
if line and not line.startswith("#") if line and not line.startswith("#")
] ]
# Load README contents
with open("README.md") as data:
long_description = data.read()
# Package description # Package description
setup( setup(
name = package["name"], name = package["name"],
@ -39,6 +43,8 @@ setup(
url = package["homepage"], url = package["homepage"],
license = package["license"], license = package["license"],
description = package["description"], description = package["description"],
long_description = long_description,
long_description_content_type = "text/markdown",
author = package["author"]["name"], author = package["author"]["name"],
author_email = package["author"]["email"], author_email = package["author"]["email"],
keywords = package["keywords"], keywords = package["keywords"],