Skip to content

Commit

Permalink
Upload to PyPI with long description in Markdown, not RST
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhers committed Oct 21, 2020
1 parent 5ce3a39 commit 7be57e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Expand Up @@ -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 = ""

Expand All @@ -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",
Expand Down

0 comments on commit 7be57e6

Please sign in to comment.