Rule py_proto_library doesn't use upb backend as the documentation says
What version of protobuf and what language are you using? Version: 29.4 (https://github.com/protocolbuffers/protobuf/releases/download/v29.4/protobuf-29.4.zip) Language: Python
What operating system (Linux, Windows, ...) and version? Ubuntu 22.04
What runtime / compiler are you using (e.g., python version or gcc version) gcc 11.2, python 3.10
What did you do? Add a simple py_test target like this:
load("@com_github_grpc_grpc//bazel:python_rules.bzl", "py_proto_library") # or load("@com_google_protobuf//bazel:py_proto_library.bzl", "py_proto_library")
load("@com_google_protobuf//bazel:proto_library.bzl", "proto_library")
py_test(
name = "check_protobuf_api_implementation_test",
srcs = ["check_protobuf_api_implementation_test.py"],
deps = [":py_dummy"],
)
proto_library(
name = "dummy_proto",
srcs = ["dummy.proto"],
)
py_proto_library(
name = "py_dummy",
deps = [":dummy_proto"],
)
check_protobuf_api_implementation_test.py
from google.protobuf.internal import api_implementation
def test_api_implementatation() -> None:
assert api_implementation.Type() == "upb"
What did you expect to see
api_implementation.Type() == "upb" is True,
What did you see instead?
python
Anything else we should know about your project / environment
Hmm maybe oversight or version differential? cc @anandolee
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.
This issue is labeled inactive because the last activity was over 90 days ago. This issue will be closed and archived after 14 additional days without activity.
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please reopen it.
This issue was closed and archived because there has been no new activity in the 14 days since the inactive label was added.