from setuptools import setup, find_packages

# Read the README file
with open("README.md", "r", encoding="utf-8") as fh:
    long_description = fh.read()

setup(
    name="TrainIQ",
    version="0.1.1",
    description="Universal AutoML Library – end-to-end ML/DL pipelines with a single call.",
    long_description=long_description,
    long_description_content_type="text/markdown",
    author="Jayesh Pandey",
    author_email="",
    url="https://github.com/jayeshpandey01/TrainIQ",
    project_urls={
        "Bug Tracker": "https://github.com/jayeshpandey01/TrainIQ/issues",
        "Documentation": "https://github.com/jayeshpandey01/TrainIQ#readme",
        "Source Code": "https://github.com/jayeshpandey01/TrainIQTrainIQ",
    },
    python_requires=">=3.9",
    packages=find_packages(),
    install_requires=[
        "numpy>=1.21",
        "pandas>=1.3",
        "scikit-learn>=1.0",
        "torch>=1.12",
        "torchvision>=0.13",
        "matplotlib>=3.5",
        "Pillow>=9.0",
        "optuna>=3.0",
    ],
    extras_require={
        "text": ["transformers>=4.20"],
        "xgboost": ["xgboost>=1.6"],
        "deploy": ["fastapi>=0.100", "uvicorn[standard]"],
        "onnx": ["onnx>=1.12"],
        "all": [
            "transformers>=4.20",
            "xgboost>=1.6",
            "fastapi>=0.100",
            "uvicorn[standard]",
            "onnx>=1.12",
            "tensorboard>=2.10",
        ],
    },
    entry_points={
        "console_scripts": [
            "automl=trainiq.cli:main",
        ],
    },
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "Intended Audience :: Science/Research",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "License :: OSI Approved :: MIT License",
        "Topic :: Scientific/Engineering :: Artificial Intelligence",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Operating System :: OS Independent",
    ],
    keywords="automl machine-learning deep-learning neural-networks pytorch scikit-learn trainiq",
    include_package_data=True,
    zip_safe=False,
)
