Skip to content

Commit

Permalink
Merge pull request #9 from caspervdw/release-docs
Browse files Browse the repository at this point in the history
DOC Use pypandoc for pypi docs conversion
  • Loading branch information
caspervdw committed Oct 26, 2015
2 parents 03febf7 + d5f67bf commit 59f957c
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,26 @@
from setuptools import setup


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
try:
descr = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
except IOError:
descr = ''

try:
from pypandoc import convert
descr = convert(descr, 'rst', format='md')
except ImportError:
pass

setup_parameters = dict(
name="pims_nd2",
version="0.2",
version="0.3",
description="ND2SDK wrapper for PIMS",
author="Casper van der Wel",
install_requires=['pims>=0.3'],
author_email="[email protected]",
url="https://github.com/soft-matter/pims_nd2",
download_url="https://github.com/soft-matter/pims_nd2/tarball/0.1",
download_url="https://github.com/soft-matter/pims_nd2/tarball/0.3",
packages=['pims_nd2'],
include_package_data=True,
platforms=[
Expand All @@ -23,6 +30,6 @@ def read(fname):
'Operating System :: Microsoft :: Windows :: Windows Vista',
'Operating System :: POSIX :: Linux',
],
long_description=read('README.md'))
long_description=descr)

setup(**setup_parameters)

0 comments on commit 59f957c

Please sign in to comment.