Skip to content

Commit be0dcd3

Browse files
committed
Make target_platforms an explicit list argument
1 parent e27879a commit be0dcd3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/private/pypi/hub_builder.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,8 @@ def _whl_repo(
536536
target_platforms = src.target_platforms if is_multiple_versions else []
537537
return struct(
538538
repo_name = pypi_repo_name(
539-
normalize_name(src.distribution),
540-
*target_platforms
539+
whl_name = normalize_name(src.distribution),
540+
target_platforms = target_platforms,
541541
),
542542
args = args,
543543
config_setting = whl_config_setting(

python/private/pypi/whl_repo_name.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def whl_repo_name(filename, sha256):
6161

6262
return "_".join(parts)
6363

64-
def pypi_repo_name(whl_name, *target_platforms):
64+
def pypi_repo_name(whl_name, target_platforms = []):
6565
"""Return a valid whl_library given a requirement line.
6666
6767
Args:

0 commit comments

Comments
 (0)