-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathsetup.py
More file actions
257 lines (252 loc) · 7.84 KB
/
setup.py
File metadata and controls
257 lines (252 loc) · 7.84 KB
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
# Copyright(C) 2025-2026 Advanced Micro Devices, Inc. All rights reserved.
# SPDX-License-Identifier: MIT
import re
from setuptools import setup
with open("src/gaia/version.py", encoding="utf-8") as fp:
version_content = fp.read()
version_match = re.search(r'__version__\s*=\s*["\']([^"\']+)["\']', version_content)
if not version_match:
raise ValueError("Unable to find version string in version.py")
gaia_version = version_match.group(1)
tkml_version = "5.0.4"
setup(
name="amd-gaia",
version=gaia_version,
description="GAIA is a lightweight agent framework designed for the edge and AI PCs.",
author="AMD",
url="https://github.com/amd/gaia",
license="MIT",
package_dir={"": "src"},
packages=[
"gaia",
"gaia.llm",
"gaia.llm.providers",
"gaia.audio",
"gaia.chat",
"gaia.ui",
"gaia.ui.routers",
"gaia.database",
"gaia.talk",
"gaia.testing",
"gaia.utils",
"gaia.apps",
"gaia.apps.docker",
"gaia.apps.jira",
"gaia.apps.llm",
"gaia.apps.summarize",
"gaia.apps.summarize.templates",
"gaia.eval",
"gaia.installer",
"gaia.rag",
"gaia.mcp",
"gaia.mcp.client",
"gaia.mcp.client.transports",
"gaia.mcp.servers",
"gaia.agents",
"gaia.agents.base",
"gaia.agents.tools",
"gaia.agents.blender",
"gaia.agents.blender.core",
"gaia.agents.chat",
"gaia.agents.chat.tools",
"gaia.agents.builder",
"gaia.agents.docker",
"gaia.agents.emr",
"gaia.agents.emr.dashboard",
"gaia.agents.jira",
"gaia.agents.code",
"gaia.agents.code.orchestration",
"gaia.agents.code.orchestration.factories",
"gaia.agents.code.orchestration.steps",
"gaia.agents.code.orchestration.workflows",
"gaia.agents.code.prompts",
"gaia.agents.code.tools",
"gaia.agents.code.validators",
"gaia.agents.code_index",
"gaia.agents.code_index.tools",
"gaia.agents.routing",
"gaia.agents.sd",
"gaia.agents.summarize",
"gaia.governance",
"gaia.sd",
"gaia.vlm",
"gaia.api",
"gaia.code_index",
"gaia.apps.webui",
"gaia.connectors",
"gaia.connectors.catalog",
"gaia.connectors.providers",
"gaia.agents.connectors_demo",
],
package_data={
"gaia.eval": [
"webapp/*.json",
"webapp/*.js",
"webapp/*.md",
"webapp/public/*.html",
"webapp/public/*.css",
"webapp/public/*.js",
],
# Browser-mode Agent UI bundle. Recursive globs in package_data are
# unreliable across setuptools versions, so we list shallow patterns
# here and back them up with `recursive-include` in MANIFEST.in. The
# CI verifier (util/verify_wheel_dist.py) enforces that the wheel
# actually contains these entries before publish.
"gaia.apps.webui": [
"dist/index.html",
"dist/*.svg",
"dist/*.png",
"dist/*.ico",
"dist/*.webmanifest",
"dist/*.json",
"dist/*.txt",
"dist/assets/*",
],
},
install_requires=[
"openai",
"pydantic>=2.9.2",
"transformers",
"accelerate",
"python-dotenv",
"aiohttp",
"rich",
"requests",
"watchdog>=2.1.0",
"pillow>=9.0.0",
],
extras_require={
"image": [
"term-image>=0.7.0,<0.8",
],
"api": [
"fastapi>=0.115.0",
"uvicorn>=0.32.0",
"python-multipart>=0.0.9",
],
"ui": [
"fastapi>=0.115.0",
"uvicorn>=0.32.0",
"python-multipart>=0.0.9",
"httpx>=0.27.0",
"psutil>=5.9.0",
# OAuth connections (issue #915): keyring stores refresh tokens in
# the OS credential store (macOS Keychain, Windows DPAPI, Linux
# SecretService). Pinned upper bound per supply-chain advisory.
"keyring>=24.0.0,<26.0.0",
# RAG runtime deps — gaia.ui.server boots faiss + sentence_transformers
# eagerly, and gaia.rag.sdk uses pypdf/pymupdf/numpy. See #845.
# Version specifiers match the standalone "rag" extra; "ui"
# additionally declares safetensors and a torch lower bound.
"faiss-cpu>=1.7.0",
"numpy>=1.24.0",
"pymupdf>=1.24.0",
"pypdf",
"sentence-transformers",
"safetensors",
# torch is pinned lower-bound only. The "audio" extra caps
# torch<2.4 because torchvision<0.19 / torchaudio require it,
# but "ui" ships neither — capping here would force resolver
# downgrades for users with torch 2.5+ already installed.
"torch>=2.0.0",
],
"audio": [
"torch>=2.0.0,<2.4",
"torchvision<0.19.0",
"torchaudio",
],
"blender": [
"bpy",
],
"mcp": [
"mcp>=1.1.0",
"starlette",
"uvicorn",
],
"dev": [
"pytest",
"pytest-benchmark",
"pytest-mock",
"pytest-asyncio",
"pyfakefs",
"memory_profiler",
"matplotlib",
"adjustText",
"plotly",
"black",
"pylint",
"isort",
"flake8",
"autoflake",
"mypy",
"bandit",
"responses",
"requests",
# gaia.connectors runtime deps surfaced in [dev] so that
# `pip install -e ".[dev]"` is sufficient to run the unit suite
# without pulling in the much heavier [ui] extra (faiss, torch).
"httpx>=0.27.0,<0.29.0",
"respx>=0.21.0,<0.23.0",
"keyring>=24.0.0,<26.0.0",
],
"eval": [
"anthropic",
"bs4",
"scikit-learn>=1.5.0",
"numpy>=2.0,<2.3.0",
"pypdf",
"reportlab",
],
"talk": [
"sounddevice",
"openai-whisper",
"kokoro>=0.3.1",
"soundfile",
"psutil",
"pip", # Required: spacy model download needs pip in venv (uv omits it)
],
"youtube": [
"llama-index-readers-youtube-transcript",
],
"rag": [
"faiss-cpu>=1.7.0",
"numpy>=1.24.0",
"pymupdf>=1.24.0",
"pypdf",
"sentence-transformers",
],
"lint": [
"black",
"pylint",
"isort",
"flake8",
"autoflake",
"mypy",
"bandit",
],
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
entry_points={
"console_scripts": [
"gaia = gaia.cli:main",
"gaia-cli = gaia.cli:main",
"gaia-mcp = gaia.mcp.mcp_bridge:main",
"gaia-emr = gaia.agents.emr.cli:main",
"gaia-code = gaia.agents.code.cli:main",
]
},
python_requires=">=3.10",
long_description=open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
include_package_data=True,
)