rules_pip: update to new version
rules_pip has a new version [1] of their rule system, incompatible with the
version we used, that fixes a bunch of issues, notably:
- explicit tagging of repositories for PY2/PY3/PY23 support
- removal of dependency on host pip (in exchange for having to vendor
wheels)
- higher quality tooling for locking
We update to the newer version of pip_rules, rename the external
repository to pydeps and move requirements.txt, the lockfile and the
newly vendored wheels to third_party/, where they belong.
[1] - https://github.com/apt-itude/rules_pip/issues/16
Change-Id: I1065ee2fc410e52fca2be89fcbdd4cc5a4755d55
diff --git a/bgpwtf/cccampix/BUILD b/bgpwtf/cccampix/BUILD
index db12375..a96f739 100644
--- a/bgpwtf/cccampix/BUILD
+++ b/bgpwtf/cccampix/BUILD
@@ -7,8 +7,8 @@
"ripe-sync.py",
],
deps = [
- "@pip36//grpcio",
- "@pip36//requests",
+ "@pydeps//grpcio",
+ "@pydeps//requests",
"//bgpwtf/cccampix/proto:ix_py_proto",
],
legacy_create_init = False,
diff --git a/bgpwtf/cccampix/frontend/BUILD.bazel b/bgpwtf/cccampix/frontend/BUILD.bazel
index 9b14017..6fae1d3 100644
--- a/bgpwtf/cccampix/frontend/BUILD.bazel
+++ b/bgpwtf/cccampix/frontend/BUILD.bazel
@@ -10,9 +10,9 @@
"templates/**",
]),
deps = [
- "@pip36//arrow",
- "@pip36//flask",
- "@pip36//grpcio",
+ "@pydeps//arrow",
+ "@pydeps//flask",
+ "@pydeps//grpcio",
"//bgpwtf/cccampix/proto:ix_py_proto",
],
)
@@ -36,8 +36,8 @@
],
deps = [
":frontend_lib",
- "@pip36//gevent",
- "@pip36//gunicorn",
+ "@pydeps//gevent",
+ "@pydeps//gunicorn",
],
visibility = [
"//bgpwtf/cccampix:__pkg__",
diff --git a/bgpwtf/cccampix/proto/BUILD.bazel b/bgpwtf/cccampix/proto/BUILD.bazel
index e8a54ba..22c557e 100644
--- a/bgpwtf/cccampix/proto/BUILD.bazel
+++ b/bgpwtf/cccampix/proto/BUILD.bazel
@@ -33,6 +33,6 @@
srcs = ["ix_py_proto_src"],
visibility = ["//visibility:public"],
deps = [
- "@pip36//protobuf",
+ "@pydeps//protobuf",
],
)