Skip to content

Commit

Permalink
Convert readme from markdown to rst for PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankoegl committed Oct 25, 2014
1 parent 88a966b commit 7c4a5fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
wheel
pandoc==1.0.0-alpha.3
9 changes: 9 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
# Extract name and e-mail ("Firstname Lastname <mail@example.org>")
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 = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
Expand All @@ -49,6 +57,7 @@
setup(name=PACKAGE,
version=VERSION,
description=DESCRIPTION,
long_description=read_md('README.md'),
author=AUTHOR,
author_email=EMAIL,
license=LICENSE,
Expand Down

0 comments on commit 7c4a5fc

Please sign in to comment.