diff --git a/cibuildwheel/logger.py b/cibuildwheel/logger.py index c2b90775d..0f7df826c 100644 --- a/cibuildwheel/logger.py +++ b/cibuildwheel/logger.py @@ -242,11 +242,11 @@ def print_summary(self, *, options: "Options") -> Generator[None, None, None]: github_summary = self._github_step_summary(duration=duration, options=options) Path(summary_path).write_text(filter_ansi_codes(github_summary), encoding="utf-8") - n = len(self.summary) - s = "s" if n > 1 else "" + n_wheels = len([info for info in self.summary if not info.filename]) + s = "s" if n_wheels > 1 else "" duration_str = humanize.naturaldelta(duration) print() - self._start_fold_group(f"{n} wheel{s} produced in {duration_str}") + self._start_fold_group(f"{n_wheels} wheel{s} produced in {duration_str}") for build_info in self.summary: print(" ", build_info) self._end_fold_group() @@ -320,7 +320,7 @@ def _github_step_summary(self, duration: float, options: "Options") -> str: n_wheels = len([b for b in self.summary if b.filename]) wheel_rows = "\n".join( "