Skip to content

Commit 2a8668e

Browse files
committed
Merge branch '1.0-dev' of https://github.com/sokoliva/a2a-python into 1.0-dev
2 parents 4ebbb2e + 2b323d0 commit 2a8668e

231 files changed

Lines changed: 35002 additions & 14093 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.git-blame-ignore-revs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Template taken from https://github.com/v8/v8/blob/master/.git-blame-ignore-revs.
1+
# Template taken from https://github.com/v8/v8/blob/main/.git-blame-ignore-revs.
22
#
33
# This file contains a list of git hashes of revisions to be ignored by git blame. These
44
# revisions are considered "unimportant" in that they are unlikely to be what you are

.github/actions/spelling/allow.txt

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1+
a2a
2+
A2A
3+
A2AFastAPI
14
AAgent
25
ACard
36
AClient
47
ACMRTUXB
58
aconnect
69
adk
710
AError
11+
AException
812
AFast
913
agentic
1014
AGrpc
1115
aio
1216
aiomysql
17+
AIP
18+
alg
1319
amannn
1420
aproject
1521
ARequest
@@ -21,19 +27,25 @@ AStarlette
2127
AUser
2228
autouse
2329
backticks
30+
base64url
31+
buf
32+
bufbuild
2433
cla
2534
cls
2635
coc
2736
codegen
2837
coro
38+
culsans
2939
datamodel
3040
deepwiki
3141
drivername
3242
DSNs
3343
dunders
44+
ES256
3445
euo
3546
EUR
3647
excinfo
48+
FastAPI
3749
fernet
3850
fetchrow
3951
fetchval
@@ -42,13 +54,20 @@ genai
4254
getkwargs
4355
gle
4456
GVsb
57+
hazmat
58+
HS256
59+
HS384
4560
ietf
61+
importlib
4662
initdb
4763
inmemory
4864
INR
4965
isready
66+
jcs
5067
jku
68+
JOSE
5169
JPY
70+
JSONRPC
5271
JSONRPCt
5372
jwk
5473
jwks
@@ -61,36 +80,55 @@ lifecycles
6180
linting
6281
Llm
6382
lstrips
83+
middleware
6484
mikeas
6585
mockurl
6686
mysqladmin
6787
notif
88+
npx
6889
oauthoidc
6990
oidc
91+
Oneof
92+
OpenAPI
93+
openapiv
94+
openapiv2
7095
opensource
7196
otherurl
97+
pb2
98+
poolclass
7299
postgres
73100
POSTGRES
74101
postgresql
75102
proot
103+
proto
104+
protobuf
105+
Protobuf
76106
protoc
107+
pydantic
77108
pyi
78109
pypistats
79110
pyupgrade
80111
pyversions
81112
redef
82113
respx
83114
resub
115+
RS256
84116
RUF
117+
SECP256R1
85118
SLF
86119
socio
87120
sse
121+
starlette
122+
Starlette
88123
sut
89124
SUT
125+
swagger
90126
tagwords
91127
taskupdate
92128
testuuid
93129
Tful
94130
tiangolo
131+
TResponse
132+
typ
95133
typeerror
96134
vulnz

.github/actions/spelling/excludes.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
(?:^|/)pyproject.toml
1111
(?:^|/)requirements(?:-dev|-doc|-test|)\.txt$
1212
(?:^|/)vendor/
13+
(?:^|/)buf.gen.yaml
1314
/CODEOWNERS$
1415
\.a$
1516
\.ai$
@@ -87,5 +88,9 @@
8788
^\.github/workflows/
8889
CHANGELOG.md
8990
^src/a2a/grpc/
91+
^src/a2a/types/
92+
^src/a2a/compat/v0_3/a2a_v0_3*
9093
^tests/
9194
.pre-commit-config.yaml
95+
(?:^|/)a2a\.json$
96+
release-please-config.json

.github/workflows/linter.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Lint Code Base
33
on:
44
pull_request:
5-
branches: [main]
5+
branches: [main, 1.0-dev]
66
permissions:
77
contents: read
88
jobs:
@@ -43,9 +43,7 @@ jobs:
4343
- name: Run Pyright (Pylance equivalent)
4444
id: pyright
4545
continue-on-error: true
46-
uses: jakebailey/pyright-action@v3
47-
with:
48-
pylance-version: latest-release
46+
run: uv run pyright src
4947

5048
- name: Run JSCPD for copy-paste detection
5149
id: jscpd

.github/workflows/release-please.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ on:
22
push:
33
branches:
44
- main
5+
- 1.0-dev
56

67
permissions:
78
contents: write
@@ -16,4 +17,6 @@ jobs:
1617
- uses: googleapis/release-please-action@v4
1718
with:
1819
token: ${{ secrets.A2A_BOT_PAT }}
19-
release-type: python
20+
target-branch: ${{ github.ref_name }}
21+
config-file: release-please-config.json
22+
manifest-file: .release-please-manifest.json

