File tree 3 files changed +16
-6
lines changed
3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ Release Notes
5
5
6
6
- Fixed platform tag detection for GraalPy and 32-bit python running on an aarch64
7
7
kernel (PR by Matthieu Darbois)
8
+ - Fixed ``wheel tags `` to not list directories in ``RECORD `` files
9
+ (PR by Mike Taves)
8
10
9
11
**0.41.1 (2023-08-05) **
10
12
Original file line number Diff line number Diff line change @@ -120,6 +120,8 @@ def tags(
120
120
) as fout :
121
121
fout .comment = fin .comment # preserve the comment
122
122
for item in fin .infolist ():
123
+ if item .is_dir ():
124
+ continue
123
125
if item .filename == f .dist_info_path + "/RECORD" :
124
126
continue
125
127
if item .filename == f .dist_info_path + "/WHEEL" :
Original file line number Diff line number Diff line change @@ -222,11 +222,17 @@ def test_permission_bits(capsys, wheelpath):
222
222
with ZipFile (str (output_file ), "r" ) as outf :
223
223
with ZipFile (str (wheelpath ), "r" ) as inf :
224
224
for member in inf .namelist ():
225
- if not member .endswith ("/RECORD" ):
226
- out_attr = outf .getinfo (member ).external_attr
227
- inf_attr = inf .getinfo (member ).external_attr
228
- assert (
229
- out_attr == inf_attr
230
- ), f"{ member } 0x{ out_attr :012o} != 0x{ inf_attr :012o} "
225
+ member_info = inf .getinfo (member )
226
+ if member_info .is_dir ():
227
+ continue
228
+
229
+ if member_info .filename .endswith ("/RECORD" ):
230
+ continue
231
+
232
+ out_attr = outf .getinfo (member ).external_attr
233
+ inf_attr = member_info .external_attr
234
+ assert (
235
+ out_attr == inf_attr
236
+ ), f"{ member } 0x{ out_attr :012o} != 0x{ inf_attr :012o} "
231
237
232
238
output_file .unlink ()
You can’t perform that action at this time.
0 commit comments