Remove pip setup and the one test depending on it

win2019-23.x
Mike Kruskal 1 year ago
parent 1847e5347d
commit d4d671ec78
  1. 12
      WORKSPACE
  2. 25
      python/google/protobuf/internal/numpy/BUILD.bazel

@ -95,18 +95,6 @@ system_python(
minimum_python_version = "3.7",
)
load("@system_python//:pip.bzl", "pip_parse")
pip_parse(
name="pip_deps",
requirements = "@upb//python:requirements.txt",
requirements_overrides = {
"3.11": "@upb//python:requirements_311.txt",
},
)
load("@pip_deps//:requirements.bzl", "install_deps")
install_deps()
load("@utf8_range//:workspace_deps.bzl", "utf8_range_deps")
utf8_range_deps()

@ -1,7 +1,8 @@
# Protobuf python numpy Tests
# This is removed from other tests to keep numpy (and @pip_deps) as a test-only dependency
load("@pip_deps//:requirements.bzl", "requirement")
# It's no longer feasible to test this in our CI, and python is out of it's support window.
#load("@pip_deps//:requirements.bzl", "requirement")
load("//python:internal.bzl", "internal_py_test")
# TODO: b/278896688 - Remove this target and replace with py_library
@ -10,14 +11,14 @@ exports_files([
"numpy_test.py",
])
internal_py_test(
name = "numpy_test",
srcs = ["numpy_test.py"],
deps = [
requirement("numpy"),
],
visibility = [
"//python:__pkg__",
"@upb//python/pb_unit_tests:__pkg__",
]
)
#internal_py_test(
# name = "numpy_test",
# srcs = ["numpy_test.py"],
# deps = [
# requirement("numpy"),
# ],
# visibility = [
# "//python:__pkg__",
# "@upb//python/pb_unit_tests:__pkg__",
# ]
#)

Loading…
Cancel
Save