from setuptools import find_packages, setup

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

with open("requirements.txt", "r", encoding="utf-8") as fh:
    requirements = [line.strip() for line in fh if line.strip() and not line.startswith("#")]

setup(
    name="polarisllm",
    version="2.0.0",
    author="PolarisLLM Team",
    author_email="elon@polariscloud.ai",
    description="🌟 The Ultimate Multi-Model LLM Runtime Platform - Deploy, manage, and serve 300+ language models with OpenAI-compatible APIs. Built on ms-swift for production-ready performance.",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/polarisllm/polarisLLM",
    packages=find_packages(include=["polarisllm", "polarisllm.*", "src", "src.*"]),
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Topic :: Scientific/Engineering :: Artificial Intelligence",
    ],
    python_requires=">=3.8",
    install_requires=requirements,
    extras_require={
        "dev": ["pytest", "black", "flake8"],
    },
    entry_points={
        "console_scripts": [
            "polarisllm=polarisllm.main:sync_main",
            "polaris-llm=polarisllm.main:sync_main",
            "polaris-server=polarisllm.main:sync_main",
            "polaris-cli=polarisllm.cli:main",
        ],
    },
    include_package_data=True,
    package_data={
        "": ["config/*.yaml", "config/models/*.yaml"],
    },
)