-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
44 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 |
---|---|---|
@@ -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 <https://packaging.python.org/en/latest/single_source_version.html>. | ||
""" | ||
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 = '[email protected]', | ||
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="[email protected]", | ||
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, | ||
) |