Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@
except ImportError:
from distutils.core import setup

try:
from pypandoc import convert_file
except ImportError as e:
def convert_file(f, _):
return open(f, 'r').read()
except ModuleNotFoundError as e:
def convert_file(f, _):
return open(f, 'r').read()

from pydgraph.meta import VERSION

README = os.path.join(os.path.dirname(__file__), 'README.md')
Expand All @@ -37,7 +28,8 @@ def convert_file(f, _):
name='pydgraph',
version=VERSION,
description='Official Dgraph client implementation for Python',
long_description=convert_file(README, 'rst'),
long_description=open(README, 'r').read(),
long_description_content_type='text/markdown',
license='Apache License, Version 2.0',
author='Dgraph Labs',
author_email='contact@dgraph.io',
Expand Down