Skip to content

Commit

Permalink
fix description
Browse files Browse the repository at this point in the history
  • Loading branch information
rodluger committed May 11, 2021
1 parent 6dd0235 commit 888920b
Showing 1 changed file with 45 additions and 44 deletions.
89 changes: 45 additions & 44 deletions setup.py
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,
)

0 comments on commit 888920b

Please sign in to comment.