From 83dd37c4e7c87a0d09dfaddb3196d55b5fd86c7e Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 21 Apr 2018 11:04:27 -0700 Subject: [PATCH] Drop pypandoc stuff and use Markdown descriptions on PyPI (cherry picked from commit 8a09f321da723e8616976e4354b6e179e867976c) --- .travis.yml | 1 - setup.py | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 00745b1..9ab83e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,6 @@ python: - '3.5' - '3.6' -install: echo "On tag $TRAVIS_TAG" && pip install pypandoc script: python3 -m compileall . addons: diff --git a/setup.py b/setup.py index a3a9545..5e2db22 100644 --- a/setup.py +++ b/setup.py @@ -29,12 +29,11 @@ with open('__init__.py', 'w') as f: f.write('__version__ = %r\n' % version) f.write('real_version = %r\n' % real_version) -# Convert Markdown to RST for PyPI try: - import pypandoc - long_description = pypandoc.convert('README.md', 'rst', format='markdown_github') -except ImportError: - print('WARNING: PyPandoc not available; skipping writing long description.') + with open('README.md') as f: + long_description = f.read() +except OSError: + print('WARNING: Failed to read readme, skipping writing long_description') long_description = None setup( @@ -43,6 +42,7 @@ setup( description='PyLink IRC Services', long_description=long_description, + long_description_content_type='text/markdown', url='https://github.com/GLolol/PyLink', @@ -50,7 +50,7 @@ setup( author='James Lu', author_email='james@overdrivenetworks.com', - # Choose your license + # License license='MPL 2.0', # See https://pypi.python.org/pypi?%3Aaction=list_classifiers