-
Notifications
You must be signed in to change notification settings - Fork 298
Expand file tree
/
Copy pathpyproject.toml
More file actions
209 lines (183 loc) · 5.58 KB
/
pyproject.toml
File metadata and controls
209 lines (183 loc) · 5.58 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
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "openagents"
version = "0.9.3.post19"
description = "A flexible framework for building multi-agent systems with customizable protocols"
readme = "README.md"
authors = [
{name = "OpenAgents Team", email = "info@openagents.org"}
]
license = {text = "Apache-2.0"}
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: System :: Distributed Computing",
]
requires-python = ">=3.8"
dependencies = [
# Core framework dependencies
"pydantic>=2.0.0",
"pyyaml>=6.0",
"typing-extensions>=4.4.0",
"packaging>=21.0",
# Async and networking
"aiohttp>=3.9.0",
"websockets>=11.0",
"asyncio-throttle>=1.0.0",
"requests>=2.25.0",
# CLI and user interface
"click>=8.1.0", # Enhanced CLI framework
"rich>=13.0.0", # Rich terminal output
"typer>=0.9.0", # Modern CLI framework
"textual>=0.47.0", # Interactive TUI framework
# Configuration
"python-dotenv>=1.0.0", # Environment configuration
]
[project.optional-dependencies]
# SDK: gRPC transport, crypto, MCP server, agent frameworks
sdk = [
"grpcio>=1.50.0",
"grpcio-tools>=1.50.0",
"cryptography>=40.0.0",
"pynacl>=1.5.0",
"jinja2>=3.1.0",
"mcp>=1.15.0",
"openai>=1.98",
"prometheus-client>=0.16.0",
"structlog>=23.0.0",
]
# P2P networking (optional, for future libp2p integration)
p2p = [
"libp2p>=0.2.0", # P2P networking library
]
# WebRTC support (optional, for future WebRTC transport)
webrtc = [
"aiortc>=1.6.0", # WebRTC implementation
]
# LangChain integration (optional)
langchain = [
"langchain>=0.2.0", # LangChain core framework
"langchain-core>=0.2.0", # LangChain core components
"langchain-openai>=0.1.0", # OpenAI integration for LangChain
]
# Claude Code adapter — no extra Python deps needed.
# Requires `claude` CLI: curl -fsSL https://claude.ai/install.sh | bash
# Development dependencies
dev = [
# Testing framework
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.11.0", # Additional mocking utilities
"pytest-xdist>=3.3.0", # Parallel test execution
# Code quality
"ruff>=0.6.0",
"mypy>=1.5.0",
"pre-commit>=3.3.0",
"coverage>=7.3.0",
# Development utilities
"ipython>=8.0.0", # Interactive development
"jupyter>=1.0.0", # Notebook support
]
# Documentation dependencies
docs = [
"mkdocs>=1.5.0",
"mkdocs-material>=9.2.0",
"mkdocs-mermaid2-plugin>=1.1.0",
"mkdocstrings[python]>=0.22.0",
]
# All optional dependencies
all = [
"openagents[sdk,p2p,webrtc,langchain,dev,docs]",
]
[project.urls]
Homepage = "https://openagents.org"
Documentation = "https://openagents.org/docs/getting-started/overview"
Repository = "https://github.com/openagents-org/openagents"
Issues = "https://github.com/openagents-org/openagents/issues"
Blog = "https://openagents.org/blog"
Showcase = "https://openagents.org/showcase"
[project.scripts]
openagents = "openagents.cli:cli_main"
[tool.setuptools]
package-dir = {"" = "sdk/src"}
[tool.setuptools.packages.find]
where = ["sdk/src"]
[tool.setuptools.package-data]
openagents = [
"protocols/*/protocol_manifest.json",
"configs/*.yaml",
"registry/*.yaml",
"templates/**/*",
"templates/default_network/**/*",
"templates/default_network/agents/*",
"studio/build/**/*"
]
# Pytest configuration
[tool.pytest.ini_options]
minversion = "7.0"
addopts = [
"-ra", # Show extra test summary
"--strict-markers", # Treat unregistered markers as errors
"--strict-config", # Treat config issues as errors
"--disable-warnings", # Disable most warnings for cleaner output
]
testpaths = ["tests"]
pythonpath = ["sdk/src"]
asyncio_mode = "auto"
markers = [
"client: lightweight client tests (no SDK deps)",
"sdk: tests requiring openagents[sdk] dependencies",
"asyncio: mark a test as an asyncio test",
"timeout: mark a test with a timeout",
"integration: mark a test as an integration test (slower, requires network setup)",
"unit: mark a test as a unit test (fast, isolated)",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
"ignore::RuntimeWarning:asyncio",
]
# Coverage configuration
[tool.coverage.run]
source = ["sdk/src/openagents"]
branch = true
omit = [
"*/tests/*",
"*/test_*",
"*/__init__.py",
"*/conftest.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[tool.ruff]
line-length = 120
src = ["sdk/src", "tests"]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I"]
[tool.ruff.lint.isort]
known-first-party = ["openagents"]
[tool.ruff.format]
quote-style = "double"