Skip to content

Commit 15cc46f

Browse files
authored
Use markdown as the description format. (#123)
The format of the README file must be specified as markdown or pypi will reject the package.
1 parent ad8e3a6 commit 15cc46f

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

setup.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,6 @@
2020
except ImportError:
2121
from distutils.core import setup
2222

23-
try:
24-
from pypandoc import convert_file
25-
except ImportError as e:
26-
def convert_file(f, _):
27-
return open(f, 'r').read()
28-
except ModuleNotFoundError as e:
29-
def convert_file(f, _):
30-
return open(f, 'r').read()
31-
3223
from pydgraph.meta import VERSION
3324

3425
README = os.path.join(os.path.dirname(__file__), 'README.md')
@@ -37,7 +28,8 @@ def convert_file(f, _):
3728
name='pydgraph',
3829
version=VERSION,
3930
description='Official Dgraph client implementation for Python',
40-
long_description=convert_file(README, 'rst'),
31+
long_description=open(README, 'r').read(),
32+
long_description_content_type='text/markdown',
4133
license='Apache License, Version 2.0',
4234
author='Dgraph Labs',
4335
author_email='[email protected]',

0 commit comments

Comments
 (0)