MetaGPT

Форк
0
/
setup.py 
99 строк · 3.2 Кб
1
"""Setup script for MetaGPT."""
2
import subprocess
3
from pathlib import Path
4

5
from setuptools import Command, find_packages, setup
6

7

8
class InstallMermaidCLI(Command):
9
    """A custom command to run `npm install -g @mermaid-js/mermaid-cli` via a subprocess."""
10

11
    description = "install mermaid-cli"
12
    user_options = []
13

14
    def run(self):
15
        try:
16
            subprocess.check_call(["npm", "install", "-g", "@mermaid-js/mermaid-cli"])
17
        except subprocess.CalledProcessError as e:
18
            print(f"Error occurred: {e.output}")
19

20

21
here = Path(__file__).resolve().parent
22
long_description = (here / "README.md").read_text(encoding="utf-8")
23
requirements = (here / "requirements.txt").read_text(encoding="utf-8").splitlines()
24

25

26
extras_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

51
extras_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

69
extras_require["pyppeteer"] = [
70
    "pyppeteer>=1.0.2"
71
]  # pyppeteer is unmaintained and there are conflicts with dependencies
72
extras_require["dev"] = (["pylint~=3.0.3", "black~=23.3.0", "isort~=5.12.0", "pre-commit~=3.6.0"],)
73

74

75
setup(
76
    name="metagpt",
77
    version="0.8.1",
78
    description="The Multi-Agent Framework",
79
    long_description=long_description,
80
    long_description_content_type="text/markdown",
81
    url="https://github.com/geekan/MetaGPT",
82
    author="Alexander Wu",
83
    author_email="alexanderwu@deepwisdom.ai",
84
    license="MIT",
85
    keywords="metagpt multi-agent multi-role programming gpt llm metaprogramming",
86
    packages=find_packages(exclude=["contrib", "docs", "examples", "tests*"]),
87
    python_requires=">=3.9",
88
    install_requires=requirements,
89
    extras_require=extras_require,
90
    cmdclass={
91
        "install_mermaid": InstallMermaidCLI,
92
    },
93
    entry_points={
94
        "console_scripts": [
95
            "metagpt=metagpt.software_company:app",
96
        ],
97
    },
98
    include_package_data=True,
99
)
100

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.