From 7be57e6f720599ecfc06b6cdf2e41840fbebb584 Mon Sep 17 00:00:00 2001 From: Daniel Hershcovich Date: Wed, 21 Oct 2020 13:02:41 +0200 Subject: [PATCH] Upload to PyPI with long description in Markdown, not RST --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 1d5b0bd62..483a07212 100644 --- a/setup.py +++ b/setup.py @@ -348,9 +348,8 @@ def run(self): try: - import pypandoc - long_description = pypandoc.convert_file("README.md", "rst") - long_description = "\n".join(line for line in long_description.splitlines() if "<#" not in line) + with open(os.path.join(SCRIPT_DIR, 'README.md'), encoding='utf-8') as f: + long_description = f.read() except: long_description = "" @@ -360,6 +359,7 @@ def run(self): install_requires=["cython", "numpy"], description="The Dynamic Neural Network Toolkit", long_description=long_description, + long_description_content_type="text/markdown", classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Console",