|
18 | 18 | # The beautiful part is, I don't even need to check exceptions here.
|
19 | 19 | # If something messes up, let the build process fail noisy, BEFORE my release!
|
20 | 20 |
|
| 21 | +# thanks Pipy for handling markdown now |
21 | 22 | ROOT = os.path.abspath(os.path.dirname(__file__))
|
22 | 23 |
|
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() |
30 | 26 |
|
31 | 27 |
|
32 | 28 | setup(name='POT',
|
33 | 29 | version=__version__,
|
34 | 30 | description='Python Optimal Transport Library',
|
35 | 31 | long_description=README,
|
| 32 | + long_description_content_type='text/markdown', |
36 | 33 | author=u'Remi Flamary, Nicolas Courty',
|
37 | 34 |
|
38 | 35 | url='https://github.com/rflamary/POT',
|
|
59 | 56 | 'Operating System :: POSIX',
|
60 | 57 | 'Programming Language :: Python',
|
61 | 58 | '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', |
62 | 65 | ]
|
63 | 66 | )
|
0 commit comments