From 33b7b2e96c5b1f6531d1388c56c76350a004bea6 Mon Sep 17 00:00:00 2001 From: Benjy Weinberger Date: Mon, 6 Jun 2022 17:22:23 +0300 Subject: [PATCH] Update release helper to handle the new MacOS ARM64 wheel. (#15748) [ci skip-rust] [ci skip-build-wheels] --- build-support/bin/_release_helper.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build-support/bin/_release_helper.py b/build-support/bin/_release_helper.py index 951da99b797..ae2997b81c8 100644 --- a/build-support/bin/_release_helper.py +++ b/build-support/bin/_release_helper.py @@ -1239,13 +1239,14 @@ def check_pants_wheels_present(check_dir: str | Path) -> None: if not local_files: missing_packages.append(package.name) continue - if is_cross_platform(local_files) and len(local_files) != 6: - formatted_local_files = ", ".join(f.name for f in local_files) + if is_cross_platform(local_files) and len(local_files) != 7: + formatted_local_files = "\n ".join(sorted(f.name for f in local_files)) missing_packages.append( softwrap( f""" - {package.name} (expected 6 wheels, {{macosx, linux}} x {{cp37m, cp38, cp39}}, - but found {formatted_local_files}) + {package.name}. Expected 7 wheels ({{cp37m, cp38, cp39}} x + {{macosx-x86_64, linux-x86_64}} + cp39-macosx), + but found {len(local_files)}:\n {formatted_local_files} """ ) )