diff --git a/MODULE.bazel b/MODULE.bazel index e2d3917..7b3dc47 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -13,5 +13,5 @@ module( # Only for development bazel_dep(name = "rules_pkg", version = "0.7.0", dev_dependency = True) -bazel_dep(name = "rules_python", version = "0.19.0", dev_dependency = True) +bazel_dep(name = "rules_python", version = "0.23.0", dev_dependency = True) bazel_dep(name = "stardoc", version = "0.5.3", dev_dependency = True) diff --git a/rules/BUILD b/rules/BUILD index 2f510f4..387019a 100644 --- a/rules/BUILD +++ b/rules/BUILD @@ -35,7 +35,10 @@ trace( filegroup( name = "standard_package", - srcs = glob(["**"]), + srcs = glob([ + "**/BUILD", + "**/*.bzl", + ]), ) # Do not create a bzl_library(). That would create a dependency loop back diff --git a/tests/apps/BUILD b/tests/apps/BUILD index b5fd1bb..c8b59df 100644 --- a/tests/apps/BUILD +++ b/tests/apps/BUILD @@ -1,6 +1,7 @@ # Test cases for license rules: Sample app load("@rules_license//sample_reports:licenses_used.bzl", "licenses_used") +load("@rules_python//python:defs.bzl", "py_test") package(default_visibility = ["//examples:__subpackages__"]) diff --git a/tools/BUILD b/tools/BUILD index 2b56a34..4422ca0 100644 --- a/tools/BUILD +++ b/tools/BUILD @@ -14,6 +14,8 @@ """License declaration and compliance checking tools.""" +load("@rules_python//python:defs.bzl", "py_binary") + package( default_applicable_licenses = ["//:license", "//:package_info"], default_visibility = ["//visibility:public"],