zero last 2 digits (for windows)

This commit is contained in:
Denis Bilenko 2025-03-05 17:27:51 +01:00
parent 0b083e9ffe
commit 2eb8f8ae58
8 changed files with 22 additions and 22 deletions

View File

@ -1,22 +1,22 @@
=== Test prebuilt wheel: === Test prebuilt wheel:
>>> setmtime.py 2025-03-05 15:07:33.123456789 my_test_code-0.0.1-py3-none-any.whl >>> setmtime.py 2025-03-05 15:07:33.123456700 my_test_code-0.0.1-py3-none-any.whl
>>> [CLI] selftest patchwhl my_test_code-0.0.1-py3-none-any.whl >>> [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+1741187253123456789-py3-none-any.whl Warn: Patched whl: my_test_code-0.0.1-py3-none-any.whl -> my_test_code-0.0.1+1741187253123456700-py3-none-any.whl
>>> diff.py original output >>> diff.py original output
--- original/my_test_code-0.0.1+1741187253123456789.dist-info/METADATA --- original/my_test_code-0.0.1+1741187253123456700.dist-info/METADATA
+++ output/my_test_code-0.0.1+1741187253123456789.dist-info/METADATA +++ output/my_test_code-0.0.1+1741187253123456700.dist-info/METADATA
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
Metadata-Version: 2.1 Metadata-Version: 2.1
Name: my-test-code Name: my-test-code
-Version: 0.0.1 -Version: 0.0.1
+Version: 0.0.1+1741187253123456789 +Version: 0.0.1+1741187253123456700
Summary: my test wheel Summary: my test wheel
Home-page: https://databricks.com Home-page: https://databricks.com
--- original/my_test_code-0.0.1+1741187253123456789.dist-info/RECORD --- original/my_test_code-0.0.1+1741187253123456700.dist-info/RECORD
+++ output/my_test_code-0.0.1+1741187253123456789.dist-info/RECORD +++ output/my_test_code-0.0.1+1741187253123456700.dist-info/RECORD
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
src/__init__.py,sha256=BRmKeYehopKv4NG_SFa7t6wn248RrPHJivu7DM1R-Rw,48 src/__init__.py,sha256=BRmKeYehopKv4NG_SFa7t6wn248RrPHJivu7DM1R-Rw,48
src/__main__.py,sha256=8TtsnLsaJEM35Y4L8ocrv-qfxusgYpRL2HPyYiabHng,242 src/__main__.py,sha256=8TtsnLsaJEM35Y4L8ocrv-qfxusgYpRL2HPyYiabHng,242
@ -25,8 +25,8 @@ Warn: Patched whl: my_test_code-0.0.1-py3-none-any.whl -> my_test_code-0.0.1+174
-my_test_code-0.0.1.dist-info/entry_points.txt,sha256=oDWOW9SsBlk4Uejj1ftYPBxfhJ5ZJctb4JOUIG1rc-4,34 -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/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4
-my_test_code-0.0.1.dist-info/RECORD,, -my_test_code-0.0.1.dist-info/RECORD,,
+my_test_code-0.0.1+1741187253123456789.dist-info/METADATA,sha256=YfLGWpaVMx10KxwMVciGeTLsNUq_UqlNGa3UuaNc2cM,217 +my_test_code-0.0.1+1741187253123456700.dist-info/METADATA,sha256=H99P2vEwB_hBVPNtPwsXZotaDQzmWEGeSlOtMzWe62U,217
+my_test_code-0.0.1+1741187253123456789.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92 +my_test_code-0.0.1+1741187253123456700.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
+my_test_code-0.0.1+1741187253123456789.dist-info/entry_points.txt,sha256=oDWOW9SsBlk4Uejj1ftYPBxfhJ5ZJctb4JOUIG1rc-4,34 +my_test_code-0.0.1+1741187253123456700.dist-info/entry_points.txt,sha256=oDWOW9SsBlk4Uejj1ftYPBxfhJ5ZJctb4JOUIG1rc-4,34
+my_test_code-0.0.1+1741187253123456789.dist-info/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4 +my_test_code-0.0.1+1741187253123456700.dist-info/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4
+my_test_code-0.0.1+1741187253123456789.dist-info/RECORD,, +my_test_code-0.0.1+1741187253123456700.dist-info/RECORD,,

View File

@ -1,6 +1,6 @@
Metadata-Version: 2.1 Metadata-Version: 2.1
Name: my-test-code Name: my-test-code
Version: 0.0.1+1741187253123456789 Version: 0.0.1+1741187253123456700
Summary: my test wheel Summary: my test wheel
Home-page: https://databricks.com Home-page: https://databricks.com
Author: Databricks Author: Databricks

View File

@ -0,0 +1,7 @@
src/__init__.py,sha256=BRmKeYehopKv4NG_SFa7t6wn248RrPHJivu7DM1R-Rw,48
src/__main__.py,sha256=8TtsnLsaJEM35Y4L8ocrv-qfxusgYpRL2HPyYiabHng,242
my_test_code-0.0.1+1741187253123456700.dist-info/METADATA,sha256=H99P2vEwB_hBVPNtPwsXZotaDQzmWEGeSlOtMzWe62U,217
my_test_code-0.0.1+1741187253123456700.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
my_test_code-0.0.1+1741187253123456700.dist-info/entry_points.txt,sha256=oDWOW9SsBlk4Uejj1ftYPBxfhJ5ZJctb4JOUIG1rc-4,34
my_test_code-0.0.1+1741187253123456700.dist-info/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4
my_test_code-0.0.1+1741187253123456700.dist-info/RECORD,,

View File

@ -1,7 +0,0 @@
src/__init__.py,sha256=BRmKeYehopKv4NG_SFa7t6wn248RrPHJivu7DM1R-Rw,48
src/__main__.py,sha256=8TtsnLsaJEM35Y4L8ocrv-qfxusgYpRL2HPyYiabHng,242
my_test_code-0.0.1+1741187253123456789.dist-info/METADATA,sha256=YfLGWpaVMx10KxwMVciGeTLsNUq_UqlNGa3UuaNc2cM,217
my_test_code-0.0.1+1741187253123456789.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
my_test_code-0.0.1+1741187253123456789.dist-info/entry_points.txt,sha256=oDWOW9SsBlk4Uejj1ftYPBxfhJ5ZJctb4JOUIG1rc-4,34
my_test_code-0.0.1+1741187253123456789.dist-info/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4
my_test_code-0.0.1+1741187253123456789.dist-info/RECORD,,

View File

@ -1,6 +1,6 @@
title "Test prebuilt wheel:" 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 setmtime.py "2025-03-05 15:07:33.123456700" my_test_code-0.0.1-py3-none-any.whl
trace $CLI selftest patchwhl 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 original mkdir output original
@ -9,6 +9,6 @@ unzip -q my_test_code-0.0.1-py3-none-any.whl -d original
rm my_test_code-0.0.1+1*-py3-none-any.whl rm my_test_code-0.0.1+1*-py3-none-any.whl
# rename directory to match so that we can compare contents # 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+1741187253123456789.dist-info mv original/my_test_code-0.0.1.dist-info original/my_test_code-0.0.1+1741187253123456700.dist-info
trace diff.py original output trace diff.py original output
rm -fr original rm -fr original