plugin setup: declare the long_description is in markdown

Else PyPI rejects it because it can't parse it as ReST.
This commit is contained in:
Valentin Lorentz 2020-10-07 19:46:56 +02:00
parent 16b7fd9f37
commit 4213d95356

View File

@ -70,6 +70,7 @@ if setuptools:
if os.path.isfile(readme_path): if os.path.isfile(readme_path):
with open(readme_path, 'r') as fd: with open(readme_path, 'r') as fd:
kwargs['long_description'] = fd.read() kwargs['long_description'] = fd.read()
kwargs['long_description_content_type'] = 'text/markdown'
module_name = kwargs['name'].replace('-', '_') module_name = kwargs['name'].replace('-', '_')
kwargs.setdefault('packages', [module_name]) kwargs.setdefault('packages', [module_name])