Skip to content

Commit 4623990

Browse files
authored
refactor(pypi): use a macro to define whl_library targets (bazel-contrib#2347)
Summary: - refactor: Start implementing whl_library_targets - refactor: start using whl_library_targets macro - refactor: generate config settings in the new macro - refactor: copy_files in the new macro - refactor: move entry_point generation to the macro - refactor: move the py_library and whl generation to the new macro This makes the code more maintainable by reducing the amount of tests that are comparing BUILD.bazel outputs.
1 parent f8d4135 commit 4623990

File tree

8 files changed

+786
-902
lines changed

8 files changed

+786
-902
lines changed

examples/bzlmod/MODULE.bazel.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/private/pypi/BUILD.bazel

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ bzl_library(
110110
name = "generate_whl_library_build_bazel_bzl",
111111
srcs = ["generate_whl_library_build_bazel.bzl"],
112112
deps = [
113-
":labels_bzl",
114-
"//python/private:normalize_name_bzl",
113+
"//python/private:text_util_bzl",
115114
],
116115
)
117116

0 commit comments

Comments
 (0)