docs: add vendored licenses

This commit is contained in:
aclist committed 2026-06-03 15:06:48 +09:00
1 parent dac02d75f6
commit 3e3a86f985
8 files changed
+986

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
from pathlib import Path
def concat_license() -> str:
root = Path(__file__).resolve().parents[1]
licenses = root.joinpath("licenses")
combined = ""
for _dir in licenses.iterdir():
docs = _dir.glob("*.md")
doc = list(docs)[0]
header = f"\n--- The verbatim license for bundled dependency '{_dir.name}' follows ---\n\n"
combined += header
combined += doc.read_text()
return combined