MetaGPT
/
setup.py
99 строк · 3.2 Кб
1"""Setup script for MetaGPT."""
2import subprocess3from pathlib import Path4
5from setuptools import Command, find_packages, setup6
7
8class InstallMermaidCLI(Command):9"""A custom command to run `npm install -g @mermaid-js/mermaid-cli` via a subprocess."""10
11description = "install mermaid-cli"12user_options = []13
14def run(self):15try:16subprocess.check_call(["npm", "install", "-g", "@mermaid-js/mermaid-cli"])17except subprocess.CalledProcessError as e:18print(f"Error occurred: {e.output}")19
20
21here = Path(__file__).resolve().parent22long_description = (here / "README.md").read_text(encoding="utf-8")23requirements = (here / "requirements.txt").read_text(encoding="utf-8").splitlines()24
25
26extras_require = {27"selenium": ["selenium>4", "webdriver_manager", "beautifulsoup4"],28"search-google": ["google-api-python-client==2.94.0"],29"search-ddg": ["duckduckgo-search~=4.1.1"],30"ocr": ["paddlepaddle==2.4.2", "paddleocr~=2.7.3", "tabulate==0.9.0"],31"rag": [32"llama-index-core==0.10.15",33"llama-index-embeddings-azure-openai==0.1.6",34"llama-index-embeddings-openai==0.1.5",35"llama-index-embeddings-gemini==0.1.6",36"llama-index-embeddings-ollama==0.1.2",37"llama-index-llms-azure-openai==0.1.4",38"llama-index-readers-file==0.1.4",39"llama-index-retrievers-bm25==0.1.3",40"llama-index-vector-stores-faiss==0.1.1",41"llama-index-vector-stores-elasticsearch==0.1.6",42"llama-index-vector-stores-chroma==0.1.6",43"llama-index-postprocessor-cohere-rerank==0.1.4",44"llama-index-postprocessor-colbert-rerank==0.1.1",45"llama-index-postprocessor-flag-embedding-reranker==0.1.2",46"docx2txt==0.8",47],48"android_assistant": ["pyshine==0.0.9", "opencv-python==4.6.0.66"],49}
50
51extras_require["test"] = [52*set(i for j in extras_require.values() for i in j),53"pytest",54"pytest-asyncio",55"pytest-cov",56"pytest-mock",57"pytest-html",58"pytest-xdist",59"pytest-timeout",60"connexion[uvicorn]~=3.0.5",61"azure-cognitiveservices-speech~=1.31.0",62"aioboto3~=11.3.0",63"gradio==3.0.0",64"grpcio-status==1.48.2",65"pylint==3.0.3",66"pybrowsers",67]
68
69extras_require["pyppeteer"] = [70"pyppeteer>=1.0.2"71] # pyppeteer is unmaintained and there are conflicts with dependencies72extras_require["dev"] = (["pylint~=3.0.3", "black~=23.3.0", "isort~=5.12.0", "pre-commit~=3.6.0"],)73
74
75setup(76name="metagpt",77version="0.8.1",78description="The Multi-Agent Framework",79long_description=long_description,80long_description_content_type="text/markdown",81url="https://github.com/geekan/MetaGPT",82author="Alexander Wu",83author_email="alexanderwu@deepwisdom.ai",84license="MIT",85keywords="metagpt multi-agent multi-role programming gpt llm metaprogramming",86packages=find_packages(exclude=["contrib", "docs", "examples", "tests*"]),87python_requires=">=3.9",88install_requires=requirements,89extras_require=extras_require,90cmdclass={91"install_mermaid": InstallMermaidCLI,92},93entry_points={94"console_scripts": [95"metagpt=metagpt.software_company:app",96],97},98include_package_data=True,99)
100