Skip to content

python(refactor): removed google.api and protoc_gen modules from buf#543

Merged
wei-qlu merged 1 commit intomainfrom
python/remove-buf-deps
Apr 27, 2026
Merged

python(refactor): removed google.api and protoc_gen modules from buf#543
wei-qlu merged 1 commit intomainfrom
python/remove-buf-deps

Conversation

@wei-qlu
Copy link
Copy Markdown
Contributor

@wei-qlu wei-qlu commented Apr 24, 2026

What was changed

sift_stack_py currently vendors generated Python bindings for three external proto dependencies under python/lib/: buf/validate/, google/api/, and protoc_gen_openapiv2/. These land there as a side effect of buf generate compiling all deps alongside our own protos.

This PR scopes Python codegen to sift/** and buf/** in scripts/gen.sh so google/api/ and protoc_gen_openapiv2/ are no longer generated, deletes the stale vendored copies, and adds googleapis-common-protos and protoc-gen-openapiv2 as runtime dependencies in pyproject.toml so generated sift code resolves those modules from PyPI at runtime. buf/validate/ is left vendored for now because Buf publishes the protovalidate runtime to PyPI but intentionally withholds the generated buf.validate.validate_pb2 bindings, distributing them only via the Buf Schema Registry at https://buf.build/gen/python. The buf.yaml deps are unchanged since buf still needs those .proto source files at codegen time.

Verified by running make gen-python cleanly and passing tests in a fresh venv.

@wei-qlu wei-qlu requested a review from solidiquis April 24, 2026 22:19
@wei-qlu wei-qlu marked this pull request as ready for review April 24, 2026 22:19
@wei-qlu wei-qlu changed the title removed google.api and protoc_gen modules from buf python(refactor): removed google.api and protoc_gen modules from buf Apr 24, 2026
@wei-qlu wei-qlu merged commit 829b575 into main Apr 27, 2026
22 checks passed
@wei-qlu wei-qlu deleted the python/remove-buf-deps branch April 27, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants