diff options
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -26,13 +26,10 @@ DESCRIPTION = docstrings[0] # Extract name and e-mail ("Firstname Lastname <mail@example.org>") AUTHOR, EMAIL = re.match(r'(.*) <(.*)>', AUTHOR_EMAIL).groups() -try: - from pypandoc import convert - read_md = lambda f: convert(f, 'rst') -except ImportError: - print('warning: pypandoc module not found, could not convert ' - 'Markdown to RST') - read_md = lambda f: open(f, 'r').read() + +with open('README.md') as readme: + long_description = readme.read() + CLASSIFIERS = [ 'Development Status :: 5 - Production/Stable', @@ -56,7 +53,8 @@ CLASSIFIERS = [ setup(name=PACKAGE, version=VERSION, description=DESCRIPTION, - long_description=read_md('README.md'), + long_description=long_description, + long_description_content_type="text/markdown", author=AUTHOR, author_email=EMAIL, license=LICENSE, |