Skip to content

Commit a9c2aaa

Browse files
committed
rename to whl_platform_tags
1 parent a142c63 commit a9c2aaa

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

examples/bzlmod/MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ pip.default(
171171
},
172172
os_name = "windows",
173173
platform = "windows_aarch64",
174-
platform_tags = ["win_amd64"],
175174
whl_abi_tags = [], # default to all ABIs
175+
whl_platform_tags = ["win_amd64"],
176176
)
177177

178178
# To fetch pip dependencies, use pip.parse. We can pass in various options,

python/private/pypi/extension.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def _platforms(*, python_version, minor_mapping, config):
102102
)
103103
for v in values.whl_abi_tags
104104
],
105-
platform_tags = values.whl_platform_tags,
105+
whl_platform_tags = values.whl_platform_tags,
106106
)
107107
return platforms
108108

python/private/pypi/parse_requirements.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,6 @@ def _add_dists(*, requirement, index_urls, target_platform, logger = None):
420420
python_version = target_platform.env["python_full_version"],
421421
implementation_name = target_platform.env["implementation_name"],
422422
whl_abi_tags = target_platform.whl_abi_tags,
423-
platforms = target_platform.platform_tags,
423+
platforms = target_platform.whl_platform_tags,
424424
logger = logger,
425425
) or sdist

tests/pypi/parse_requirements/parse_requirements_tests.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,22 +525,22 @@ def _test_overlapping_shas_with_index_results(env):
525525
},
526526
platforms = {
527527
"cp39_linux_x86_64": struct(
528-
platform_tags = ["any"],
529528
env = pep508_env(
530529
python_version = "3.9.0",
531530
os = "linux",
532531
arch = "x86_64",
533532
),
534533
whl_abi_tags = ["none"],
534+
whl_platform_tags = ["any"],
535535
),
536536
"cp39_osx_x86_64": struct(
537-
platform_tags = ["macosx_*"],
538537
env = pep508_env(
539538
python_version = "3.9.0",
540539
os = "osx",
541540
arch = "x86_64",
542541
),
543542
whl_abi_tags = ["none"],
543+
whl_platform_tags = ["macosx_*"],
544544
),
545545
},
546546
get_index_urls = lambda _, __: {

0 commit comments

Comments
 (0)