import setuptools
from setuptools.command.develop import develop
import subprocess

with open("requirements.txt", "r") as f:
    requirements = f.read().splitlines()

with open("requirements_local.txt", "r") as f:
    requirements_local = f.read().splitlines()

with open("README.md", "r", encoding='utf8') as fh:
    long_description = fh.read()

setuptools.setup(
    name="agentverse",
    version="0.1.8.1",
    author="AgentVerse Team",
    author_email="agentverse2@gmail.com",
    description="A versatile framework that streamlines the process of creating custom multi-agent environments for large language models (LLMs).",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/OpenBMB/AgentVerse",
    packages=setuptools.find_packages(),
    classifiers=[
        "Programming Language :: Python :: 3",
        'License :: OSI Approved :: Apache Software License',
        "Operating System :: OS Independent",
    ],
    python_requires=">=3.9",
    # install_requires=[
    #     "PyYAML",
    #     "fastapi",
    #     "uvicorn",
    #     "py3langid",
    #     "iso-639",
    #     "openai",
    #     "opencv-python",
    #     "gradio",
    #     "httpx[socks]",
    #     "astunparse",
    #     "langchain",
    # ],
    install_requires=requirements,
    extras_require={
        'local': requirements_local
    },
    include_package_data = True,
    entry_points={
        "console_scripts": [
            "agentverse-benchmark = agentverse_command.benchmark:cli_main",
            "agentverse-simulation = agentverse_command.main_simulation_cli:cli_main",
            "agentverse-simulation-gui = agentverse_command.main_simulation_gui:cli_main",
            "agentverse-tasksolving = agentverse_command.main_tasksolving_cli:cli_main",
        ],
    },
)
