Skip to content

Commit 183cbd7

Browse files
committed
Pass long description as markdown
To remove the undefined dependency to `pypandoc`.
1 parent b53a66b commit 183cbd7

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

setup.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,8 @@ def read_injector_variable(name):
4848
requirements_dev = list(obtain_requirements('requirements-dev.txt'))
4949

5050

51-
try:
52-
import pypandoc
53-
54-
long_description = pypandoc.convert_file('README.md', 'rst')
55-
except ImportError:
56-
warnings.warn('Could not locate pandoc, using Markdown long_description.', ImportWarning)
57-
with open('README.md') as f:
58-
long_description = f.read()
51+
with open('README.md') as f:
52+
long_description = f.read()
5953

6054
description = long_description.splitlines()[0].strip()
6155

@@ -68,6 +62,7 @@ def read_injector_variable(name):
6862
options=dict(egg_info=dict(tag_build=version_tag)),
6963
description=description,
7064
long_description=long_description,
65+
long_description_content_type='text/markdown',
7166
license='BSD',
7267
platforms=['any'],
7368
packages=['injector'],

0 commit comments

Comments
 (0)