Use README.rst content as the PyPI long_description

Use the ideas in https://python-packaging.readthedocs.io/en/latest/metadata.html to replace the __long_description__ at https://pypi.org/project/kombu with something cooler than `The author of this package has not provided a project description`.
This commit is contained in:
Christian Clauss 2020-03-02 13:08:30 +01:00 committed by Asif Saif Uddin
parent cca00b1c9d
commit bfca209752
1 changed files with 6 additions and 1 deletions

View File

@ -100,12 +100,17 @@ class pytest(setuptools.command.test.test):
sys.exit(pytest.main(self.pytest_args))
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='kombu',
packages=setuptools.find_packages(exclude=['t', 't.*']),
version=meta['version'],
description=meta['doc'],
# long_description=long_description,
long_description=readme(),
keywords='messaging message amqp rabbitmq redis actor producer consumer',
author=meta['author'],
author_email=meta['contact'],