2020-12-05 01:40:27 +08:00
|
|
|
import os
|
|
|
|
|
2023-11-07 05:33:51 +08:00
|
|
|
import setuptools
|
|
|
|
|
2020-12-05 01:40:27 +08:00
|
|
|
here = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
2022-01-03 09:12:34 +08:00
|
|
|
with open("README.md", "r", encoding="UTF-8") as fh:
|
2020-12-05 01:40:27 +08:00
|
|
|
long_description = fh.read()
|
|
|
|
|
|
|
|
# Get the code version
|
|
|
|
version = {}
|
2023-09-16 18:57:57 +08:00
|
|
|
with open(os.path.join(here, "autogen/version.py")) as fp:
|
2020-12-05 01:40:27 +08:00
|
|
|
exec(fp.read(), version)
|
|
|
|
__version__ = version["__version__"]
|
|
|
|
|
|
|
|
install_requires = [
|
2024-04-29 08:27:34 +08:00
|
|
|
"openai>=1.3",
|
2023-09-16 18:57:57 +08:00
|
|
|
"diskcache",
|
|
|
|
"termcolor",
|
2023-09-16 23:30:28 +08:00
|
|
|
"flaml",
|
2024-03-12 23:05:53 +08:00
|
|
|
# numpy is installed by flaml, but we want to pin the version to below 2.x (see https://github.com/microsoft/autogen/issues/1960)
|
|
|
|
"numpy>=1.17.0,<2",
|
2023-10-05 12:45:11 +08:00
|
|
|
"python-dotenv",
|
2023-11-04 12:01:49 +08:00
|
|
|
"tiktoken",
|
2024-02-08 06:15:07 +08:00
|
|
|
# Disallowing 2.6.0 can be removed when this is fixed https://github.com/pydantic/pydantic/issues/8705
|
|
|
|
"pydantic>=1.10,<3,!=2.6.0", # could be both V1 and V2
|
2024-01-19 01:03:49 +08:00
|
|
|
"docker",
|
2021-09-11 07:39:16 +08:00
|
|
|
]
|
2020-12-05 01:40:27 +08:00
|
|
|
|
2024-03-20 10:01:16 +08:00
|
|
|
jupyter_executor = [
|
|
|
|
"jupyter-kernel-gateway",
|
|
|
|
"websocket-client",
|
|
|
|
"requests",
|
|
|
|
"jupyter-client>=8.6.0",
|
|
|
|
"ipykernel>=6.29.0",
|
|
|
|
]
|
|
|
|
|
2024-05-02 02:05:45 +08:00
|
|
|
retrieve_chat = [
|
|
|
|
"protobuf==4.25.3",
|
|
|
|
"chromadb",
|
|
|
|
"sentence_transformers",
|
|
|
|
"pypdf",
|
|
|
|
"ipython",
|
|
|
|
"beautifulsoup4",
|
|
|
|
"markdownify",
|
|
|
|
]
|
2024-04-28 21:43:02 +08:00
|
|
|
|
|
|
|
extra_require = {
|
|
|
|
"test": [
|
|
|
|
"ipykernel",
|
|
|
|
"nbconvert",
|
|
|
|
"nbformat",
|
|
|
|
"pre-commit",
|
2024-04-29 08:27:34 +08:00
|
|
|
"pytest-cov>=5",
|
2024-04-28 21:43:02 +08:00
|
|
|
"pytest-asyncio",
|
|
|
|
"pytest>=6.1.1,<8",
|
|
|
|
"pandas",
|
|
|
|
],
|
|
|
|
"blendsearch": ["flaml[blendsearch]"],
|
|
|
|
"mathchat": ["sympy", "pydantic==1.10.9", "wolframalpha"],
|
|
|
|
"retrievechat": retrieve_chat,
|
|
|
|
"retrievechat-pgvector": [
|
|
|
|
*retrieve_chat,
|
|
|
|
"pgvector>=0.2.5",
|
|
|
|
"psycopg>=3.1.18",
|
|
|
|
],
|
|
|
|
"retrievechat-qdrant": [
|
|
|
|
*retrieve_chat,
|
|
|
|
"qdrant_client[fastembed]",
|
|
|
|
],
|
|
|
|
"autobuild": ["chromadb", "sentence-transformers", "huggingface-hub"],
|
|
|
|
"teachable": ["chromadb"],
|
|
|
|
"lmm": ["replicate", "pillow"],
|
|
|
|
"graph": ["networkx", "matplotlib"],
|
|
|
|
"gemini": ["google-generativeai>=0.5,<1", "pillow", "pydantic"],
|
|
|
|
"websurfer": ["beautifulsoup4", "markdownify", "pdfminer.six", "pathvalidate"],
|
|
|
|
"redis": ["redis"],
|
|
|
|
"cosmosdb": ["azure-cosmos>=4.2.0"],
|
|
|
|
"websockets": ["websockets>=12.0,<13"],
|
|
|
|
"jupyter-executor": jupyter_executor,
|
|
|
|
"types": ["mypy==1.9.0", "pytest>=6.1.1,<8"] + jupyter_executor,
|
2024-05-06 22:16:49 +08:00
|
|
|
"long-context": ["llmlingua<0.3"],
|
2024-04-28 21:43:02 +08:00
|
|
|
}
|
2024-04-21 02:32:57 +08:00
|
|
|
|
2020-12-05 01:40:27 +08:00
|
|
|
setuptools.setup(
|
2023-09-20 01:50:43 +08:00
|
|
|
name="pyautogen",
|
2020-12-05 01:40:27 +08:00
|
|
|
version=__version__,
|
2023-09-16 18:57:57 +08:00
|
|
|
author="AutoGen",
|
2023-09-17 00:41:15 +08:00
|
|
|
author_email="auto-gen@outlook.com",
|
2023-09-16 18:57:57 +08:00
|
|
|
description="Enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework",
|
2020-12-05 01:40:27 +08:00
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type="text/markdown",
|
2023-09-16 18:57:57 +08:00
|
|
|
url="https://github.com/microsoft/autogen",
|
2023-09-20 02:26:50 +08:00
|
|
|
packages=setuptools.find_packages(include=["autogen*"], exclude=["test"]),
|
2020-12-05 01:40:27 +08:00
|
|
|
install_requires=install_requires,
|
2024-04-28 21:43:02 +08:00
|
|
|
extras_require=extra_require,
|
2020-12-05 01:40:27 +08:00
|
|
|
classifiers=[
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
2021-04-09 00:29:55 +08:00
|
|
|
"Operating System :: OS Independent",
|
2020-12-05 01:40:27 +08:00
|
|
|
],
|
2024-01-18 15:15:06 +08:00
|
|
|
python_requires=">=3.8,<3.13",
|
2020-12-05 01:40:27 +08:00
|
|
|
)
|