Skip to content

Commit

Permalink
add markdown formt for pipy
Browse files Browse the repository at this point in the history
  • Loading branch information
rflamary committed May 2, 2018
1 parent 9473929 commit 702f222
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected], [email protected]',
url='https://github.com/rflamary/POT',
Expand All @@ -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',
]
)

0 comments on commit 702f222

Please sign in to comment.