From 702f222a428cfabb464c92da5e101642afdc643d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Flamary?= Date: Wed, 2 May 2018 13:33:20 +0200 Subject: [PATCH] add markdown formt for pipy --- setup.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index a32aa317e..30668480c 100755 --- a/setup.py +++ b/setup.py @@ -18,21 +18,18 @@ # The beautiful part is, I don't even need to check exceptions here. # If something messes up, let the build process fail noisy, BEFORE my release! +# thanks Pipy for handling markdown now ROOT = os.path.abspath(os.path.dirname(__file__)) - -# convert markdown readme to rst if pypandoc installed -try: - import pypandoc - README = pypandoc.convert('README.md', 'rst') -except (IOError, ImportError): - README = open(os.path.join(ROOT, 'README.md'), encoding="utf-8").read() +with open(os.path.join(ROOT, 'README.md'), encoding="utf-8") as f: + README = f.read() setup(name='POT', version=__version__, description='Python Optimal Transport Library', long_description=README, + long_description_content_type='text/markdown', author=u'Remi Flamary, Nicolas Courty', author_email='remi.flamary@gmail.com, ncourty@gmail.com', url='https://github.com/rflamary/POT', @@ -59,5 +56,11 @@ 'Operating System :: POSIX', 'Programming Language :: Python', 'Topic :: Utilities' + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', ] )