Skip to content

Commit

Permalink
Use unzip to unpack wheels (#103)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
hynek authored Mar 27, 2024
1 parent b3326f9 commit 739e207
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<details><summary>Wheel contents</summary>\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)
Expand Down

0 comments on commit 739e207

Please sign in to comment.