.github/workflows/unit-tests.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Run Unit Tests
33
on:
44
push:
5-
branches: [main]
5+
branches: [main, 1.0-dev]
66
pull_request:
77
permissions:
88
contents: read
@@ -38,7 +38,7 @@ jobs:
3838
3939
strategy:
4040
matrix:
41-
python-version: ['3.10', '3.13']
41+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
4242
steps:
4343
- name: Checkout code
4444
uses: actions/checkout@v6
@@ -54,45 +54,47 @@ jobs:
5454
- name: Add uv to PATH
5555
run: |
5656
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
57-
- name: Install dependencies
58-
run: uv sync --locked
5957
60-
# Coverage comparison for PRs (only on Python 3.13 to avoid duplicate work)
58+
59+
# Coverage comparison for PRs (only on Python 3.14 to avoid duplicate work)
6160
- name: Checkout Base Branch
62-
if: github.event_name == 'pull_request' && matrix.python-version == '3.13'
61+
if: github.event_name == 'pull_request' && matrix.python-version == '3.14'
6362
uses: actions/checkout@v4
6463
with:
6564
ref: ${{ github.event.pull_request.base.ref || 'main' }}
6665
clean: true
66+
67+
- name: Install dependencies
68+
run: uv sync --locked
6769

6870
- name: Run coverage (Base)
69-
if: github.event_name == 'pull_request' && matrix.python-version == '3.13'
71+
if: github.event_name == 'pull_request' && matrix.python-version == '3.14'
7072
run: |
7173
uv run pytest --cov=a2a --cov-report=json --cov-report=html:coverage
7274
mv coverage.json /tmp/coverage-base.json
7375
7476
- name: Checkout PR Branch (Restore)
75-
if: github.event_name == 'pull_request' && matrix.python-version == '3.13'
77+
if: github.event_name == 'pull_request' && matrix.python-version == '3.14'
7678
uses: actions/checkout@v4
7779
with:
7880
clean: true
7981

8082
- name: Run coverage (PR)
81-
if: github.event_name == 'pull_request' && matrix.python-version == '3.13'
83+
if: github.event_name == 'pull_request' && matrix.python-version == '3.14'
8284
run: |
8385
uv run pytest --cov=a2a --cov-report=json --cov-report=html:coverage --cov-report=term --cov-fail-under=88
8486
mv coverage.json coverage-pr.json
8587
cp /tmp/coverage-base.json coverage-base.json
8688
8789
- name: Save Metadata
88-
if: github.event_name == 'pull_request' && matrix.python-version == '3.13'
90+
if: github.event_name == 'pull_request' && matrix.python-version == '3.14'
8991
run: |
9092
echo ${{ github.event.number }} > ./PR_NUMBER
9193
echo ${{ github.event.pull_request.base.ref || 'main' }} > ./BASE_BRANCH
9294
9395
- name: Upload Coverage Artifacts
9496
uses: actions/upload-artifact@v4
95-
if: github.event_name == 'pull_request' && matrix.python-version == '3.13'
97+
if: github.event_name == 'pull_request' && matrix.python-version == '3.14'
9698
with:
9799
name: coverage-data
98100
path: |
@@ -105,12 +107,12 @@ jobs:
105107

106108
# Run standard tests (for matrix items that didn't run coverage PR)
107109
- name: Run tests (Standard)
108-
if: matrix.python-version != '3.13' || github.event_name != 'pull_request'
110+
if: matrix.python-version != '3.14' || github.event_name != 'pull_request'
109111
run: uv run pytest --cov=a2a --cov-report term --cov-fail-under=88
110112

111113
- name: Upload Artifact (base)
112114
uses: actions/upload-artifact@v4
113-
if: github.event_name != 'pull_request' && matrix.python-version == '3.13'
115+
if: github.event_name != 'pull_request' && matrix.python-version == '3.14'
114116
with:
115117
name: coverage-report
116118
path: coverage

.github/workflows/update-a2a-types.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ test_venv/
1010
coverage.xml
1111
.nox
1212
spec.json
13+
docker-compose.yaml
14+
.geminiignore

.jscpd.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
{
2-
"ignore": ["**/.github/**", "**/.git/**", "**/tests/**", "**/src/a2a/grpc/**", "**/.nox/**", "**/.venv/**"],
2+
"ignore": [
3+
"**/.github/**",
4+
"**/.git/**",
5+
"**/tests/**",
6+
"**/src/a2a/grpc/**",
7+
"**/src/a2a/compat/**",
8+
"**/.nox/**",
9+
"**/.venv/**"
10+
],
311
"threshold": 3,
412
"reporters": ["html", "markdown"]
513
}

.release-please-manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{".":"1.0.0-alpha.0"}

0 commit comments

Comments
 (0)