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
"""Regenerate the Python SDK protobuf bindings.
The canonical generator is the repo-root ``buf.gen.yaml``. ``--include-imports``
vendors the ``google/api`` annotation stubs (which the native control-plane
gRPC stubs import) into ``sdk/python/gen`` so the published wheel is
self-contained and needs no external ``googleapis`` dependency.
The committed ``sdk/python/gen`` tree is the source of truth — CI hard-fails on
drift against ``buf generate --include-imports`` — so this script just refreshes
it locally. It regenerates every SDK (buf emits all languages); only
``sdk/python/gen`` is consumed by the Python build.
"""
= .
return 1
return .