#!/usr/bin/python

#
# Project Librarians: Shasvath J. Kapadia
#              Postdoctoral Researcher
#              UW-Milwaukee Department of Physics
#              Center for Gravitation & Cosmology
#              <shasvath.kapadia@ligo.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#


from setuptools import setup, find_packages

setup(
    name='p_astro',
    version='0.4dev2',
    url='https://lscsoft.docs.ligo.org/p-astro/',
    author='Shasvath Kapadia',
    author_email='shasvath.kapadia@ligo.org',
    maintainer="Deep Chatterjee, Heather Fong, Shaon Ghosh, Surabhi Sachdev",
    maintainer_email="deep.chatterjee@ligo.org, heather.fong@ligo.org, shaon.ghosh@ligo.org, surabhi.sachdev@ligo.org",
    description='Low-latency classification of GW triggers from compact binary coalescence',
    license='GNU General Public License Version 3',
    classifiers=[
        "Programming Language :: Python :: 3",
        "Operating System :: OS Independent",
        "Topic :: Internet",
        "Topic :: Scientific/Engineering :: Astronomy",
        "Topic :: Scientific/Engineering :: Physics"
    ],
    packages=find_packages(),
    include_package_data=True,
    setup_requires=['pytest-runner'],
    tests_require=['pytest'],
    namespace_packages=['ligo'],
    install_requires=[
        'astropy',
        'lalsuite',
        'numpy',
        'pandas',
        'scikit-learn==0.19.2',
        'scipy'
    ],
    python_requires='>=3.6',
    entry_points = {
        'console_scripts': [
            'em_bright_categorize=driver_scripts.categorize:main',
            'em_bright_dag_writer=driver_scripts.dag_writer:main',
            'em_bright_extract=driver_scripts.utils:extract',
            'em_bright_join=driver_scripts.utils:join',
            'em_bright_train=driver_scripts.utils:train',
            'p_astro_histogram_by_bin=driver_scripts.p_astro_utils:histogram_by_bin',
            'p_astro_compute_means=driver_scripts.p_astro_utils:compute_counts_mean'
        ]
    }
)
