Replace rules_pip with rules_python; use bazel built upstream grpc
instead of Python packages
As usual with Python sadness, the @pydeps wheels are built on the bazel
host, so stuffing them inside a container_image (or py_image) will cause
new and unexpected kinds of misery.
Change-Id: Id4e4d53741cf2da367f01aa15c21c133c5cf0dba
diff --git a/bgpwtf/cccampix/frontend/BUILD.bazel b/bgpwtf/cccampix/frontend/BUILD.bazel
index 6fae1d3..f9bbd90 100644
--- a/bgpwtf/cccampix/frontend/BUILD.bazel
+++ b/bgpwtf/cccampix/frontend/BUILD.bazel
@@ -1,4 +1,5 @@
load("@subpar//:subpar.bzl", "par_binary")
+load("@pydeps//:requirements.bzl", "requirement")
py_library(
name = "frontend_lib",
@@ -10,10 +11,12 @@
"templates/**",
]),
deps = [
- "@pydeps//arrow",
- "@pydeps//flask",
- "@pydeps//grpcio",
+ requirement("arrow"),
+ requirement("flask"),
+ requirement("werkzeug"),
+ requirement("itsdangerous"),
"//bgpwtf/cccampix/proto:ix_py_proto",
+ "//bgpwtf/cccampix/proto:ix_grpc_proto",
],
)
@@ -36,13 +39,14 @@
],
deps = [
":frontend_lib",
- "@pydeps//gevent",
- "@pydeps//gunicorn",
+ requirement("gevent"),
+ requirement("gunicorn"),
+ requirement("greenlet"),
],
visibility = [
"//bgpwtf/cccampix:__pkg__",
],
legacy_create_init = False,
zip_safe = False,
- no_remove = True,
+ #no_remove = True,
)