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.
This commit is contained in:
@@ -59,6 +59,7 @@ def check_wheel(path: Path) -> None:
|
|||||||
f"{dist_info}/METADATA",
|
f"{dist_info}/METADATA",
|
||||||
f"{dist_info}/WHEEL",
|
f"{dist_info}/WHEEL",
|
||||||
f"{dist_info}/licenses/LICENSE",
|
f"{dist_info}/licenses/LICENSE",
|
||||||
|
f"{dist_info}/licenses/NOTICE",
|
||||||
f"{dist_info}/RECORD",
|
f"{dist_info}/RECORD",
|
||||||
}
|
}
|
||||||
if metadata != expected_metadata:
|
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}/")}
|
relative = {name[len(root) + 1 :] for name in names if name.startswith(f"{root}/")}
|
||||||
required = _tracked_files() | {
|
required = _tracked_files() | {
|
||||||
"LICENSE",
|
"LICENSE",
|
||||||
|
"NOTICE",
|
||||||
"PKG-INFO",
|
"PKG-INFO",
|
||||||
"README.md",
|
"README.md",
|
||||||
"pyproject.toml",
|
"pyproject.toml",
|
||||||
|
|||||||
Reference in New Issue
Block a user