Skip to content

refactor(pypi): extract a function for deleting files recursively#3733

Merged
aignas merged 1 commit intobazel-contrib:mainfrom
aignas:aignas.chore.whl_library_cleanup_1
Apr 26, 2026
Merged

refactor(pypi): extract a function for deleting files recursively#3733
aignas merged 1 commit intobazel-contrib:mainfrom
aignas:aignas.chore.whl_library_cleanup_1

Conversation

@aignas
Copy link
Copy Markdown
Collaborator

@aignas aignas commented Apr 24, 2026

It's high time we did some cleanup and I'd like to start modularizing the code
a little to make future maintenance easier.

@aignas aignas requested review from groodt and rickeylev as code owners April 24, 2026 14:25
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the _whl_library_impl function in python/private/pypi/whl_library.bzl by extracting the logic for deleting specific files into a reusable _remove_files helper function. Additionally, the sequence of operations was adjusted to ensure BUILD files are removed and the new BUILD.bazel is created before checking for repository metadata. I have no feedback to provide.

@rickeylev rickeylev added this pull request to the merge queue Apr 25, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 25, 2026
@aignas aignas added this pull request to the merge queue Apr 26, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 26, 2026
@aignas aignas added this pull request to the merge queue Apr 26, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 26, 2026
@aignas aignas added this pull request to the merge queue Apr 26, 2026
Merged via the queue into bazel-contrib:main with commit 3f6daa8 Apr 26, 2026
4 checks passed
@aignas aignas deleted the aignas.chore.whl_library_cleanup_1 branch April 26, 2026 03:41
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