Repository navigation
chore: full third-party licence notices - #20
Merged
Merged
Conversation
setup/notices.py writes THIRD-PARTY-NOTICES.txt from the installed Python packages, the production npm packages, the Rust crates in Cargo.lock and the downloaded ffmpeg build, and its check mode runs in CI. The file ships in every installer and the engine, and Settings shows it under Licences and notices. Tests cover the /api/notices route and the check, which names a missing section, a stale section and a missing file.
Vendor the upstream licence texts (with SOURCE.txt) for the 44 packages whose published distribution carries none into setup/licence_texts, have setup/notices.py fill those sections from them with a note naming the source, and make --check fail when a vendored text is left unused.
setup/licence_texts is a folder of vendored licence files. The shell syntax step ran bash -n on it (exit 126) and the icon generation test tried to read it as a file.
Main already carried the notices generator; this branch's version adds the vendored licence texts on top, so setup/notices.py is the branch's. THIRD-PARTY-NOTICES.txt is regenerated from the merged requirements, so it lists main's new packages (pypdf, pypdfium2, brotli, fonttools, resvg-py, lottie-web) and keeps the vendored texts. The notices test checks both sides' sample lines.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
python setup/notices.py --checkin the CI test job.Tests
How to ship