Skip to content

Commit 702f222

Browse files
committed
add markdown formt for pipy
1 parent 9473929 commit 702f222

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

setup.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,18 @@
1818
# The beautiful part is, I don't even need to check exceptions here.
1919
# If something messes up, let the build process fail noisy, BEFORE my release!
2020

21+
# thanks Pipy for handling markdown now
2122
ROOT = os.path.abspath(os.path.dirname(__file__))
2223

23-
24-
# convert markdown readme to rst if pypandoc installed
25-
try:
26-
import pypandoc
27-
README = pypandoc.convert('README.md', 'rst')
28-
except (IOError, ImportError):
29-
README = open(os.path.join(ROOT, 'README.md'), encoding="utf-8").read()
24+
with open(os.path.join(ROOT, 'README.md'), encoding="utf-8") as f:
25+
README = f.read()
3026

3127

3228
setup(name='POT',
3329
version=__version__,
3430
description='Python Optimal Transport Library',
3531
long_description=README,
32+
long_description_content_type='text/markdown',
3633
author=u'Remi Flamary, Nicolas Courty',
3734
3835
url='https://github.com/rflamary/POT',
@@ -59,5 +56,11 @@
5956
'Operating System :: POSIX',
6057
'Programming Language :: Python',
6158
'Topic :: Utilities'
59+
'Programming Language :: Python :: 2',
60+
'Programming Language :: Python :: 2.7',
61+
'Programming Language :: Python :: 3',
62+
'Programming Language :: Python :: 3.4',
63+
'Programming Language :: Python :: 3.5',
64+
'Programming Language :: Python :: 3.6',
6265
]
6366
)

0 commit comments

Comments
 (0)