diff --git a/WORKSPACE b/WORKSPACE index cf69f7f5..3514b01f 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -48,17 +48,13 @@ http_archive( # Python rules # Important: rules_python must be loaded before protobuf (and grpc) because they load an older version otherwise -load("@rules_python//python:repositories.bzl", "py_repositories") -py_repositories() - -load("@rules_python//python:pip.bzl", "pip_repositories") -pip_repositories() - -load("@rules_python//python:pip.bzl", "pip_install") -pip_install( +load("@rules_python//python:pip.bzl", "pip_parse") +pip_parse( name = "pydeps", - requirements = "//third_party/py:requirements.txt", + requirements_lock = "//third_party/py:requirements.txt", ) +load("@pydeps//:requirements.bzl", "install_deps") +install_deps() # Setup Go toolchain. load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains")