Skip to content

Commit

Permalink
Added README.md to pypi description
Browse files Browse the repository at this point in the history
- pypandoc needs to be installed during registration
  • Loading branch information
mrbean-bremen committed Nov 27, 2016
1 parent d7cba77 commit 787982f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@

URL = "http://pyfakefs.org"

try:
import pypandoc

LONG_DESCRIPTION = pypandoc.convert('README.md', 'rst')
except ImportError:
LONG_DESCRIPTION = '''Using pyfakefs, your tests operate on a fake file system in memory without
touching the real disk. The software under test requires no modification to work with pyfakefs.'''


readme = os.path.join(os.path.dirname(__file__), 'README.md')
LONG_DESCRIPTION = open(readme).read()

Expand Down Expand Up @@ -70,9 +79,7 @@
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
long_description='''Using pyfakefs, your tests operate on a fake file system in memory without
touching the real disk. The software under test requires no modification to
work with pyfakefs.''', # LONG_DESCRIPTION,
long_description=LONG_DESCRIPTION,
keywords=KEYWORDS,
url=URL,
classifiers=CLASSIFIERS,
Expand Down

0 comments on commit 787982f

Please sign in to comment.