Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 391cde8

Browse filesBrowse files
author
Garrett Holmstrom
committed
Add extra_hub_aliases to pip_repository too
1 parent 1944874 commit 391cde8
Copy full SHA for 391cde8

File tree

Expand file treeCollapse file tree

3 files changed

+11
-10
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+11
-10
lines changed

‎python/private/pypi/attrs.bzl

Copy file name to clipboardExpand all lines: python/private/pypi/attrs.bzl
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,16 @@ or empty in the environment), if `"VARNAME"` is listed in the
151151
`envsubst` attribute. See also `envsubst`.
152152
""",
153153
),
154+
"extra_hub_aliases": attr.string_list_dict(
155+
doc = """\
156+
Extra aliases to make for specific wheels in the hub repo. This is useful when
157+
paired with the {attr}`whl_modifications`.
158+
159+
:::{versionadded} 0.38.0
160+
:::
161+
""",
162+
mandatory = False,
163+
),
154164
"isolated": attr.bool(
155165
doc = """\
156166
Whether or not to pass the [--isolated](https://pip.pypa.io/en/stable/cli/pip/#cmdoption-isolated) flag to

‎python/private/pypi/extension.bzl

Copy file name to clipboardExpand all lines: python/private/pypi/extension.bzl
-10Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -750,16 +750,6 @@ The indexes must support Simple API as described here:
750750
https://packaging.python.org/en/latest/specifications/simple-repository-api/
751751
""",
752752
),
753-
"extra_hub_aliases": attr.string_list_dict(
754-
doc = """\
755-
Extra aliases to make for specific wheels in the hub repo. This is useful when
756-
paired with the {attr}`whl_modifications`.
757-
758-
:::{versionadded} 0.38.0
759-
:::
760-
""",
761-
mandatory = False,
762-
),
763753
"hub_name": attr.string(
764754
mandatory = True,
765755
doc = """

‎python/private/pypi/pip_repository.bzl

Copy file name to clipboardExpand all lines: python/private/pypi/pip_repository.bzl
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ def _pip_repository_impl(rctx):
177177
pkg: [whl_alias(repo = rctx.attr.name + "_" + pkg)]
178178
for pkg in bzl_packages or []
179179
},
180+
extra_hub_aliases = rctx.attr.extra_hub_aliases,
180181
)
181182
for path, contents in aliases.items():
182183
rctx.file(path, contents)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.