Skip to content

refactor(pypi): split whl_library_targets - #4101

Merged
rickeylev merged 4 commits into
bazel-contrib:mainfrom
aignas:chore.split.whl_library_targets
Aug 23, 2026
Merged

refactor(pypi): split whl_library_targets#4101
rickeylev merged 4 commits into
bazel-contrib:mainfrom
aignas:chore.split.whl_library_targets

Conversation

@aignas

@aignas aignas commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

Summary:

  • Split the macros into 2 separate files for easier management.
  • Split the tests for each macro as well.

Work towards #2948

Summary:
- Split the macros into 2 separate files for easier management.
- Split the tests for each macro as well.

Work towards bazel-contrib#2948
@aignas
aignas requested a review from rickeylev as a code owner August 23, 2026 05:36
…headers

Copyright headers were incorrectly added to new files, and the bzl_library dependencies for whl_library_targets became obsolete after splitting the macro implementation.

Remove copyright boilerplate from newly created files and update whl_library_targets in BUILD.bazel to depend on whl_library_deps_targets and whl_library_srcs.
@rickeylev
rickeylev enabled auto-merge August 23, 2026 06:17
…export symbols

When whl_library_targets was split, generate_whl_library_build_bazel still generated load statements referencing whl_library_targets.bzl for whl_library_deps_targets, causing symbol lookup failures in repos.

Update generate_whl_library_build_bazel to load from the specific split .bzl module matching the function name, and explicitly re-export the split macro symbols from whl_library_targets.bzl.
@rickeylev
rickeylev added this pull request to the merge queue Aug 23, 2026
Merged via the queue into bazel-contrib:main with commit 0a7d108 Aug 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants