forked from modelscope/agentscope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
142 lines (125 loc) · 3.28 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# -*- coding: utf-8 -*-
""" Setup for installation."""
from __future__ import absolute_import, division, print_function
import re
import setuptools
# obtain version from src/agentscope/_version.py
with open("src/agentscope/_version.py", encoding="UTF-8") as f:
VERSION = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
f.read(),
re.MULTILINE,
).group(1)
NAME = "agentscope"
URL = "https://github.com/modelscope/agentscope"
rpc_requires = [
"grpcio==1.60.0",
"grpcio-tools==1.60.0",
"protobuf==4.25.0",
"expiringdict",
"dill",
]
service_requires = [
"docker",
"pymongo",
"pymysql",
"bs4",
"beautifulsoup4",
"feedparser",
]
doc_requires = [
"sphinx",
"sphinx-autobuild",
"sphinx_rtd_theme",
"myst-parser",
"sphinxcontrib-mermaid",
]
test_requires = ["pytest", "pytest-cov", "pre-commit"]
gradio_requires = [
"gradio==4.19.1",
"modelscope_studio==0.0.5",
]
rag_requires = [
"llama-index",
]
studio_requires = []
# released requires
minimal_requires = [
"networkx",
"black",
"docstring_parser",
"pydantic",
"loguru==0.6.0",
"tiktoken",
"Pillow",
"requests",
"chardet",
"inputimeout",
"openai>=1.3.0",
"numpy",
"Flask==3.0.0",
"Flask-Cors==4.0.0",
"Flask-SocketIO==5.3.6",
"flask_sqlalchemy",
"flake8",
# TODO: move into other requires
"dashscope==1.14.1",
"openai>=1.3.0",
"ollama>=0.1.7",
"google-generativeai>=0.4.0",
"zhipuai",
"litellm",
"psutil",
]
distribute_requires = minimal_requires + rpc_requires
dev_requires = minimal_requires + test_requires
full_requires = (
minimal_requires
+ rpc_requires
+ service_requires
+ doc_requires
+ test_requires
+ gradio_requires
+ rag_requires
+ studio_requires
)
with open("README.md", "r", encoding="UTF-8") as fh:
long_description = fh.read()
setuptools.setup(
name=NAME,
version=VERSION,
author="SysML team of Alibaba Tongyi Lab ",
author_email="[email protected]",
description="AgentScope: A Flexible yet Robust Multi-Agent Platform.",
long_description=long_description,
long_description_content_type="text/markdown",
url=URL,
download_url=f"{URL}/archive/v{VERSION}.tar.gz",
keywords=["deep-learning", "multi agents", "agents"],
package_dir={"": "src"},
packages=setuptools.find_packages("src"),
package_data={"agentscope.studio": ["static/**/*", "templates/**/*"]},
install_requires=minimal_requires,
extras_require={
"distribute": distribute_requires,
"dev": dev_requires,
"full": full_requires,
},
license="Apache License 2.0",
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires=">=3.9",
entry_points={
"console_scripts": [
"as_studio=agentscope.studio:init",
"as_gradio=agentscope.web.gradio.studio:run_app",
"as_workflow=agentscope.web.workstation.workflow:main",
"as_server=agentscope.server.launcher:as_server",
],
},
)