<gh_stars>0
#! /usr/bin/env python
"""
Setup for AegeanTools
"""
import os
import sys
from setuptools import setup

# Utility function to read the README file.
# Used for the long_description.  It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...


def read(fname):
    """Read a file"""
    return open(os.path.join(os.path.dirname(__file__), fname)).read()


def get_version():
    """Get the version number of AegeanTools"""
    import AegeanTools
    return AegeanTools.__version__


reqs = ['scipy>=0.16',
        'six>=1.11']

if sys.version_info < (3,0):
    reqs.append('numpy>=1.16,<1.17')
    reqs.append('astropy>=2.0, <3')
    reqs.append('healpy >=1.10, <=1.13')
    reqs.append('lmfit>=0.9.2, <1')
else:
    reqs.append('numpy>=1.16')
    reqs.append('astropy>=2.0')
    reqs.append('healpy >=1.10')
    reqs.append('lmfit>=0.9.2')

data_dir = 'AegeanTools/data'

setup(
    name="AegeanTools",
    version=get_version(),
    author="<NAME>",
    author_email="<EMAIL>",
    description="The Aegean source finding program, and associated tools.",
    url="https://github.com/PaulHancock/Aegean",
    long_description=read('README.md'),
    long_description_content_type='text/markdown',
    packages=['AegeanTools'],
    install_requires=reqs,
    scripts=['scripts/aegean', 'scripts/BANE', 'scripts/SR6', 'scripts/AeRes', 'scripts/MIMAS'],
    data_files=[('AegeanTools', [os.path.join(data_dir, 'MOC.fits')]) ],
    python_requires='>=2.7',
    setup_requires=['pytest-runner'],
    tests_require=['pytest', 'nose']
)

#! /usr/bin/env python
"""
Setup for AegeanTools
"""
import os
import sys
from setuptools import setup

# Utility function to read the README file.
# Used for the long_description.  It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...


def read(fname):
    """Read a file"""
    return open(os.path.join(os.path.dirname(__file__), fname)).read()


def get_version():
    """Get the version number of AegeanTools"""
    import AegeanTools
    return AegeanTools.__version__


reqs = ['scipy>=0.16',
        'six>=1.11']

if sys.version_info < (3,0):
    reqs.append('numpy>=1.16,<1.17')
    reqs.append('astropy>=2.0, <3')
    reqs.append('healpy >=1.10, <=1.13')
    reqs.append('lmfit>=0.9.2, <1')
else:
    reqs.append('numpy>=1.16')
    reqs.append('astropy>=2.0')
    reqs.append('healpy >=1.10')
    reqs.append('lmfit>=0.9.2')

data_dir = 'AegeanTools/data'

setup(
    name="AegeanTools",
    version=get_version(),
    author="<NAME>",
    author_email="<EMAIL>",
    description="The Aegean source finding program, and associated tools.",
    url="https://github.com/PaulHancock/Aegean",
    long_description=read('README.md'),
    long_description_content_type='text/markdown',
    packages=['AegeanTools'],
    install_requires=reqs,
    scripts=['scripts/aegean', 'scripts/BANE', 'scripts/SR6', 'scripts/AeRes', 'scripts/MIMAS'],
    data_files=[('AegeanTools', [os.path.join(data_dir, 'MOC.fits')]) ],
    python_requires='>=2.7',
    setup_requires=['pytest-runner'],
    tests_require=['pytest', 'nose']
)
#! /usr/bin/env python Setup for AegeanTools # Utility function to read the README file. # Used for the long_description.  It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... Read a file Get the version number of AegeanTools