File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -202,14 +202,14 @@ def print_summary(self) -> None:
202
202
string_io = io .StringIO ()
203
203
ioprint = functools .partial (print , file = string_io )
204
204
ioprint ("## 🎡: Wheels\n " )
205
- ioprint ("| Identifier | Wheel | Size | Time |" )
206
- ioprint ("|===|===|===|=== |" )
205
+ ioprint ("| Identifier | Size | Time | Wheel |" )
206
+ ioprint ("| ---------- | ---- | ---- | ----- |" )
207
207
for ident , filename , duration in self .summary :
208
208
if filename :
209
209
size_mb = filename .stat ().st_size / 1024 ** 2
210
- ioprint (f"| { ident } | { filename . name } | { size_mb :.2f } MB | { duration } |" )
210
+ ioprint (f"| ` { ident } ` | { size_mb :.2f } MB | { duration :.0f } s | ` { filename . name } ` |" )
211
211
else :
212
- ioprint (f"| { ident } | test only | --- | { duration } |" )
212
+ ioprint (f"| ` { ident } ` | --- | { duration :.0f } s | test only |" )
213
213
214
214
if self .summary_mode == "github" :
215
215
Path (os .environ ["GITHUB_STEP_SUMMARY" ]).write_text (
Original file line number Diff line number Diff line change 3
3
import json
4
4
import os
5
5
import shutil
6
+ import subprocess
6
7
import sys
7
8
import tomllib
8
9
import typing
@@ -445,6 +446,7 @@ def build(options: Options, tmp_path: Path) -> None:
445
446
dest_dir = repaired_wheel_dir ,
446
447
)
447
448
shell (repair_command_prepared , env = env )
449
+ log .step_end ()
448
450
else :
449
451
shutil .move (str (built_wheel ), repaired_wheel_dir )
450
452
@@ -538,6 +540,7 @@ def build(options: Options, tmp_path: Path) -> None:
538
540
shell (test_command_prepared , cwd = test_cwd , env = virtualenv_env )
539
541
540
542
# we're all done here; move it to output (overwrite existing)
543
+ output_wheel : Path | None = None
541
544
if compatible_wheel is None :
542
545
output_wheel = build_options .output_dir .joinpath (repaired_wheel .name )
543
546
moved_wheel = move_file (repaired_wheel , output_wheel )
@@ -546,6 +549,8 @@ def build(options: Options, tmp_path: Path) -> None:
546
549
f"{ repaired_wheel } was moved to { moved_wheel } instead of { output_wheel } "
547
550
)
548
551
built_wheels .append (output_wheel )
552
+ log .build_end (output_wheel )
549
553
550
- finally :
551
- pass
554
+ except subprocess .CalledProcessError as error :
555
+ msg = f"Command { error .cmd } failed with code { error .returncode } . { error .stdout or '' } "
556
+ raise errors .FatalError (msg ) from error
You can’t perform that action at this time.
0 commit comments