Merge pull request #8 from 3YOURMIND/better-description-for-pypi
Use pypandoc to convert markdown to pypi friendly format
This commit is contained in:
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