Skip to content

Commit

Permalink
adopt the readme contents as the package long_description for pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
gruns committed May 16, 2022
1 parent f9cc6e2 commit e29c694
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down Expand Up @@ -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'],
Expand Down

0 comments on commit e29c694

Please sign in to comment.