diff --git a/.github/ci-scripts/upload_wheel_to_s3.py b/.github/ci-scripts/upload_wheel_to_s3.py index f2b2f8824c..db0c1a0335 100644 --- a/.github/ci-scripts/upload_wheel_to_s3.py +++ b/.github/ci-scripts/upload_wheel_to_s3.py @@ -13,13 +13,9 @@ assert path_to_wheel_dir.exists(), f"Path to wheel directory does not exist: {path_to_wheel_dir}" wheelpaths = iter(filepath for filepath in path_to_wheel_dir.iterdir() if filepath.suffix == constants.WHEEL_SUFFIX) - print(f"{platform_substring=}") - def f(wheelpath: Path) -> bool: platform_tag = wheellib.get_platform_tag(wheelpath.name) - print(f"{platform_tag=}") - print(platform_substring in platform_tag) - return True + return platform_substring in platform_tag filtered_wheelpaths: list[Path] = list(filter(f, wheelpaths))