Skip to content

Commit d3122f0

Browse files
committed
rst description for pypi
1 parent afc621c commit d3122f0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

setup.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,15 @@
1818
version='0.1.4'
1919

2020
ROOT = os.path.abspath(os.path.dirname(__file__))
21-
README = open(os.path.join(ROOT, 'README.md')).read()
21+
22+
23+
# convert markdown readme to rst in pypandoc installed
24+
try:
25+
import pypandoc
26+
README = pypandoc.convert('README.md', 'rst')
27+
except (IOError, ImportError):
28+
README = open(os.path.join(ROOT, 'README.md')).read()
29+
2230

2331
setup(name='POT',
2432
version=version,

0 commit comments

Comments
 (0)