From 739e20786b14b9237f5c4066350a01b854ed82de Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Wed, 27 Mar 2024 11:41:44 +0100 Subject: [PATCH] Use unzip to unpack wheels (#103) * 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. * Add changelog * whitespace --- CHANGELOG.md | 3 +++ action.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b43fc21..01defab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - The action now uses [*uv*](https://github.com/astral-sh/uv) to install its tools to speed up your CI runs. [#86](https://github.com/hynek/build-and-inspect-python-package/pull/86) +- We now use `unzip` to extract wheels, which preserves timestamps in the "Wheel contents" summary. + [#103](https://github.com/hynek/build-and-inspect-python-package/pull/103) + ## [2.0.2](https://github.com/hynek/build-and-inspect-python-package/compare/v2.0.1...v2.0.2) – 2024-03-16 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)