From 7ab1964aacd1fc04d1726b87cbf3b04cd572125f Mon Sep 17 00:00:00 2001 From: Merret Buurman Date: Thu, 21 Jul 2022 15:25:58 +0200 Subject: [PATCH] Adding markdown format to setup.py so that pypi can read description. --- setup.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/setup.py b/setup.py index 9892441..b6a8b02 100644 --- a/setup.py +++ b/setup.py @@ -56,22 +56,13 @@ def find_version(*file_paths): return version_match.group(1) raise RuntimeError("Unable to find version string.") - -# Note: The package maintainer needs pypandoc and pygments to properly convert -# the Markdown-formatted README into RestructuredText before uploading to PyPi -# See https://bitbucket.org/pypa/pypi/issues/148/support-markdown-for-readmes -try: - import pypandoc - long_description=pypandoc.convert('README.md', 'rst') -except(IOError, ImportError): - long_description=open('README.md').read() - - +long_description=open('README.md').read() setup(name='pyhandle', version=find_version("pyhandle", "__init__.py"), description=('Library for management of handles '), long_description=long_description, + long_description_content_type='text/markdown', classifiers=[ 'Development Status :: 1 - Planning', 'Programming Language :: Python :: 3',