Skip to content

Commit

Permalink
Use content type instead of pandoc
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Sep 17, 2021
1 parent a8f1e67 commit a5f762e
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,9 @@
from setuptools import find_packages


try:
from pypandoc import convert

def get_long_description(file_name):
return convert(file_name, 'rst', 'md')

except ImportError:

def get_long_description(file_name):
with open(file_name) as f:
return f.read()
def get_long_description(file_name):
with open(file_name) as f:
return f.read()


if __name__ == '__main__':
Expand All @@ -26,6 +18,7 @@ def get_long_description(file_name):
license='MIT',
description='Python REST API for Entrez E-Utilities: stateless, easy to use, reliable.',
long_description=get_long_description('README.md'),
long_description_content_type='text/markdown',
author='Michal Krassowski',
author_email='[email protected]',
url='https://github.com/krassowski/easy-entrez',
Expand Down

0 comments on commit a5f762e

Please sign in to comment.