-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from caspervdw/release-docs
DOC Use pypandoc for pypi docs conversion
- Loading branch information
Showing
1 changed file
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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=[ | ||
|
@@ -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) |