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:
1 parent
71b29d9694
commit
d6c8793d60
1 file changed
+5
-2
@@ -19,8 +19,11 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
PROJECT_DIR = path.abspath(path.dirname(__file__))
|
PROJECT_DIR = path.abspath(path.dirname(__file__))
|
||||||
|
|
||||||
with open(path.join(PROJECT_DIR, 'README.md'), encoding='utf-8') as f:
|
try:
|
||||||
long_description = f.read()
|
import pypandoc
|
||||||
|
long_description = pypandoc.convert('README.md', 'rst')
|
||||||
|
except(IOError, ImportError):
|
||||||
|
long_description = open('README.md').read()
|
||||||
|
|
||||||
install_requirements = [
|
install_requirements = [
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in new issue
Block a user