feat: make the {project} placeholder available to repair-wheel-command (#2589)

* Make the {project} placeholder available to repair-wheel-command

* Add separate test for {project} placeholder in repair-wheel-command

* Make the {project} placeholder available to repair-wheel-command

* reduce duplicated work in tests

* Use a valid wheel filename for the post-repair name

---------

Co-authored-by: Joe Rickerby <joerick@mac.com>
This commit is contained in:
Alexander Condello
2025-11-10 20:59:32 -05:00
committed by GitHub
co-authored by Joe Rickerby
parent ccbae30b53
commit f6c810852d
7 changed files with 58 additions and 2 deletions
+5 -1
View File
@@ -447,7 +447,11 @@ def repair_wheel(state: BuildState, built_wheel: Path) -> Path:
if state.options.repair_command:
shell(
prepare_command(
state.options.repair_command, wheel=built_wheel, dest_dir=repaired_wheel_dir
state.options.repair_command,
wheel=built_wheel,
dest_dir=repaired_wheel_dir,
package=state.options.package_dir,
project=".",
),
env=state.build_env,
)