From 74d78543e1b664106fda824fb9c3305b94ff1480 Mon Sep 17 00:00:00 2001 From: Jack Nagy Date: Fri, 7 Aug 2026 16:50:12 +0100 Subject: [PATCH] chore: allow NOTICE in distribution check allowlist The distribution checker enforces an exact-contents allowlist; add the NOTICE file to the wheel dist-info/licenses expectation and the sdist required set so the packaged trademark notice passes verification. --- tools/check_distribution.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/check_distribution.py b/tools/check_distribution.py index 1e5b01b..3c90961 100755 --- a/tools/check_distribution.py +++ b/tools/check_distribution.py @@ -59,6 +59,7 @@ def check_wheel(path: Path) -> None: f"{dist_info}/METADATA", f"{dist_info}/WHEEL", f"{dist_info}/licenses/LICENSE", + f"{dist_info}/licenses/NOTICE", f"{dist_info}/RECORD", } if metadata != expected_metadata: @@ -83,6 +84,7 @@ def check_sdist(path: Path) -> None: relative = {name[len(root) + 1 :] for name in names if name.startswith(f"{root}/")} required = _tracked_files() | { "LICENSE", + "NOTICE", "PKG-INFO", "README.md", "pyproject.toml",