MeshTerm 0.3.4
Installers / windows-x64 (push) Canceled after 0s
Installers / macos-x64 (push) Canceled after 0s
Installers / macos-arm64 (push) Canceled after 0s
Installers / linux-x64 (push) Canceled after 0s
Installers / linux-arm64 (push) Canceled after 0s
GitHub release / build (push) Canceled after 0s
GitHub release / create the release (push) Canceled after 0s

The macOS installers of 0.3.3 never built: the notices step refused pyobjc-core and
pyobjc-framework-libdispatch, whose wheels ship no licence text. Their MIT text is vendored
now, and a test checks every vendored path on every platform.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Jean-Pierre MartineauandClaude Fable 5.1 committed 2026-09-13 15:50:53 -04:00
1 parent 48f975b33b
commit bca1c83dcd
7 files changed
+76 -9

No files matched your search

+16
View File
@@ -146,3 +146,19 @@ def test_write_third_party_notices_writes_utf8_lf(tmp_path: Path) -> None:
raw = out.read_bytes()
assert b"\r\n" not in raw
assert raw.decode("utf-8") == notices.render(notices.collect_notices())
def test_every_vendored_license_gap_has_its_file() -> None:
"""A gap-table entry whose file is missing would fail only on the platform that hits it.
The pyobjc entries are exercised by a macOS build alone and the winrt ones by a
Windows build alone, so a typo in a path would surface on a release runner rather
than here. Check every entry on every platform: the file exists, is non-empty, and
the key is in the canonical (lowercase, hyphenated) form ``collect_notices`` looks up.
"""
for name, paths in notices._VENDORED_LICENSE_GAPS.items():
assert name == name.lower().replace("_", "-"), name
for rel in paths:
path = Path(notices.__file__).parent / rel
assert path.is_file(), f"{name}: {rel} is missing"
assert path.read_text(encoding="utf-8").strip(), f"{name}: {rel} is empty"