Skip to content

Commit

Permalink
Change long desc type to markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
neerajprad committed May 31, 2019
1 parent 3f735f5 commit 305af54
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,14 @@
from setuptools import find_packages, setup


# Convert README.md to rst for display at https://pypi.python.org/pypi/pyro-ppl
# When releasing on pypi, make sure pandoc is on your system:
# $ brew install pandoc # OS X
# $ sudo apt-get install pandoc # Ubuntu Linux
# READ README.md for long description on PyPi.
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
print(long_description)
long_description = open('README.md', encoding='utf-8').read()
except Exception as e:
sys.stderr.write('Failed to convert README.md to rst:\n {}\n'.format(e))
sys.stderr.flush()
long_description = open('README.md').read()
long_description = ''


setup(
name='numpyro',
Expand All @@ -39,7 +35,7 @@
'examples': ['matplotlib'],
},
long_description=long_description,
long_description_content_type='rst',
long_description_content_type='text/markdown',
tests_require=['flake8', 'pytest>=4.1'],
keywords='probabilistic machine learning bayesian statistics',
license='MIT License',
Expand Down

0 comments on commit 305af54

Please sign in to comment.