From 63e6d623c05c21b9a38056b7b94dfc10aea1e70c Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Wed, 5 Mar 2025 15:34:24 +0100 Subject: [PATCH] show diff between original and new --- acceptance/cmd/patchwhl/output.txt | 27 +++++++++++++++++++++++++++ acceptance/cmd/patchwhl/script | 11 +++++++---- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/acceptance/cmd/patchwhl/output.txt b/acceptance/cmd/patchwhl/output.txt index 454a19bf2..06157b5ef 100644 --- a/acceptance/cmd/patchwhl/output.txt +++ b/acceptance/cmd/patchwhl/output.txt @@ -4,3 +4,30 @@ >>> [CLI] selftest patchwhl my_test_code-0.0.1-py3-none-any.whl Warn: Patched whl: my_test_code-0.0.1-py3-none-any.whl -> my_test_code-0.0.1+2025030514073312-py3-none-any.whl + +>>> diff.py original output +--- original/my_test_code-0.0.1+2025030514073312.dist-info/METADATA ++++ output/my_test_code-0.0.1+2025030514073312.dist-info/METADATA +@@ -1,5 +1,5 @@ + Metadata-Version: 2.1 + Name: my-test-code +-Version: 0.0.1 ++Version: 0.0.1+2025030514073312 + Summary: my test wheel + Home-page: https://databricks.com +--- original/my_test_code-0.0.1+2025030514073312.dist-info/RECORD ++++ output/my_test_code-0.0.1+2025030514073312.dist-info/RECORD +@@ -1,7 +1,8 @@ + src/__init__.py,sha256=BRmKeYehopKv4NG_SFa7t6wn248RrPHJivu7DM1R-Rw,48 + src/__main__.py,sha256=8TtsnLsaJEM35Y4L8ocrv-qfxusgYpRL2HPyYiabHng,242 +-my_test_code-0.0.1.dist-info/METADATA,sha256=6fyVq4hexXGUP_J2mB1CI-ijZ6CenvKNIlHx0bKPRJ0,197 +-my_test_code-0.0.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92 +-my_test_code-0.0.1.dist-info/entry_points.txt,sha256=oDWOW9SsBlk4Uejj1ftYPBxfhJ5ZJctb4JOUIG1rc-4,34 +-my_test_code-0.0.1.dist-info/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4 +-my_test_code-0.0.1.dist-info/RECORD,, ++my_test_code-0.0.1+2025030514073312.dist-info/METADATA,sha256=nidQMSt6OxDHKdNCQGq1Kv_AmJa1ldwCMHRqPk2TFD8,214 ++my_test_code-0.0.1+2025030514073312.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92 ++my_test_code-0.0.1+2025030514073312.dist-info/entry_points.txt,sha256=oDWOW9SsBlk4Uejj1ftYPBxfhJ5ZJctb4JOUIG1rc-4,34 ++my_test_code-0.0.1+2025030514073312.dist-info/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4 ++my_test_code-0.0.1+2025030514073312.dist-info/RECORD,, ++ diff --git a/acceptance/cmd/patchwhl/script b/acceptance/cmd/patchwhl/script index b9e0dd5d4..707294e77 100644 --- a/acceptance/cmd/patchwhl/script +++ b/acceptance/cmd/patchwhl/script @@ -3,7 +3,10 @@ title "Test prebuilt wheel:" trace setmtime.py "2025-03-05 15:07:33.123456789" my_test_code-0.0.1-py3-none-any.whl trace $CLI selftest patchwhl my_test_code-0.0.1-py3-none-any.whl -mkdir output -cd output -unzip -q ../my_test_code-0.0.1+2025030514073312-py3-none-any.whl -rm ../my_test_code-0.0.1+2025030514073312-py3-none-any.whl +mkdir output original +unzip -q my_test_code-0.0.1+2025030514073312-py3-none-any.whl -d output +unzip -q my_test_code-0.0.1-py3-none-any.whl -d original + +# rename directory to match so that we can compare contents +mv original/my_test_code-0.0.1.dist-info original/my_test_code-0.0.1+2025030514073312.dist-info +trace diff.py original output