Add numpy_test.py and numpy dep to WORKSPACE (#10722)
* Add numpy_test.py and numpy dep to WORKSPACE
* Add numpy to aarch64 setup, which doesn't use bazel
diff --git a/python/BUILD.bazel b/python/BUILD.bazel
index 118bb4d..ffaf988 100644
--- a/python/BUILD.bazel
+++ b/python/BUILD.bazel
@@ -8,6 +8,7 @@
load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix")
load("@rules_python//python:defs.bzl", "py_library")
+load("@pip_deps//:requirements.bzl", "requirement")
load("//:protobuf.bzl", "internal_py_proto_library")
load("//build_defs:cpp_opts.bzl", "COPTS")
load("//conformance:defs.bzl", "conformance_test")
@@ -320,6 +321,16 @@
)
py_test(
+ name = "numpy_test",
+ srcs = ["google/protobuf/internal/numpy_test.py"],
+ imports = ["."],
+ deps = [
+ ":python_test_lib",
+ requirement("numpy"),
+ ],
+)
+
+py_test(
name = "proto_builder_test",
srcs = ["google/protobuf/internal/proto_builder_test.py"],
imports = ["."],