Skip to content

Commit 572c8a2

Browse files
committed
Use POSIX paths for license metadata in wheels
1 parent 1ac8135 commit 572c8a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/cibw_repair_wheel_licenses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def brackets(s: str) -> str:
196196
raise ValueError("Could not find License-File in METADATA")
197197

198198
index = lines.index(license_files_lines[-1]) + 1
199-
new_lines = [f"License-File: {f}\n" for f in license_files.values()]
199+
new_lines = [f"License-File: {f.as_posix()}\n" for f in license_files.values()]
200200
lines = lines[:index] + new_lines + lines[index:]
201201

202202
print("Writing out METADATA with updated License-Expression and License-File fields")

0 commit comments

Comments
 (0)