Update MANIFEST to include the markdown version of the README.

Convert the markdown README to .rst for PyPI. Add pypandoc to the
development requirements.
This commit is contained in:
Roberto Rosario
2017-02-12 22:34:12 -04:00
parent 55a905236b
commit 9c7ba66d1f
4 changed files with 19 additions and 18 deletions

View File

@@ -91,8 +91,13 @@ pytz==2015.4
sh==1.11
""".split()
with open('README.rst') as f:
readme = f.read()
try:
import pypandoc
readme = pypandoc.convert_file('README.md', 'rst')
except (IOError, ImportError):
with open('README.md') as f:
readme = f.read()
with open('HISTORY.rst') as f:
history = f.read()