Skip to content

Commit 7c0d654

Browse files
Make license compliance failure a RuntimeError
1 parent bc8fde1 commit 7c0d654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: make_wheels.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def write_ziglang_wheel(out_dir, *, version, platform, archive):
196196
# 2. Check for potentially missing license files
197197
extra_licenses = potential_extra_licenses - set(required_license_paths)
198198
if extra_licenses:
199-
print(f"\033[93mWarning: found additional potential license files in the Zig archive but not included in the metadata: {', '.join(sorted(extra_licenses))} "
199+
raise RuntimeError(f"\033[93mFound additional potential license files in the Zig archive but not included in the metadata: {', '.join(sorted(extra_licenses))} "
200200
"\nPlease consider adding these to the license paths if they should be included.\033[0m")
201201

202202
with open('README.pypi.md') as f:

0 commit comments

Comments
 (0)