Skip to content

Commit 233ca9d

Browse files
committed
rename
1 parent eb2de67 commit 233ca9d

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

.bazelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# (Note, we cannot use `common --deleted_packages` because the bazel version command doesn't support it)
55
# To update these lines, execute
66
# `bazel run @rules_bazel_integration_test//tools:update_deleted_packages`
7-
build --deleted_packages=examples/build_file_generation,examples/build_file_generation/random_number_generator,examples/bzlmod,examples/bzlmod_build_file_generation,examples/bzlmod_build_file_generation/other_module/other_module/pkg,examples/bzlmod_build_file_generation/runfiles,examples/bzlmod/entry_points,examples/bzlmod/entry_points/tests,examples/bzlmod/libs/my_lib,examples/bzlmod/other_module,examples/bzlmod/other_module/other_module/pkg,examples/bzlmod/patches,examples/bzlmod/py_proto_library,examples/bzlmod/py_proto_library/example.com/another_proto,examples/bzlmod/py_proto_library/example.com/proto,examples/bzlmod/runfiles,examples/bzlmod/tests,examples/bzlmod/tests/other_module,examples/bzlmod/whl_mods,examples/multi_python_versions/libs/my_lib,examples/multi_python_versions/requirements,examples/multi_python_versions/tests,examples/pip_parse,examples/pip_parse_vendored,examples/pip_repository_annotations,examples/py_proto_library,examples/py_proto_library/example.com/another_proto,examples/py_proto_library/example.com/proto,gazelle,gazelle/manifest,gazelle/manifest/generate,gazelle/manifest/hasher,gazelle/manifest/test,gazelle/modules_mapping,gazelle/python,gazelle/pythonconfig,gazelle/python/private,rules_python-repro,tests/integration/compile_pip_requirements,tests/integration/compile_pip_requirements_test_from_external_repo,tests/integration/custom_commands,tests/integration/ignore_root_user_error,tests/integration/ignore_root_user_error/submodule,tests/integration/local_toolchains,tests/integration/pip_parse,tests/integration/pip_parse/empty,tests/integration/py_cc_toolchain_registered,tests/modules/another_module,tests/modules/other,tests/modules/other/nspkg_delta,tests/modules/other/nspkg_gamma,tests/modules/other/nspkg_single,tests/modules/other/simple_v1,tests/modules/other/simple_v2,tests/modules/other/with_external_data,tests/whl_with_build_files/testdata,tests/whl_with_build_files/testdata/somepkg,tests/whl_with_build_files/testdata/somepkg-1.0.dist-info,tests/whl_with_build_files/testdata/somepkg/subpkg
8-
query --deleted_packages=examples/build_file_generation,examples/build_file_generation/random_number_generator,examples/bzlmod,examples/bzlmod_build_file_generation,examples/bzlmod_build_file_generation/other_module/other_module/pkg,examples/bzlmod_build_file_generation/runfiles,examples/bzlmod/entry_points,examples/bzlmod/entry_points/tests,examples/bzlmod/libs/my_lib,examples/bzlmod/other_module,examples/bzlmod/other_module/other_module/pkg,examples/bzlmod/patches,examples/bzlmod/py_proto_library,examples/bzlmod/py_proto_library/example.com/another_proto,examples/bzlmod/py_proto_library/example.com/proto,examples/bzlmod/runfiles,examples/bzlmod/tests,examples/bzlmod/tests/other_module,examples/bzlmod/whl_mods,examples/multi_python_versions/libs/my_lib,examples/multi_python_versions/requirements,examples/multi_python_versions/tests,examples/pip_parse,examples/pip_parse_vendored,examples/pip_repository_annotations,examples/py_proto_library,examples/py_proto_library/example.com/another_proto,examples/py_proto_library/example.com/proto,gazelle,gazelle/manifest,gazelle/manifest/generate,gazelle/manifest/hasher,gazelle/manifest/test,gazelle/modules_mapping,gazelle/python,gazelle/pythonconfig,gazelle/python/private,rules_python-repro,tests/integration/compile_pip_requirements,tests/integration/compile_pip_requirements_test_from_external_repo,tests/integration/custom_commands,tests/integration/ignore_root_user_error,tests/integration/ignore_root_user_error/submodule,tests/integration/local_toolchains,tests/integration/pip_parse,tests/integration/pip_parse/empty,tests/integration/py_cc_toolchain_registered,tests/modules/another_module,tests/modules/other,tests/modules/other/nspkg_delta,tests/modules/other/nspkg_gamma,tests/modules/other/nspkg_single,tests/modules/other/simple_v1,tests/modules/other/simple_v2,tests/modules/other/with_external_data,tests/whl_with_build_files/testdata,tests/whl_with_build_files/testdata/somepkg,tests/whl_with_build_files/testdata/somepkg-1.0.dist-info,tests/whl_with_build_files/testdata/somepkg/subpkg
7+
build --deleted_packages=examples/build_file_generation,examples/build_file_generation/random_number_generator,examples/bzlmod,examples/bzlmod_build_file_generation,examples/bzlmod_build_file_generation/other_module/other_module/pkg,examples/bzlmod_build_file_generation/runfiles,examples/bzlmod/entry_points,examples/bzlmod/entry_points/tests,examples/bzlmod/libs/my_lib,examples/bzlmod/other_module,examples/bzlmod/other_module/other_module/pkg,examples/bzlmod/patches,examples/bzlmod/py_proto_library,examples/bzlmod/py_proto_library/example.com/another_proto,examples/bzlmod/py_proto_library/example.com/proto,examples/bzlmod/runfiles,examples/bzlmod/tests,examples/bzlmod/tests/other_module,examples/bzlmod/whl_mods,examples/multi_python_versions/libs/my_lib,examples/multi_python_versions/requirements,examples/multi_python_versions/tests,examples/pip_parse,examples/pip_parse_vendored,examples/pip_repository_annotations,examples/py_proto_library,examples/py_proto_library/example.com/another_proto,examples/py_proto_library/example.com/proto,gazelle,gazelle/manifest,gazelle/manifest/generate,gazelle/manifest/hasher,gazelle/manifest/test,gazelle/modules_mapping,gazelle/python,gazelle/pythonconfig,gazelle/python/private,tests/integration/compile_pip_requirements,tests/integration/compile_pip_requirements_test_from_external_repo,tests/integration/custom_commands,tests/integration/ignore_root_user_error,tests/integration/ignore_root_user_error/submodule,tests/integration/local_toolchains,tests/integration/pip_parse,tests/integration/pip_parse/empty,tests/integration/py_cc_toolchain_registered,tests/modules/another_module,tests/modules/other,tests/modules/other/nspkg_delta,tests/modules/other/nspkg_gamma,tests/modules/other/nspkg_single,tests/modules/other/simple_v1,tests/modules/other/simple_v2,tests/modules/other/with_external_data,tests/whl_with_build_files/testdata,tests/whl_with_build_files/testdata/somepkg,tests/whl_with_build_files/testdata/somepkg-1.0.dist-info,tests/whl_with_build_files/testdata/somepkg/subpkg
8+
query --deleted_packages=examples/build_file_generation,examples/build_file_generation/random_number_generator,examples/bzlmod,examples/bzlmod_build_file_generation,examples/bzlmod_build_file_generation/other_module/other_module/pkg,examples/bzlmod_build_file_generation/runfiles,examples/bzlmod/entry_points,examples/bzlmod/entry_points/tests,examples/bzlmod/libs/my_lib,examples/bzlmod/other_module,examples/bzlmod/other_module/other_module/pkg,examples/bzlmod/patches,examples/bzlmod/py_proto_library,examples/bzlmod/py_proto_library/example.com/another_proto,examples/bzlmod/py_proto_library/example.com/proto,examples/bzlmod/runfiles,examples/bzlmod/tests,examples/bzlmod/tests/other_module,examples/bzlmod/whl_mods,examples/multi_python_versions/libs/my_lib,examples/multi_python_versions/requirements,examples/multi_python_versions/tests,examples/pip_parse,examples/pip_parse_vendored,examples/pip_repository_annotations,examples/py_proto_library,examples/py_proto_library/example.com/another_proto,examples/py_proto_library/example.com/proto,gazelle,gazelle/manifest,gazelle/manifest/generate,gazelle/manifest/hasher,gazelle/manifest/test,gazelle/modules_mapping,gazelle/python,gazelle/pythonconfig,gazelle/python/private,tests/integration/compile_pip_requirements,tests/integration/compile_pip_requirements_test_from_external_repo,tests/integration/custom_commands,tests/integration/ignore_root_user_error,tests/integration/ignore_root_user_error/submodule,tests/integration/local_toolchains,tests/integration/pip_parse,tests/integration/pip_parse/empty,tests/integration/py_cc_toolchain_registered,tests/modules/another_module,tests/modules/other,tests/modules/other/nspkg_delta,tests/modules/other/nspkg_gamma,tests/modules/other/nspkg_single,tests/modules/other/simple_v1,tests/modules/other/simple_v2,tests/modules/other/with_external_data,tests/whl_with_build_files/testdata,tests/whl_with_build_files/testdata/somepkg,tests/whl_with_build_files/testdata/somepkg-1.0.dist-info,tests/whl_with_build_files/testdata/somepkg/subpkg
99

