Skip to content

Commit 9f1b9fa

Browse files
committed
Simplify README conversion
1 parent 2aece2e commit 9f1b9fa

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Diff for: setup.py

+4-9
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,9 @@
1212
def readme():
1313
"""Try converting the README to an RST document. Return it as is on failure."""
1414
try:
15-
import pypandoc
16-
readme_content = pypandoc.convert('README.md', 'rst')
17-
except(IOError, ImportError):
18-
print("Warning: no pypandoc module found.")
19-
try:
20-
readme_content = open('README.md').read()
21-
except IOError:
22-
readme_content = ''
23-
return readme_content
15+
return open('README.md').read()
16+
except IOError:
17+
return ''
2418

2519

2620
setuptools.setup(
@@ -29,6 +23,7 @@ def readme():
2923
py_modules=['cryptonator'],
3024
description='A simple wrapper for the cryptonator exchange rate API.',
3125
long_description=readme(),
26+
long_description_content_type='text/markdown',
3227
url='https://github.com/aldur/cryptonator',
3328

3429
author='Adriano Di Luzio',

0 commit comments

Comments
 (0)