@@ -44,15 +44,15 @@ def _get_path(self, filename):
44
44
else :
45
45
return path
46
46
47
- def assertFileSha256Equal (self , filename , sha ):
47
+ def assertFileSha256Equal (self , filename , want ):
48
48
hash = hashlib .sha256 ()
49
49
with open (filename , "rb" ) as f :
50
50
while True :
51
51
buf = f .read (2 ** 20 )
52
52
if not buf :
53
53
break
54
54
hash .update (buf )
55
- self .assertEqual (hash .hexdigest (), sha )
55
+ self .assertEqual (want , hash .hexdigest ())
56
56
57
57
def assertAllEntriesHasReproducibleMetadata (self , zf ):
58
58
for zinfo in zf .infolist ():
@@ -78,7 +78,7 @@ def test_py_library_wheel(self):
78
78
],
79
79
)
80
80
self .assertFileSha256Equal (
81
- filename , "6da8e06a3fdd9ae5ee9fa8f796610723c05a4b0d7fde0ec5179401e956204139 "
81
+ filename , "2818e70fdebd148934f41820f8c54d5d7676d783c0d66c7c8af2ee9141e7ddc7 "
82
82
)
83
83
84
84
def test_py_package_wheel (self ):
@@ -100,7 +100,7 @@ def test_py_package_wheel(self):
100
100
],
101
101
)
102
102
self .assertFileSha256Equal (
103
- filename , "2948b0b5e0aa421e0b40f78b74018bbc2f218165f211da0a4609e431e8e52bee "
103
+ filename , "273e27adf9bf90287a42ac911dcece8aa95f2905c37d786725477b26de23627c "
104
104
)
105
105
106
106
def test_customized_wheel (self ):
@@ -135,16 +135,16 @@ def test_customized_wheel(self):
135
135
record_contents ,
136
136
# The entries are guaranteed to be sorted.
137
137
b"""\
138
- example_customized-0.0.1.dist-info/METADATA,sha256=QYQcDJFQSIqan8eiXqL67bqsUfgEAwf2hoK_Lgi1S-0,559
139
- example_customized-0.0.1.dist-info/NOTICE,sha256=Xpdw-FXET1IRgZ_wTkx1YQfo1-alET0FVf6V1LXO4js,76
140
- example_customized-0.0.1.dist-info/README,sha256=WmOFwZ3Jga1bHG3JiGRsUheb4UbLffUxyTdHczS27-o,40
141
- example_customized-0.0.1.dist-info/RECORD,,
142
- example_customized-0.0.1.dist-info/WHEEL,sha256=sobxWSyDDkdg_rinUth-jxhXHqoNqlmNMJY3aTZn2Us,91
143
- example_customized-0.0.1.dist-info/entry_points.txt,sha256=pqzpbQ8MMorrJ3Jp0ntmpZcuvfByyqzMXXi2UujuXD0,137
144
138
examples/wheel/lib/data.txt,sha256=9vJKEdfLu8bZRArKLroPZJh1XKkK3qFMXiM79MBL2Sg,12
145
139
examples/wheel/lib/module_with_data.py,sha256=8s0Khhcqz3yVsBKv2IB5u4l4TMKh7-c_V6p65WVHPms,637
146
140
examples/wheel/lib/simple_module.py,sha256=z2hwciab_XPNIBNH8B1Q5fYgnJvQTeYf0ZQJpY8yLLY,637
147
141
examples/wheel/main.py,sha256=sgg5iWN_9inYBjm6_Zw27hYdmo-l24fA-2rfphT-IlY,909
142
+ example_customized-0.0.1.dist-info/WHEEL,sha256=sobxWSyDDkdg_rinUth-jxhXHqoNqlmNMJY3aTZn2Us,91
143
+ example_customized-0.0.1.dist-info/METADATA,sha256=QYQcDJFQSIqan8eiXqL67bqsUfgEAwf2hoK_Lgi1S-0,559
144
+ example_customized-0.0.1.dist-info/entry_points.txt,sha256=pqzpbQ8MMorrJ3Jp0ntmpZcuvfByyqzMXXi2UujuXD0,137
145
+ example_customized-0.0.1.dist-info/NOTICE,sha256=Xpdw-FXET1IRgZ_wTkx1YQfo1-alET0FVf6V1LXO4js,76
146
+ example_customized-0.0.1.dist-info/README,sha256=WmOFwZ3Jga1bHG3JiGRsUheb4UbLffUxyTdHczS27-o,40
147
+ example_customized-0.0.1.dist-info/RECORD,,
148
148
""" ,
149
149
)
150
150
self .assertEqual (
@@ -189,7 +189,7 @@ def test_customized_wheel(self):
189
189
second = second.main:s""" ,
190
190
)
191
191
self .assertFileSha256Equal (
192
- filename , "66f0c1bfe2cedb2f4cf08d4fe955096860186c0a2f3524e0cb02387a55ac3e63 "
192
+ filename , "48eed93258bba0bb366c879b77917d947267d89e7e60005d1766d844fb909118 "
193
193
)
194
194
195
195
def test_legacy_filename_escaping (self ):
@@ -227,7 +227,7 @@ def test_legacy_filename_escaping(self):
227
227
""" ,
228
228
)
229
229
self .assertFileSha256Equal (
230
- filename , "593c6ab58627f2446d0f1ef2956fd6d42104eedce4493c72d462f7ebf8cb74fa "
230
+ filename , "ace5fab6458f8c3b4b50801b8e8214288bba786472e81547fced743a67531312 "
231
231
)
232
232
233
233
def test_filename_escaping (self ):
@@ -293,7 +293,7 @@ def test_custom_package_root_wheel(self):
293
293
for line in record_contents .splitlines ():
294
294
self .assertFalse (line .startswith ("/" ))
295
295
self .assertFileSha256Equal (
296
- filename , "1b1fa3a4e840211084ef80049d07947b845c99bedb2778496d30e0c1524686ac "
296
+ filename , "16e0345c102c6866fed34999d8de5aed7f351adbf372b27adef3bc15161db65e "
297
297
)
298
298
299
299
def test_custom_package_root_multi_prefix_wheel (self ):
@@ -324,7 +324,7 @@ def test_custom_package_root_multi_prefix_wheel(self):
324
324
for line in record_contents .splitlines ():
325
325
self .assertFalse (line .startswith ("/" ))
326
326
self .assertFileSha256Equal (
327
- filename , "f0422d7a338de3c76bf2525927fd93c0f47f2e9c60ecc0944e3e32b642c28137 "
327
+ filename , "d2031eb21c69e290db5eac76b0dc026858e9dbdb3da2dc0314e4e9f69eab2e1a "
328
328
)
329
329
330
330
def test_custom_package_root_multi_prefix_reverse_order_wheel (self ):
@@ -355,7 +355,7 @@ def test_custom_package_root_multi_prefix_reverse_order_wheel(self):
355
355
for line in record_contents .splitlines ():
356
356
self .assertFalse (line .startswith ("/" ))
357
357
self .assertFileSha256Equal (
358
- filename , "4f9e8c917b4050f121ac81e9a2bb65723ef09a1b90b35d93792ac3a62a60efa3 "
358
+ filename , "a37b90685600ccfa56cc5405d1e9a3729ed21dfb31c76fd356e491e2af989566 "
359
359
)
360
360
361
361
def test_python_requires_wheel (self ):
@@ -380,7 +380,7 @@ def test_python_requires_wheel(self):
380
380
""" ,
381
381
)
382
382
self .assertFileSha256Equal (
383
- filename , "9bfe8197d379f88715458a75e45c1f521a8b9d3cc43fe19b407c4ab207228b7c "
383
+ filename , "529afa454113572e6cd91f069cc9cfe5c28369f29cd495fff19d0ecce389d8e4 "
384
384
)
385
385
386
386
def test_python_abi3_binary_wheel (self ):
@@ -445,7 +445,7 @@ def test_rule_creates_directory_and_is_included_in_wheel(self):
445
445
],
446
446
)
447
447
self .assertFileSha256Equal (
448
- filename , "8ad5f639cc41ac6ac67eb70f6553a7fdecabaf3a1b952c3134eaea59610c2a64 "
448
+ filename , "cc9484d527075f07651ca0e7dff4a185c1314020726bcad55fe28d1bba0fec2e "
449
449
)
450
450
451
451
def test_rule_expands_workspace_status_keys_in_wheel_metadata (self ):
0 commit comments