forked from openagents-org/openagents
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
174 lines (150 loc) · 4.8 KB
/
pyproject.toml
File metadata and controls
174 lines (150 loc) · 4.8 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
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "openagents"
version = "0.6.12"
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",
# Transport layer dependencies
"grpcio>=1.50.0", # gRPC transport support
"grpcio-tools>=1.50.0", # gRPC code generation
# Security and encryption
"cryptography>=40.0.0", # Encryption for secure communications
"pynacl>=1.5.0", # Fast cryptography for P2P
# 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
# Configuration and templating
"jinja2>=3.1.0", # Template engine
"python-dotenv>=1.0.0", # Environment configuration
# Monitoring and observability
"prometheus-client>=0.16.0", # Metrics collection
"structlog>=23.0.0", # Structured logging
# MCP (Model Context Protocol) integration
"mcp>=1.15.0", # Model Context Protocol library
# Others
"openai>=1.98" # For CLI
]
[project.optional-dependencies]
# P2P networking (optional, for future libp2p integration)
p2p = [
"py-libp2p>=0.2.0", # P2P networking library
]
# WebRTC support (optional, for future WebRTC transport)
webrtc = [
"aiortc>=1.6.0", # WebRTC implementation
]
# 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
"black>=23.7.0",
"flake8>=6.0.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[p2p,webrtc,dev,docs]",
]
[project.urls]
Homepage = "https://github.com/bestagents/openagents"
Documentation = "https://openagents.readthedocs.io"
Repository = "https://github.com/bestagents/openagents"
Issues = "https://github.com/bestagents/openagents/issues"
[project.scripts]
openagents = "openagents.cli:cli_main"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
openagents = ["protocols/*/protocol_manifest.json", "configs/*.yaml", "templates/*.yaml", "templates/default_workspace/*.yaml"]
# 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 = ["src"]
asyncio_mode = "auto"
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
"ignore::RuntimeWarning:asyncio",
]
# Coverage configuration
[tool.coverage.run]
source = ["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",
]