-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pip_parse): support patching 'whl_library'
Before that the users had to rely on patching the actual wheel files and uploading them as different versions to internal artifact stores if they needed to modify the wheel dependencies. This is very common when breaking dependency cycles in `pytorch` or `apache-airflow` packages. With this feature we can support patching external PyPI dependencies via unified patches passed into the `pip.whl_mods` extension and the legacy `package_annotation` macro. Fixes #1076. Add a non-empty patch and show that there can be multiple patches exp: A different design, that does not require us to put patches to annotations.json Simplify the design and add extra notes in the implementation fix: make the legacy WORKSPACE patching compatible with bazel 5.4 chore: update docs refactor: s/module_override/whl_override doc: update changelog doc: improve documentation and code comments on the new features s/whl_override/whl_library_override/g refactor wheel installer feat: support whl_overriding before extraction Add a note doc: update changelog fixup: set better default values for patches chore: add wheel_repackager.py to the list of pysrcs fix rebase conflicts fix: use better defaults for annotations fixup: update docs fixup: minor tidy up add a comment on annotation support for bzlmod refactor: whl patching to a separate function finish cleaning up handling of whl_patches for python annotations Add an empty patch to the pip_repository_annotations example Move patch argument processing to a single place, next to annotations Improve the script and add logging feat!: remove legacy bzlmod patching example doc: remove changelog entry for legacy patching feat!: remove the patching support via pip annotations feat!: remove support for whl_library patching for now
- Loading branch information
Showing
13 changed files
with
343 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
exports_files( | ||
srcs = glob(["*.patch"]), | ||
visibility = ["//visibility:public"], | ||
) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.