Use pypandoc to convert markdown to pypi friendly format

See https://pypi.python.org/pypi/django-migration-linter
And then see https://stackoverflow.com/questions/26737222/pypi-description-markdown-doesnt-work
This commit is contained in:
Felix Bauer committed 2018-01-11 15:04:02 +01:00
1 parent 71b29d9694
commit d6c8793d60
1 file changed
+5 -2
+5 -2
View File
@@ -19,8 +19,11 @@ from setuptools import setup, find_packages
PROJECT_DIR = path.abspath(path.dirname(__file__))
with open(path.join(PROJECT_DIR, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
install_requirements = [
]