|
1 | | -load("@pybind11_bazel//:build_defs.bzl", "pybind_extension", "pybind_library") |
| 1 | +load("@pybind11_bazel//:build_defs.bzl", "pybind_library") |
2 | 2 | load("@rules_cc//cc:cc_library.bzl", "cc_library") |
3 | 3 | load("@rules_python//python:py_test.bzl", "py_test") |
| 4 | +load(":pybind_extension.bzl", "pybind_extension") |
4 | 5 |
|
5 | 6 | package(default_visibility = ["//visibility:public"]) |
6 | 7 |
|
@@ -209,6 +210,37 @@ py_test( |
209 | 210 | }), |
210 | 211 | ) |
211 | 212 |
|
| 213 | +py_test( |
| 214 | + name = "exported_symbols_test", |
| 215 | + srcs = ["exported_symbols_test.py"], |
| 216 | + data = [ |
| 217 | + ":cel", |
| 218 | + "//cel_expr_python/ext:ext_bindings", |
| 219 | + "//cel_expr_python/ext:ext_encoders", |
| 220 | + "//cel_expr_python/ext:ext_lists", |
| 221 | + "//cel_expr_python/ext:ext_math", |
| 222 | + "//cel_expr_python/ext:ext_optional", |
| 223 | + "//cel_expr_python/ext:ext_proto", |
| 224 | + "//cel_expr_python/ext:ext_strings", |
| 225 | + ], |
| 226 | + deps = [ |
| 227 | + "@com_google_absl_py//absl/testing:absltest", |
| 228 | + "@com_google_absl_py//absl/testing:parameterized", |
| 229 | + ] + select({ |
| 230 | + "@platforms//os:windows": [], |
| 231 | + "//conditions:default": [ |
| 232 | + ":cel", |
| 233 | + "//cel_expr_python/ext:ext_bindings", |
| 234 | + "//cel_expr_python/ext:ext_encoders", |
| 235 | + "//cel_expr_python/ext:ext_lists", |
| 236 | + "//cel_expr_python/ext:ext_math", |
| 237 | + "//cel_expr_python/ext:ext_optional", |
| 238 | + "//cel_expr_python/ext:ext_proto", |
| 239 | + "//cel_expr_python/ext:ext_strings", |
| 240 | + ], |
| 241 | + }), |
| 242 | +) |
| 243 | + |
212 | 244 | # Platform definition for macOS x86_64. |
213 | 245 | # Used for cross-compiling from arm64 macOS hosts (Apple Silicon) to x86_64. |
214 | 246 | # This is passed to Bazel via --platforms in setup.py when building x86_64 wheels. |
|
0 commit comments