Skip to content

Commit 7be57e6

Browse files
committed
Upload to PyPI with long description in Markdown, not RST
1 parent 5ce3a39 commit 7be57e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,8 @@ def run(self):
348348

349349

350350
try:
351-
import pypandoc
352-
long_description = pypandoc.convert_file("README.md", "rst")
353-
long_description = "\n".join(line for line in long_description.splitlines() if "<#" not in line)
351+
with open(os.path.join(SCRIPT_DIR, 'README.md'), encoding='utf-8') as f:
352+
long_description = f.read()
354353
except:
355354
long_description = ""
356355

@@ -360,6 +359,7 @@ def run(self):
360359
install_requires=["cython", "numpy"],
361360
description="The Dynamic Neural Network Toolkit",
362361
long_description=long_description,
362+
long_description_content_type="text/markdown",
363363
classifiers=[
364364
"Development Status :: 5 - Production/Stable",
365365
"Environment :: Console",

0 commit comments

Comments
 (0)