diff --git a/py/private/py_binary.bzl b/py/private/py_binary.bzl index 8acfd265..3fdb32a6 100644 --- a/py/private/py_binary.bzl +++ b/py/private/py_binary.bzl @@ -1,5 +1,6 @@ """Implementation for the py_binary and py_test rules.""" +load("@rules_python//python:defs.bzl", "PyInfo") load("@aspect_bazel_lib//lib:paths.bzl", "BASH_RLOCATION_FUNCTION", "to_rlocation_path") load("@aspect_bazel_lib//lib:expand_make_vars.bzl", "expand_locations", "expand_variables") load("//py/private:py_library.bzl", _py_library = "py_library_utils") diff --git a/py/private/py_library.bzl b/py/private/py_library.bzl index e02451d1..ac3e07c9 100644 --- a/py/private/py_library.bzl +++ b/py/private/py_library.bzl @@ -1,5 +1,6 @@ """Implementation for the py_library rule""" +load("@rules_python//python:defs.bzl", "PyInfo") load("@bazel_skylib//lib:paths.bzl", "paths") load("@bazel_skylib//lib:new_sets.bzl", "sets") load("//py/private:providers.bzl", "PyVirtualInfo") diff --git a/py/private/py_unpacked_wheel.bzl b/py/private/py_unpacked_wheel.bzl index 5e902fc3..0232644d 100644 --- a/py/private/py_unpacked_wheel.bzl +++ b/py/private/py_unpacked_wheel.bzl @@ -1,5 +1,6 @@ """Unpacks a Python wheel into a directory and returns a PyInfo provider that represents that wheel""" +load("@rules_python//python:defs.bzl", "PyInfo") load("@bazel_skylib//lib:paths.bzl", "paths") load("//py/private:py_library.bzl", _py_library = "py_library_utils") load("//py/private/toolchain:types.bzl", "PY_TOOLCHAIN", "UNPACK_TOOLCHAIN") diff --git a/py/private/py_venv.bzl b/py/private/py_venv.bzl index b529dec2..2108550c 100644 --- a/py/private/py_venv.bzl +++ b/py/private/py_venv.bzl @@ -1,5 +1,6 @@ """Implementation for the py_binary and py_test rules.""" +load("@rules_python//python:defs.bzl", "PyInfo") load("@aspect_bazel_lib//lib:paths.bzl", "BASH_RLOCATION_FUNCTION", "to_rlocation_path") load("@bazel_skylib//lib:paths.bzl", "paths") load("//py/private:providers.bzl", "PyVirtualInfo") diff --git a/py/tests/import-pathing/BUILD.bazel b/py/tests/import-pathing/BUILD.bazel index 6036eec7..9a7187e7 100644 --- a/py/tests/import-pathing/BUILD.bazel +++ b/py/tests/import-pathing/BUILD.bazel @@ -1,3 +1,4 @@ +load("@rules_python//python:defs.bzl", "py_library") load(":tests.bzl", "py_library_import_pathing_test_suite") # This is used in the py_library import pathing tests diff --git a/py/tests/internal-deps/BUILD.bazel b/py/tests/internal-deps/BUILD.bazel index 0055cc02..4ed9cb2d 100644 --- a/py/tests/internal-deps/BUILD.bazel +++ b/py/tests/internal-deps/BUILD.bazel @@ -1,3 +1,4 @@ +load("@rules_python//python:defs.bzl", "py_library") load("//py:defs.bzl", "py_binary", "py_test", rules_py_py_library = "py_library") rules_py_py_library(