From d1fd22b5ecda0c5cfec49295400154ffb264c076 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Wed, 27 Mar 2024 11:34:00 +0100 Subject: [PATCH] Use unzip to unpack wheels I have now gotten an heart attack at least twice because `wheel unpack` doesn't preserve the timestamps from the archive. --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index c8426c5..6598cd5 100644 --- a/action.yml +++ b/action.yml @@ -139,7 +139,7 @@ runs: if [[ "${{ inputs.skip-wheel }}" != 'true' ]]; then mkdir -p out/wheels - /tmp/baipp/bin/python -m wheel unpack --dest out/wheels *.whl + unzip *.whl -d out/wheels echo -e '\n
Wheel contents\n' >> $GITHUB_STEP_SUMMARY (cd /tmp/baipp/dist/out/wheels && tree -Da --timefmt="%Y-%m-%dT%H:%M:%SZ" * | sed 's/^/ /' | tee -a $GITHUB_STEP_SUMMARY)