1010
test --test_output=errors
1111

examples/bzlmod/MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ pip.default(
172172
os_name = "windows",
173173
platform = "windows_aarch64",
174174
platform_tags = ["win_amd64"],
175-
want_abis = [], # default to all ABIs
175+
whl_abi_tags = [], # default to all ABIs
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
@@ -95,7 +95,7 @@ def _platforms(*, python_version, minor_mapping, config):
9595
arch = values.arch_name,
9696
python_version = python_version.string,
9797
),
98-
want_abis = [
98+
whl_abi_tags = [
9999
v.format(
100100
major = python_version.release[0],
101101
minor = python_version.release[1],

python/private/pypi/parse_requirements.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def _add_dists(*, requirement, index_urls, target_platform, logger = None):
419419
whls = whls,
420420
python_version = target_platform.env["python_full_version"],
421421
implementation_name = target_platform.env["implementation_name"],
422-
want_abis = target_platform.want_abis,
422+
whl_abi_tags = target_platform.whl_abi_tags,
423423
platforms = target_platform.platform_tags,
424424
logger = logger,
425425
) or sdist

python/private/pypi/select_whl.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def _get_priority(*, tag, values, allow_wildcard = True):
2020

2121
return None
2222

23-
def select_whl(*, whls, python_version, platforms, want_abis, implementation_name = "cpython", limit = 1, logger = None):
23+
def select_whl(*, whls, python_version, platforms, whl_abi_tags, implementation_name = "cpython", limit = 1, logger = None):
2424
"""Select a whl that is the most suitable for the given platform.
2525
2626
Args:
@@ -30,7 +30,7 @@ def select_whl(*, whls, python_version, platforms, want_abis, implementation_nam
3030
platforms: {type}`list[str]` the target platform identifiers that may contain
3131
a single `*` character.
3232
implementation_name: {type}`str` the `implementation_name` from the target_platform env.
33-
want_abis: {type}`str` the ABIs that the target_platform is compatible with.
33+
whl_abi_tags: {type}`str` the ABIs that the target_platform is compatible with.
3434
limit: {type}`int` number of wheels to return. Defaults to 1.
3535
logger: {type}`struct` the logger instance.
3636
@@ -76,14 +76,14 @@ def select_whl(*, whls, python_version, platforms, want_abis, implementation_nam
7676

7777
abi_priority = _get_priority(
7878
tag = parsed.abi_tag,
79-
values = want_abis,
79+
values = whl_abi_tags,
8080
allow_wildcard = False,
8181
)
8282
if abi_priority == None:
8383
if logger:
8484
logger.debug(lambda: "The abi '{}' does not match given list: {}".format(
8585
parsed.abi_tag,
86-
want_abis,
86+
whl_abi_tags,
8787
))
8888
continue
8989
platform_priority = _get_priority(

tests/pypi/parse_requirements/parse_requirements_tests.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ def _test_overlapping_shas_with_index_results(env):
531531
os = "linux",
532532
arch = "x86_64",
533533
),
534-
want_abis = ["none"],
534+
whl_abi_tags = ["none"],
535535
),
536536
"cp39_osx_x86_64": struct(
537537
platform_tags = ["macosx_*"],
@@ -540,7 +540,7 @@ def _test_overlapping_shas_with_index_results(env):
540540
os = "osx",
541541
arch = "x86_64",
542542
),
543-
want_abis = ["none"],
543+
whl_abi_tags = ["none"],
544544
),
545545
},
546546
get_index_urls = lambda _, __: {

tests/pypi/select_whl/select_whl_tests.bzl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def _test_simplest(env):
106106
got = _select_whl(
107107
whls = whls,
108108
platforms = ["any"],
109-
want_abis = ["abi3"],
109+
whl_abi_tags = ["abi3"],
110110
python_version = "3.0",
111111
)
112112
_match(
@@ -131,7 +131,7 @@ def _test_select_by_supported_py_version(env):
131131
got = _select_whl(
132132
whls = whls,
133133
platforms = ["any"],
134-
want_abis = ["abi3"],
134+
whl_abi_tags = ["abi3"],
135135
python_version = "3.{}".format(minor_version),
136136
)
137137
_match(env, [got], match)
@@ -153,7 +153,7 @@ def _test_select_by_supported_cp_version(env):
153153
got = _select_whl(
154154
whls = whls,
155155
platforms = ["any"],
156-
want_abis = ["abi3"],
156+
whl_abi_tags = ["abi3"],
157157
python_version = "3.{}".format(minor_version),
158158
)
159159
_match(env, [got], match)
@@ -175,7 +175,7 @@ def _test_supported_cp_version_manylinux(env):
175175
got = _select_whl(
176176
whls = whls,
177177
platforms = ["manylinux_x86_64"],
178-
want_abis = ["none"],
178+
whl_abi_tags = ["none"],
179179
python_version = "3.{}".format(minor_version),
180180
)
181181
_match(env, [got], match)
@@ -187,7 +187,7 @@ def _test_ignore_unsupported(env):
187187
got = _select_whl(
188188
whls = whls,
189189
platforms = ["any"],
190-
want_abis = ["none"],
190+
whl_abi_tags = ["none"],
191191
python_version = "3.0",
192192
)
193193
if got:
@@ -205,7 +205,7 @@ def _test_match_abi_and_not_py_version(env):
205205
got = _select_whl(
206206
whls = whls,
207207
platforms = platforms,
208-
want_abis = ["abi3", "cp37m"],
208+
whl_abi_tags = ["abi3", "cp37m"],
209209
python_version = "3.7",
210210
)
211211
_match(
@@ -217,7 +217,7 @@ def _test_match_abi_and_not_py_version(env):
217217
got = _select_whl(
218218
whls = whls,
219219
platforms = platforms[::-1],
220-
want_abis = ["abi3", "cp37m"],
220+
whl_abi_tags = ["abi3", "cp37m"],
221221
python_version = "3.7",
222222
)
223223
_match(
@@ -237,7 +237,7 @@ def _test_select_filename_with_many_tags(env):
237237
"musllinux_*_i686",
238238
"manylinux_*_i686",
239239
],
240-
want_abis = ["none", "abi3", "cp39"],
240+
whl_abi_tags = ["none", "abi3", "cp39"],
241241
python_version = "3.9",
242242
limit = 5,
243243
)
@@ -261,7 +261,7 @@ def _test_freethreaded_wheels(env):
261261
"any",
262262
"musllinux_*_x86_64",
263263
],
264-
want_abis = ["none", "abi3", "cp313", "cp313t"],
264+
whl_abi_tags = ["none", "abi3", "cp313", "cp313t"],
265265
python_version = "3.13",
266266
limit = 8,
267267
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy