forked from a2aproject/a2a-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuf.gen.yaml
More file actions
31 lines (31 loc) · 910 Bytes
/
buf.gen.yaml
File metadata and controls
31 lines (31 loc) · 910 Bytes
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
---
version: v2
inputs:
- git_repo: https://github.com/a2aproject/A2A.git
ref: main
subdir: specification/grpc
managed:
enabled: true
# Python Generation
# Using remote plugins. To use local plugins replace remote with local
# pip install protobuf grpcio-tools
# Optionally, install plugin to generate stubs for grpc services
# pip install mypy-protobuf
# Generate python protobuf code
# - local: protoc-gen-python
# - out: src/python
# Generate gRPC stubs
# - local: protoc-gen-grpc-python
# - out: src/python
plugins:
# Generate python protobuf related code
# Generates *_pb2.py files, one for each .proto
- remote: buf.build/protocolbuffers/python:v29.3
out: src/a2a/grpc
# Generate python service code.
# Generates *_pb2_grpc.py
- remote: buf.build/grpc/python
out: src/a2a/grpc
# Generates *_pb2.pyi files.
- remote: buf.build/protocolbuffers/pyi
out: src/a2a/grpc