Convert readme from markdown to rst for PyPI
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
wheel
|
wheel
|
||||||
|
pandoc==1.0.0-alpha.3
|
||||||
|
|||||||
9
setup.py
9
setup.py
@@ -44,6 +44,14 @@ DESCRIPTION = docstrings[0]
|
|||||||
# Extract name and e-mail ("Firstname Lastname <mail@example.org>")
|
# Extract name and e-mail ("Firstname Lastname <mail@example.org>")
|
||||||
AUTHOR, EMAIL = re.match(r'(.*) <(.*)>', AUTHOR_EMAIL).groups()
|
AUTHOR, EMAIL = re.match(r'(.*) <(.*)>', AUTHOR_EMAIL).groups()
|
||||||
|
|
||||||
|
try:
|
||||||
|
from pypandoc import convert
|
||||||
|
read_md = lambda f: convert(f, 'rst')
|
||||||
|
except ImportError:
|
||||||
|
print('warning: pypandoc module not found, could not convert '
|
||||||
|
'Markdown to RST')
|
||||||
|
read_md = lambda f: open(f, 'r').read()
|
||||||
|
|
||||||
CLASSIFIERS = [
|
CLASSIFIERS = [
|
||||||
'Development Status :: 5 - Production/Stable',
|
'Development Status :: 5 - Production/Stable',
|
||||||
'Environment :: Console',
|
'Environment :: Console',
|
||||||
@@ -68,6 +76,7 @@ CLASSIFIERS = [
|
|||||||
setup(name=PACKAGE,
|
setup(name=PACKAGE,
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
description=DESCRIPTION,
|
description=DESCRIPTION,
|
||||||
|
long_description=read_md('README.md'),
|
||||||
author=AUTHOR,
|
author=AUTHOR,
|
||||||
author_email=EMAIL,
|
author_email=EMAIL,
|
||||||
license=LICENSE,
|
license=LICENSE,
|
||||||
|
|||||||
Reference in New Issue
Block a user