From e29c6947a50a552d68df1c9d85c56b50d48f9298 Mon Sep 17 00:00:00 2001 From: Ansgar Grunseid Date: Sun, 15 May 2022 21:24:18 -0700 Subject: [PATCH] adopt the readme contents as the package long_description for pypi --- setup.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 403d5ae..8322619 100644 --- a/setup.py +++ b/setup.py @@ -23,6 +23,11 @@ exec(f.read(), meta) +readmePath = pjoin(dirname(__file__), 'README.md') +with open(readmePath) as f: + readmeContent = f.read() + + class Publish(Command): """Publish to PyPI with twine.""" user_options = [] @@ -78,8 +83,8 @@ def run_tests(self): author_email=meta['__contact__'], url=meta['__url__'], description=meta['__description__'], - long_description=( - 'Information and documentation can be found at ' + meta['__url__']), + long_description=readmeContent, + long_description_content_type='text/markdown', packages=find_packages(), include_package_data=True, platforms=['any'],