-
Notifications
You must be signed in to change notification settings - Fork 541
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(bzlmod)!: simplify pip.parse repository layout (#1395)
Before this PR we would generate extra `alias` repos and the extra `hub` repo for the `entry_point` macro usage. This PR removes the extras and delegates the creation of version-aware aliases to the `render_pkg_aliases` internal function. This reduces the number of repositories created by the `pip.parse` extension. Fixes #1255. BREAKING CHANGE: Note that this only affects bzlmod support, which is still beta. * Bzlmod `pip.parse` no longer generates `{hub_name}_{py_version}` hub repos. * Bzlmod `pip.parse` no longer generates `{hub_name}_{distribution}` hub repos. These repos aren't part of a public API, but were typically used for the `entry_point` macros. Instead, use `py_console_script_binary`, which is the supported replacement for entry points under bzlmod. Directly referencing the underlying distribution repos remains unsupported.
- Loading branch information
Showing
6 changed files
with
72 additions
and
209 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
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
29 changes: 0 additions & 29 deletions
29
python/pip_install/pip_hub_repository_requirements_bzlmod.bzl.tmpl
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.