Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (109 loc) · 3.42 KB
/
Copy pathpyproject.toml
File metadata and controls
123 lines (109 loc) · 3.42 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
[build-system]
requires = ["setuptools>=80", "setuptools-scm[toml]>=8,<11"]
build-backend = "setuptools.build_meta"
[project]
name = "opencode-a2a"
dynamic = ["version"]
description = "OpenCode A2A runtime"
readme = "README.md"
requires-python = ">=3.11"
license = "Apache-2.0"
authors = [
{ name = "liujuanjuan1984@Intelligent-Internet" },
]
keywords = ["a2a", "opencode", "fastapi", "json-rpc", "sse"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Framework :: FastAPI",
"Topic :: Internet :: WWW/HTTP",
]
dependencies = [
"a2a-sdk==1.2.3",
"aiosqlite>=0.20,<1.0",
# certifi: PYSEC-2026-4320 (via httpx and requests <- google-api-core <- a2a-sdk).
"certifi>=2026.10.19",
# Carry transitive security floors into wheel metadata as well as uv installs.
# click: PYSEC-2026-2132 (via uvicorn).
"click>=8.3.3",
"fastapi>=0.139,<1.0",
"httpx>=0.27,<1.0",
"pydantic>=2.6,<3.0",
"pydantic-settings>=2.14.2,<3.0",
"protobuf>=6.33.5,<8.0",
# pyasn1: PYSEC-2026-3455/3456/3457 (via google-auth <- a2a-sdk).
"pyasn1>=0.6.4",
"sqlalchemy[asyncio]>=2.0,<3.0",
"sse-starlette>=2.1,<4.0",
# urllib3: PYSEC-2026-4175/4176/4177 (via requests <- google-api-core <- a2a-sdk).
"urllib3>=2.8.0",
"uvicorn>=0.29,<1.0",
]
[project.optional-dependencies]
migrations = [
"a2a-sdk[db-cli]==1.2.3",
]
dev = [
# filelock / virtualenv: development-only security floors (via pre-commit).
"filelock>=4.2.1",
"mypy>=1.19.1,<3.0",
"pip-audit>=2.9,<3.0",
"pre-commit>=4.5.1,<5.0",
"pygments>=2.20.0,<3.0",
"pytest>=8.0,<10.0",
"pytest-asyncio>=0.23,<2.0",
"pytest-cov>=7.0.0,<8.0.0",
"ruff>=0.5,<0.18",
"virtualenv>=21.14.9",
]
[project.scripts]
opencode-a2a = "opencode_a2a.cli:main"
[project.urls]
Homepage = "https://github.com/Intelligent-Internet/opencode-a2a"
Repository = "https://github.com/Intelligent-Internet/opencode-a2a"
Issues = "https://github.com/Intelligent-Internet/opencode-a2a/issues"
[tool.ruff]
line-length = 100
src = ["src"]
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP", "S"]
[tool.ruff.lint.per-file-ignores]
# Bandit-style security rules target shipped code. Test modules intentionally use
# asserts and hardcoded fake credentials, mirroring codex-a2a's configuration.
"tests/**" = ["S"]
[tool.ruff.format]
quote-style = "double"
[tool.uv]
package = true
[tool.setuptools_scm]
fallback_version = "0+unknown"
tag_regex = "^v?(?P<version>.+)$"
[tool.setuptools.package-data]
opencode_a2a = ["py.typed"]
[tool.mypy]
python_version = "3.11"
files = ["src/opencode_a2a"]
show_error_codes = true
pretty = true
warn_redundant_casts = true
warn_unused_ignores = true
check_untyped_defs = true
warn_return_any = true
[[tool.mypy.overrides]]
module = [
"google.protobuf.*",
"jsonrpc.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "--cov=src/opencode_a2a --cov-report=term-missing --cov-report=json:.coverage.json --cov-fail-under=90"
filterwarnings = [
"error::pytest.PytestUnhandledThreadExceptionWarning",
"error::pytest.PytestUnraisableExceptionWarning",
"always:.*was deleted before being closed.*:ResourceWarning:aiosqlite.core",
]