Skip to content

Commit ca6aa90

Browse files
Buf generation for python sdk
1 parent 5e7d418 commit ca6aa90

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

buf.gen.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: v2
2+
inputs:
3+
- git_repo: https://github.com/google-a2a/A2A.git
4+
ref: main
5+
subdir: specification/grpc
6+
managed:
7+
enabled: true
8+
# Python Generation
9+
# Using remote plugins. To use local plugins replace remote with local
10+
# pip install protobuf grpcio-tools
11+
# Optionally, install plugin to generate stubs for grpc services
12+
# pip install mypy-protobuf
13+
# Generate python protobuf code
14+
# - local: protoc-gen-python
15+
# - out: src/python
16+
# Generate gRPC stubs
17+
# - local: protoc-gen-grpc-python
18+
# - out: src/python
19+
plugins:
20+
# Generate python protobuf related code
21+
# Generates *_pb2.py files, one for each .proto
22+
- remote: buf.build/protocolbuffers/python
23+
out: src/python
24+
# Generate python service code.
25+
# Generates *_pb2_grpc.py
26+
- remote: buf.build/grpc/python
27+
out: src/python

0 commit comments

Comments
 (0)