Skip to content

Commit

Permalink
Convert readme to rst for PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Jan 4, 2017
1 parent 6b052f8 commit 0011748
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ sphinx>=1.4.9
sphinx_rtd_theme
sphinxcontrib-bibtex
flake8>=3.2.1

pypandoc>=1.3.3
12 changes: 8 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@
else:
USE_CYTHON = True

__version__ = '1.0.1'
__version__ = '1.0.2'

here = path.abspath(path.dirname(__file__))

# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# Get the long description from the README file and convert it to rst
try:
import pypandoc
long_description = pypandoc.convert(path.join(here, 'README.md'), 'rst')
except(IOError, ImportError):
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

# get the dependencies and installs
with open(path.join(here, 'requirements.txt'), encoding='utf-8') as f:
Expand Down

0 comments on commit 0011748

Please sign in to comment.