Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ca98773

Browse filesBrowse files
authored
chore: load specific bzl files instead of generic defs.bzl (bazel-contrib#2483)
Update code and examples to load the object-specific bzl files instead of the generic `defs.bzl`. This is mostly for code hygiene, but came out of trying to diagnose why Bazel 9 workspace builds kept erroing with defs.bzl somehow related. Removing the internal usages of defs.bzl doesn't seem to fully fix it, but does seem to eliminate some errors, make some progress, and narrow down what's going on. Work towards bazel-contrib#2469
1 parent 0fb4ce1 commit ca98773
Copy full SHA for ca98773

File tree

Expand file treeCollapse file tree

42 files changed

+58
-48
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

42 files changed

+58
-48
lines changed

‎docs/getting-started.md

Copy file name to clipboardExpand all lines: docs/getting-started.md
+1-1Lines changed: 1 addition & 1 deletion

‎docs/index.md

Copy file name to clipboardExpand all lines: docs/index.md
+1-1Lines changed: 1 addition & 1 deletion

‎examples/build_file_generation/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/build_file_generation/BUILD.bazel
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
# ruleset. When the symbol is loaded you can use the rule.
55
load("@bazel_gazelle//:def.bzl", "gazelle")
66
load("@pip//:requirements.bzl", "all_whl_requirements")
7-
load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")
87
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
8+
load("@rules_python//python:py_binary.bzl", "py_binary")
9+
load("@rules_python//python:py_library.bzl", "py_library")
10+
load("@rules_python//python:py_test.bzl", "py_test")
911
load("@rules_python_gazelle_plugin//manifest:defs.bzl", "gazelle_python_manifest")
1012
load("@rules_python_gazelle_plugin//modules_mapping:def.bzl", "modules_mapping")
1113

‎examples/build_file_generation/random_number_generator/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/build_file_generation/random_number_generator/BUILD.bazel
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
load("@rules_python//python:defs.bzl", "py_library", "py_test")
1+
load("@rules_python//python:py_library.bzl", "py_library")
2+
load("@rules_python//python:py_test.bzl", "py_test")
23

34
py_library(
45
name = "random_number_generator",

‎examples/bzlmod/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/bzlmod/BUILD.bazel
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ load("@bazel_skylib//rules:build_test.bzl", "build_test")
99
load("@pip//:requirements.bzl", "all_data_requirements", "all_requirements", "all_whl_requirements", "requirement")
1010
load("@python_3_9//:defs.bzl", py_test_with_transition = "py_test")
1111
load("@python_versions//3.10:defs.bzl", compile_pip_requirements_3_10 = "compile_pip_requirements")
12-
load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")
12+
load("@rules_python//python:py_binary.bzl", "py_binary")
13+
load("@rules_python//python:py_library.bzl", "py_library")
14+
load("@rules_python//python:py_test.bzl", "py_test")
1315

1416
# This stanza calls a rule that generates targets for managing pip dependencies
1517
# with pip-compile for a particular python version.

‎examples/bzlmod/entry_points/tests/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/bzlmod/entry_points/tests/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@bazel_skylib//rules:run_binary.bzl", "run_binary")
2-
load("@rules_python//python:defs.bzl", "py_test")
2+
load("@rules_python//python:py_test.bzl", "py_test")
33

44
# Below are targets for testing the `py_console_script_binary` feature and are
55
# not part of the example how to use the feature.

‎examples/bzlmod/libs/my_lib/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/bzlmod/libs/my_lib/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@pip//:requirements.bzl", "requirement")
2-
load("@rules_python//python:defs.bzl", "py_library")
2+
load("@rules_python//python:py_library.bzl", "py_library")
33

44
py_library(
55
name = "my_lib",

‎examples/bzlmod/other_module/other_module/pkg/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/bzlmod/other_module/other_module/pkg/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ load(
22
"@python_3_11//:defs.bzl",
33
py_binary_311 = "py_binary",
44
)
5-
load("@rules_python//python:defs.bzl", "py_library")
5+
load("@rules_python//python:py_library.bzl", "py_library")
66

77
py_library(
88
name = "lib",

‎examples/bzlmod/runfiles/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/bzlmod/runfiles/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@rules_python//python:defs.bzl", "py_test")
1+
load("@rules_python//python:py_test.bzl", "py_test")
22

33
py_test(
44
name = "runfiles_test",

‎examples/bzlmod/tests/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/bzlmod/tests/BUILD.bazel
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ load("@python_versions//3.10:defs.bzl", py_binary_3_10 = "py_binary", py_test_3_
22
load("@python_versions//3.11:defs.bzl", py_binary_3_11 = "py_binary", py_test_3_11 = "py_test")
33
load("@python_versions//3.9:defs.bzl", py_binary_3_9 = "py_binary", py_test_3_9 = "py_test")
44
load("@pythons_hub//:versions.bzl", "MINOR_MAPPING")
5-
load("@rules_python//python:defs.bzl", "py_binary", "py_test")
5+
load("@rules_python//python:py_binary.bzl", "py_binary")
6+
load("@rules_python//python:py_test.bzl", "py_test")
67
load("@rules_python//python/config_settings:transition.bzl", py_versioned_binary = "py_binary", py_versioned_test = "py_test")
78
load("@rules_shell//shell:sh_test.bzl", "sh_test")
89

‎examples/bzlmod/whl_mods/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/bzlmod/whl_mods/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@rules_python//python:defs.bzl", "py_test")
1+
load("@rules_python//python:py_test.bzl", "py_test")
22

33
exports_files(
44
glob(["data/**"]),

‎examples/bzlmod_build_file_generation/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/bzlmod_build_file_generation/BUILD.bazel
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
# requirements.
88
load("@bazel_gazelle//:def.bzl", "gazelle")
99
load("@pip//:requirements.bzl", "all_whl_requirements")
10-
load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")
1110
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
11+
load("@rules_python//python:py_binary.bzl", "py_binary")
12+
load("@rules_python//python:py_library.bzl", "py_library")
13+
load("@rules_python//python:py_test.bzl", "py_test")
1214
load("@rules_python_gazelle_plugin//manifest:defs.bzl", "gazelle_python_manifest")
1315
load("@rules_python_gazelle_plugin//modules_mapping:def.bzl", "modules_mapping")
1416

‎examples/bzlmod_build_file_generation/other_module/other_module/pkg/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/bzlmod_build_file_generation/other_module/other_module/pkg/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@rules_python//python:defs.bzl", "py_library")
1+
load("@rules_python//python:py_library.bzl", "py_library")
22

33
py_library(
44
name = "lib",

‎examples/bzlmod_build_file_generation/runfiles/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/bzlmod_build_file_generation/runfiles/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@rules_python//python:defs.bzl", "py_test")
1+
load("@rules_python//python:py_test.bzl", "py_test")
22

33
# gazelle:ignore
44
py_test(

‎examples/multi_python_versions/libs/my_lib/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/multi_python_versions/libs/my_lib/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@pypi//:requirements.bzl", "requirement")
2-
load("@rules_python//python:defs.bzl", "py_library")
2+
load("@rules_python//python:py_library.bzl", "py_library")
33

44
py_library(
55
name = "my_lib",

‎examples/multi_python_versions/tests/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/multi_python_versions/tests/BUILD.bazel
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ load("@python//3.11:defs.bzl", py_binary_3_11 = "py_binary", py_test_3_11 = "py_
66
load("@python//3.8:defs.bzl", py_binary_3_8 = "py_binary", py_test_3_8 = "py_test")
77
load("@python//3.9:defs.bzl", py_binary_3_9 = "py_binary", py_test_3_9 = "py_test")
88
load("@pythons_hub//:versions.bzl", "MINOR_MAPPING", "PYTHON_VERSIONS")
9-
load("@rules_python//python:defs.bzl", "py_binary", "py_test")
9+
load("@rules_python//python:py_binary.bzl", "py_binary")
10+
load("@rules_python//python:py_test.bzl", "py_test")
1011
load("@rules_python//python:versions.bzl", DEFAULT_MINOR_MAPPING = "MINOR_MAPPING", DEFAULT_TOOL_VERSIONS = "TOOL_VERSIONS")
1112
load("@rules_python//python/private:text_util.bzl", "render") # buildifier: disable=bzl-visibility
1213
load("@rules_shell//shell:sh_test.bzl", "sh_test")

‎examples/pip_parse/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/pip_parse/BUILD.bazel
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
load("@rules_python//python:defs.bzl", "py_binary", "py_test")
21
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
2+
load("@rules_python//python:py_binary.bzl", "py_binary")
3+
load("@rules_python//python:py_test.bzl", "py_test")
34
load("@rules_python//python/entry_points:py_console_script_binary.bzl", "py_console_script_binary")
45

56
# Toolchain setup, this is optional.
67
# Demonstrate that we can use the same python interpreter for the toolchain and executing pip in pip install (see WORKSPACE).
78
#
8-
#load("@rules_python//python:defs.bzl", "py_runtime_pair")
9+
#load("@rules_python//python:py_runtime_pair.bzl", "py_runtime_pair")
910
#
1011
#py_runtime(
1112
# name = "python3_runtime",

‎examples/pip_parse_vendored/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/pip_parse_vendored/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
load("@bazel_skylib//rules:build_test.bzl", "build_test")
22
load("@bazel_skylib//rules:diff_test.bzl", "diff_test")
33
load("@bazel_skylib//rules:write_file.bzl", "write_file")
4-
load("@rules_python//python:defs.bzl", "py_test")
54
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
5+
load("@rules_python//python:py_test.bzl", "py_test")
66
load("//:requirements.bzl", "all_data_requirements", "all_requirements", "all_whl_requirements", "requirement")
77

88
# This rule adds a convenient way to update the requirements.txt

‎examples/pip_repository_annotations/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/pip_repository_annotations/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
load("@rules_python//python:defs.bzl", "py_test")
21
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
2+
load("@rules_python//python:py_test.bzl", "py_test")
33

44
exports_files(
55
glob(["data/**"]),

‎examples/py_proto_library/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/py_proto_library/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@rules_python//python:defs.bzl", "py_test")
1+
load("@rules_python//python:py_test.bzl", "py_test")
22

33
py_test(
44
name = "pricetag_test",

‎examples/wheel/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/wheel/BUILD.bazel
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
load("@bazel_skylib//rules:build_test.bzl", "build_test")
1616
load("@bazel_skylib//rules:write_file.bzl", "write_file")
1717
load("//examples/wheel/private:wheel_utils.bzl", "directory_writer", "make_variable_tags")
18-
load("//python:defs.bzl", "py_library", "py_test")
1918
load("//python:packaging.bzl", "py_package", "py_wheel")
2019
load("//python:pip.bzl", "compile_pip_requirements")
20+
load("//python:py_library.bzl", "py_library")
21+
load("//python:py_test.bzl", "py_test")
2122
load("//python:versions.bzl", "gen_python_config_settings")
2223
load("//python/entry_points:py_console_script_binary.bzl", "py_console_script_binary")
2324
load("//python/private:bzlmod_enabled.bzl", "BZLMOD_ENABLED") # buildifier: disable=bzl-visibility

‎examples/wheel/lib/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/wheel/lib/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
load("//python:defs.bzl", "py_library")
15+
load("//python:py_library.bzl", "py_library")
1616

1717
package(default_visibility = ["//visibility:public"])
1818

‎examples/wheel/private/BUILD.bazel

Copy file name to clipboardExpand all lines: examples/wheel/private/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@rules_python//python:defs.bzl", "py_binary")
1+
load("@rules_python//python:py_binary.bzl", "py_binary")
22

33
py_binary(
44
name = "directory_writer",

‎python/private/proto/BUILD.bazel

Copy file name to clipboardExpand all lines: python/private/proto/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ bzl_library(
3030
srcs = ["py_proto_library.bzl"],
3131
visibility = ["//python:__pkg__"],
3232
deps = [
33-
"//python:defs_bzl",
33+
"//python:py_info_bzl",
3434
"@rules_proto//proto:defs",
3535
],
3636
)

‎python/private/proto/py_proto_library.bzl

Copy file name to clipboardExpand all lines: python/private/proto/py_proto_library.bzl
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"""The implementation of the `py_proto_library` rule and its aspect."""
1616

1717
load("@rules_proto//proto:defs.bzl", "ProtoInfo", "proto_common")
18-
load("//python:defs.bzl", "PyInfo")
18+
load("//python:py_info.bzl", "PyInfo")
1919
load("//python/api:api.bzl", _py_common = "py_common")
2020

2121
PY_PROTO_TOOLCHAIN = "@rules_python//python/proto:toolchain_type"

‎python/private/pypi/deps.bzl

Copy file name to clipboardExpand all lines: python/private/pypi/deps.bzl
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ _RULE_DEPS = [
100100
_GENERIC_WHEEL = """\
101101
package(default_visibility = ["//visibility:public"])
102102
103-
load("@rules_python//python:defs.bzl", "py_library")
103+
load("@rules_python//python:py_library.bzl", "py_library")
104104
load("@rules_python//python/private:glob_excludes.bzl", "glob_excludes")
105105
106106
py_library(

‎python/private/pypi/generate_group_library_build_bazel.bzl

Copy file name to clipboardExpand all lines: python/private/pypi/generate_group_library_build_bazel.bzl
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ load(
2525
)
2626

2727
_PRELUDE = """\
28-
load("@rules_python//python:defs.bzl", "py_library")
28+
load("@rules_python//python:py_library.bzl", "py_library")
2929
"""
3030

3131
_GROUP_TEMPLATE = """\

‎python/private/pypi/whl_installer/BUILD.bazel

Copy file name to clipboardExpand all lines: python/private/pypi/whl_installer/BUILD.bazel
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
load("//python:defs.bzl", "py_binary", "py_library")
1+
load("//python:py_binary.bzl", "py_binary")
2+
load("//python:py_library.bzl", "py_library")
23

34
py_library(
45
name = "lib",

‎python/private/whl_filegroup/BUILD.bazel

Copy file name to clipboardExpand all lines: python/private/whl_filegroup/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
2-
load("//python:defs.bzl", "py_binary")
2+
load("//python:py_binary.bzl", "py_binary")
33

44
filegroup(
55
name = "distribution",

‎python/python.bzl

Copy file name to clipboardExpand all lines: python/python.bzl
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@
1414

1515
"""Re-exports for some of the core Bazel Python rules.
1616
17-
This file is deprecated; please use the exports in defs.bzl instead. This is to
18-
follow the new naming convention of putting core rules for a language
19-
underneath @rules_<LANG>//<LANG>:defs.bzl. The exports in this file will be
20-
disallowed in a future Bazel release by
21-
`--incompatible_load_python_rules_from_bzl`.
17+
This file is deprecated; please use the exports in `<name>.bzl` files instead.
2218
"""
2319

2420
def py_library(*args, **kwargs):

‎python/runfiles/BUILD.bazel

Copy file name to clipboardExpand all lines: python/runfiles/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
load("//python:defs.bzl", "py_library")
1615
load("//python:packaging.bzl", "py_wheel")
16+
load("//python:py_library.bzl", "py_library")
1717
load("//python/private:bzlmod_enabled.bzl", "BZLMOD_ENABLED")
1818

1919
filegroup(

‎tests/base_rules/base_tests.bzl

Copy file name to clipboardExpand all lines: tests/base_rules/base_tests.bzl
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
load("@rules_testing//lib:analysis_test.bzl", "analysis_test")
1717
load("@rules_testing//lib:truth.bzl", "matching")
1818
load("@rules_testing//lib:util.bzl", "PREVENT_IMPLICIT_BUILDING_TAGS", rt_util = "util")
19-
load("//python:defs.bzl", "PyInfo")
19+
load("//python:py_info.bzl", "PyInfo")
2020
load("//python/private:reexports.bzl", "BuiltinPyInfo") # buildifier: disable=bzl-visibility
2121
load("//tests/base_rules:util.bzl", pt_util = "util")
2222
load("//tests/support:py_info_subject.bzl", "py_info_subject")

‎tests/base_rules/py_binary/py_binary_tests.bzl

Copy file name to clipboardExpand all lines: tests/base_rules/py_binary/py_binary_tests.bzl
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414
"""Tests for py_binary."""
1515

16-
load("//python:defs.bzl", "py_binary")
16+
load("//python:py_binary.bzl", "py_binary")
1717
load(
1818
"//tests/base_rules:py_executable_base_tests.bzl",
1919
"create_executable_tests",

‎tests/base_rules/py_library/py_library_tests.bzl

Copy file name to clipboardExpand all lines: tests/base_rules/py_library/py_library_tests.bzl
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
load("@rules_testing//lib:analysis_test.bzl", "analysis_test")
44
load("@rules_testing//lib:truth.bzl", "matching")
55
load("@rules_testing//lib:util.bzl", rt_util = "util")
6-
load("//python:defs.bzl", "PyRuntimeInfo", "py_library")
6+
load("//python:py_library.bzl", "py_library")
7+
load("//python:py_runtime_info.bzl", "PyRuntimeInfo")
78
load("//tests/base_rules:base_tests.bzl", "create_base_tests")
89
load("//tests/base_rules:util.bzl", pt_util = "util")
910

‎tests/base_rules/py_test/py_test_tests.bzl

Copy file name to clipboardExpand all lines: tests/base_rules/py_test/py_test_tests.bzl
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
load("@rules_testing//lib:analysis_test.bzl", "analysis_test")
1717
load("@rules_testing//lib:util.bzl", rt_util = "util")
18-
load("//python:defs.bzl", "py_test")
18+
load("//python:py_test.bzl", "py_test")
1919
load(
2020
"//tests/base_rules:py_executable_base_tests.bzl",
2121
"create_executable_tests",

‎tests/load_from_macro/BUILD.bazel

Copy file name to clipboardExpand all lines: tests/load_from_macro/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
load("//python:defs.bzl", "py_library")
15+
load("//python:py_library.bzl", "py_library")
1616
load(":tags.bzl", "TAGS")
1717

1818
licenses(["notice"])

‎tests/pycross/BUILD.bazel

Copy file name to clipboardExpand all lines: tests/pycross/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
load("//python:defs.bzl", "py_test")
15+
load("//python:py_test.bzl", "py_test")
1616
load("//third_party/rules_pycross/pycross/private:wheel_library.bzl", "py_wheel_library") # buildifier: disable=bzl-visibility
1717

1818
py_wheel_library(

‎tests/pypi/generate_group_library_build_bazel/generate_group_library_build_bazel_tests.bzl

Copy file name to clipboardExpand all lines: tests/pypi/generate_group_library_build_bazel/generate_group_library_build_bazel_tests.bzl
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ _tests = []
2121

2222
def _test_simple(env):
2323
want = """\
24-
load("@rules_python//python:defs.bzl", "py_library")
24+
load("@rules_python//python:py_library.bzl", "py_library")
2525
2626
2727
## Group vbap
@@ -62,7 +62,7 @@ _tests.append(_test_simple)
6262

6363
def _test_in_hub(env):
6464
want = """\
65-
load("@rules_python//python:defs.bzl", "py_library")
65+
load("@rules_python//python:py_library.bzl", "py_library")
6666
6767
6868
## Group vbap

‎tests/pypi/whl_installer/BUILD.bazel

Copy file name to clipboardExpand all lines: tests/pypi/whl_installer/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("//python:defs.bzl", "py_test")
1+
load("//python:py_test.bzl", "py_test")
22

33
alias(
44
name = "lib",

‎tests/whl_filegroup/BUILD.bazel

Copy file name to clipboardExpand all lines: tests/whl_filegroup/BUILD.bazel
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
load("@bazel_skylib//rules:write_file.bzl", "write_file")
22
load("@rules_cc//cc:cc_library.bzl", "cc_library")
33
load("@rules_cc//cc:cc_test.bzl", "cc_test")
4-
load("//python:defs.bzl", "py_library", "py_test")
54
load("//python:packaging.bzl", "py_package", "py_wheel")
65
load("//python:pip.bzl", "whl_filegroup")
6+
load("//python:py_library.bzl", "py_library")
7+
load("//python:py_test.bzl", "py_test")
78
load(":whl_filegroup_tests.bzl", "whl_filegroup_test_suite")
89

910
whl_filegroup_test_suite(name = "whl_filegroup_tests")

‎third_party/rules_pycross/pycross/private/wheel_library.bzl

Copy file name to clipboardExpand all lines: third_party/rules_pycross/pycross/private/wheel_library.bzl
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"""Implementation of the py_wheel_library rule."""
1717

1818
load("@bazel_skylib//lib:paths.bzl", "paths")
19-
load("//python:defs.bzl", "PyInfo")
19+
load("//python:py_info.bzl", "PyInfo")
2020
load(":providers.bzl", "PyWheelInfo")
2121

2222
def _py_wheel_library_impl(ctx):

‎tools/BUILD.bazel

Copy file name to clipboardExpand all lines: tools/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
load("//python:defs.bzl", "py_binary")
14+
load("//python:py_binary.bzl", "py_binary")
1515

1616
package(default_visibility = ["//visibility:public"])
1717

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.