diff --git a/setup.py b/setup.py index b756bb3..e2b7be0 100644 --- a/setup.py +++ b/setup.py @@ -1,77 +1,78 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -from __future__ import (absolute_import, division, print_function, - unicode_literals) +from __future__ import absolute_import, division, print_function, unicode_literals import warnings import os import io import re try: - from setuptools import setup - from setuptools.command.install import install - setup + from setuptools import setup + from setuptools.command.install import install + + setup except ImportError: - from distutils.core import setup - setup + from distutils.core import setup + + setup # Get the long description from the README def readme(): - with open('README.md') as f: - return f.read() + with open("README.md") as f: + return f.read() + # Read, version funcs taken from: # https://github.com/ellisonbg/altair/blob/master/setup.py -def read(path, encoding='utf-8'): +def read(path, encoding="utf-8"): path = os.path.join(os.path.dirname(__file__), path) with io.open(path, encoding=encoding) as fp: return fp.read() + def version(path): """ Obtain the packge version from a python file e.g. pkg/__init__.py See . """ version_file = read(path) - version_match = re.search(r"""^__version__ = ['"]([^'"]*)['"]""", - version_file, re.M) + version_match = re.search( + r"""^__version__ = ['"]([^'"]*)['"]""", version_file, re.M + ) if version_match: return version_match.group(1) raise RuntimeError("Unable to find version string.") -VERSION = version('multiplanet/__init__.py') +VERSION = version("multiplanet/__init__.py") # Setup! -setup(name = 'multiplanet', - version = VERSION, - description = 'VPLANET parameter sweep helper', - long_description = readme(), - classifiers = [ - 'Development Status :: 3 - Alpha', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Topic :: Scientific/Engineering :: Astronomy', - ], - url = 'https://github.com/VirtualPlanetaryLaboratory/multi-planet', - author = 'Caitlyn Wilhelm', - author_email = 'cwilhelm@uw.edu', - license = 'MIT', - packages = ['multiplanet'], - entry_points = { - 'console_scripts': [ - 'multi-planet = multiplanet.multiplanet:Arguments', - 'mpstatus = multiplanet.mpstatus:main' - ], - }, - install_requires = [ - 'numpy', - 'h5py>=3.2', - 'argparse', - 'pandas', - 'scipy' - ], - include_package_data = True, - zip_safe = False) +setup( + name="multiplanet", + version=VERSION, + description="VPLANET parameter sweep helper", + long_description=readme(), + long_description_content_type="text/markdown", + classifiers=[ + "Development Status :: 3 - Alpha", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python", + "Programming Language :: Python :: 2", + "Topic :: Scientific/Engineering :: Astronomy", + ], + url="https://github.com/VirtualPlanetaryLaboratory/multi-planet", + author="Caitlyn Wilhelm", + author_email="cwilhelm@uw.edu", + license="MIT", + packages=["multiplanet"], + entry_points={ + "console_scripts": [ + "multi-planet = multiplanet.multiplanet:Arguments", + "mpstatus = multiplanet.mpstatus:main", + ], + }, + install_requires=["numpy", "h5py>=3.2", "argparse", "pandas", "scipy"], + include_package_data=True, + zip_safe=False, +)