fix: not skipping the tests stops the copy (Windows ARM) (#1377)
fix: not skipping the tests stops the copy Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
@@ -488,20 +488,19 @@ def build(options: Options, tmp_path: Path) -> None:
|
|||||||
if repaired_wheel.name in {wheel.name for wheel in built_wheels}:
|
if repaired_wheel.name in {wheel.name for wheel in built_wheels}:
|
||||||
raise AlreadyBuiltWheelError(repaired_wheel.name)
|
raise AlreadyBuiltWheelError(repaired_wheel.name)
|
||||||
|
|
||||||
if build_options.test_command and options.globals.test_selector(config.identifier):
|
test_selected = options.globals.test_selector(config.identifier)
|
||||||
if config.arch == "ARM64" != platform_module.machine():
|
if test_selected and config.arch == "ARM64" != platform_module.machine():
|
||||||
log.warning(
|
log.warning(
|
||||||
unwrap(
|
unwrap(
|
||||||
"""
|
"""
|
||||||
While arm64 wheels can be built on other platforms, they cannot
|
While arm64 wheels can be built on other platforms, they cannot
|
||||||
be tested. An arm64 runner is required. To silence this warning,
|
be tested. An arm64 runner is required. To silence this warning,
|
||||||
set `CIBW_TEST_SKIP: *-win_arm64`.
|
set `CIBW_TEST_SKIP: *-win_arm64`.
|
||||||
"""
|
"""
|
||||||
)
|
|
||||||
)
|
)
|
||||||
# skip this test
|
)
|
||||||
continue
|
# skip this test
|
||||||
|
elif test_selected and build_options.test_command:
|
||||||
log.step("Testing wheel...")
|
log.step("Testing wheel...")
|
||||||
# set up a virtual environment to install and test from, to make sure
|
# set up a virtual environment to install and test from, to make sure
|
||||||
# there are no dependencies that were pulled in at build time.
|
# there are no dependencies that were pulled in at build time.
|
||||||
|
|||||||
Reference in New Issue
Block a user