| def pyproto_test_wrapper(name, deps = []): |
| src = name + "_wrapper.py" |
| legacy_create_init = False, |
| data = ["//src/google/protobuf:testdata"], |
| "//:python_common_test_protos", |
| "//:python_specific_test_protos", |
| target_compatible_with = select({ |
| "@system_python//:supported": [], |
| "//conditions:default": ["@platforms//:incompatible"], |
| # load("@rules_python//python:py_test.bzl", "py_test") |
| # def pyproto_test_wrapper(name): |
| # src = name + "_wrapper.py" |
| # "//third_party/py/google/protobuf/internal:" + name + "_for_deps", |
| # "//third_party/py/google/protobuf:use_upb_protos", |
| # target_compatible_with = select({ |
| # "@platforms//os:windows": ["@platforms//:incompatible"], |
| # "//conditions:default": [], |