Skip to content

Commit d98ce83

Browse files
committed
Do not try to convert the description to reStructuredText
There's already `long_description_content_type='text/markdown'`. The conversion only works anyway if coincidentally pypandoc is installed before. This was most likely missed in #101 and not on purpose.
1 parent ce516b2 commit d98ce83

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

setup.py

+2-7
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@
44

55
CURRENT_DIR = path.abspath(path.dirname(__file__))
66

7-
try:
8-
from pypandoc import convert
9-
read_md = lambda f: convert(f, 'rst')
10-
except ImportError:
11-
read_md = lambda f: open(f, 'r').read()
12-
13-
long_description = read_md(path.join(CURRENT_DIR, 'README.md'))
7+
with open(path.join(CURRENT_DIR, 'README.md'), 'r') as f:
8+
long_description = f.read()
149

1510
setup(
1611
name='aws-xray-sdk',

0 commit comments

Comments
 (0)