We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc22887 commit 9ce2736Copy full SHA for 9ce2736
setup.py
@@ -8,10 +8,17 @@
8
"""
9
10
from distutils.core import setup
11
+import sys
12
+
13
try:
14
import pypandoc
- LDESC = pypandoc.convert('README.md', 'rst')
15
+ LDESC = pypandoc.convert_file('README.md', 'rst', format='md')
16
except (IOError, ImportError):
17
+ sys.stderr.write("pypandoc ist not available. Cannot convert the REAMDE from Markdown to rST.\n")
18
+ LDESC = ''
19
+except Exception as e:
20
+ sys.stderr.write("The conversion of the README to rST format failed with the following error:\n")
21
+ sys.stderr.write(str(e) + '\n')
22
LDESC = ''
23
24
setup(name='wsgi-request-logger',
0 commit comments