Licences¶
TL;DR
- What is published carries the licences of what it holds (#533).
- Wheels and sdists carry the repository's
LICENSE; the web UI carriesTHIRD_PARTY_NOTICES.txt;check_artifacts.py wheelfails a wheel without either. - In the images, each Python distribution carries its licence, and the
-localmodels' licences are in/opt/exactdocs/models/NOTICE.
| What | Carries | Checked by |
|---|---|---|
wheels and sdists of exactdocs and exactdocs-kernel |
the repository's LICENSE |
tests/ci/test_licenses.py, the release's Build Python distributions job |
| the web UI | THIRD_PARTY_NOTICES.txt |
check_artifacts.py wheel |
| the images | each Python distribution's licence; the -local models' NOTICE |
|
| test data from other projects | its source and licence, beside it |
Wheels and sdists¶
license-filesin eachpyproject.tomlnames theLICENSE.- PEP 639 allows no path outside the package, so each package holds a copy, which
tests/ci/test_licenses.pykeeps equal to the root one.
The web UI¶
THIRD_PARTY_NOTICES.txt is written by vite build (web/scripts/third-party-notices.ts,
web/README.md). It holds:
- the licences of the npm packages in the bundle;
- the licences of its fonts (SIL Open Font License 1.1);
- the terms of the source adapted into it.
It ships in exactdocs/_web/ in the wheel and in every image.
check_artifacts.py wheelfails a wheel without it or without theLICENSE.- The release's Build Python distributions job checks the
LICENSEin every wheel and sdist.
The images¶
- The images' Python distributions each carry their licence in their
.dist-info. - The
-localdefault models' licences are in/opt/exactdocs/models/NOTICE(see Model licenses).
Test data¶
Test data from other projects names its source and licence beside it
(packages/exactdocs/tests/fixtures/readmes/README.md); the sdist carries both.