#!/usr/bin/env python
# -*- coding: utf-8 -*-

# This file is part of the
#   NirDust Project (https://github.com/Gaiana/nirdust)
# Copyright (c) 2020, Gaia Gaspar, Jose Alacoria
# License: MIT
#   Full Text: https://github.com/Gaiana/nirdust/LICENSE


# =============================================================================
# DOCS
# =============================================================================

"""This file is for distribute and install NirDust
"""


# =============================================================================
# IMPORTS
# =============================================================================

import os
import pathlib

from ez_setup import use_setuptools

from setuptools import setup

use_setuptools()

# =============================================================================
# CONSTANTS
# =============================================================================

REQUIREMENTS = [
    "numpy",
    "scipy",
    "astropy",
    "specutils",
    "matplotlib",
    "attrs",
]

PATH = pathlib.Path(os.path.abspath(os.path.dirname(__file__)))

with open(PATH / "README.md") as fp:
    LONG_DESCRIPTION = fp.read()


DESCRIPTION = "Measure temperature of hot dust in type 2 AGN"


# =============================================================================
# FUNCTIONS
# =============================================================================


def do_setup():
    setup(
        name="nirdust",
        version="0.0.1",
        description=DESCRIPTION,
        long_description=open("README.md").read(),
        long_description_content_type="text/markdown",
        author=["Gaia Gaspar", "Jose Alacoria"],
        author_email="gaiagaspar@gmail.com",
        url="https://github.com/Gaiana/nirdust",
        py_modules=["nirdust", "ez_setup"],
        license="MIT",
        keywords=["nirdust", "dust", "AGN", "NIR", "temperatures"],
        classifiers=[
            "Intended Audience :: Education",
            "Intended Audience :: Science/Research",
            "License :: OSI Approved :: MIT License",
            "Operating System :: OS Independent",
            "Programming Language :: Python",
            "Programming Language :: Python :: 3.8",
        ],
        install_requires=REQUIREMENTS,
    )


if __name__ == "__main__":
    do_setup()
