#!/usr/bin/env python

"""The setup script."""

from setuptools import setup, find_packages

with open("README.md") as readme_file:
    readme = readme_file.read()

with open("CHANGELOG.md") as history_file:
    history = history_file.read()

requirements = [
    "Click>=7.0",
    "kdict",
    "scikit-learn",
    "multiclass-metrics",
    "genetools[scanpy]",
    "frozendict",
    "joblib",
    "numpy",
    "sentinels",
    "enum-mixins",
    "pandas",
    "typer[all]",
]

setup_requirements = [
    "pytest-runner",
]

test_requirements = [
    "pytest>=3",
]

setup(
    author="Maxim Zaslavsky",
    author_email="maxim@maximz.com",
    name="crosseval",
    description="crosseval",
    packages=find_packages(include=["crosseval", "crosseval.*"]),
    python_requires=">=3.8",
    version="0.0.4",
    classifiers=[
        "Development Status :: 2 - Pre-Alpha",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Natural Language :: English",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
    ],
    install_requires=requirements,
    entry_points={
        # Register CLI commands:
        # https://typer.tiangolo.com/tutorial/package/
        # https://click.palletsprojects.com/en/8.1.x/setuptools/#setuptools-integration
        "console_scripts": [
            "plotconfusion = crosseval.scripts.plot_confusion_matrix:app",
        ],
    },
    license="MIT license",
    long_description=readme + "\n\n" + history,
    long_description_content_type="text/markdown",
    include_package_data=True,
    setup_requires=setup_requirements,
    test_suite="tests",
    tests_require=test_requirements,
    url="https://github.com/maximz/crosseval",
    zip_safe=False,
)
