Repository navigation
build: Declare LICENSE.txt in license-files - #418
jharlow-intel wants to merge 1 commit into
Conversation
meson-python copies license-files entries into a wheel's .dist-info/licenses. Raise the meson-python floor to 0.18.0, the first release that supports license-files.
There was a problem hiding this comment.
🟢 Approval recommended
The review reports no active issues with the license-packaging metadata update.
No open issues 🎉
What changed in this PR
Updates packaging metadata so wheels include LICENSE.txt in .dist-info/licenses/.
Changes:
- Declares the license file in project metadata.
- Raises the meson-python minimum to 0.18.0 for both build configurations.
- Documents the packaging change.
Root AGENTS.md was unavailable.
| File | Description |
|---|---|
pyproject.toml |
Declares the license file and raises the build-backend minimum. |
conda-recipe/meta.yaml |
Aligns the meson-python minimum with project requirements. |
CHANGELOG.md |
Records the license packaging update. |
Review effort: Balanced
antonwolfy
left a comment
There was a problem hiding this comment.
LGTM. I checked the PR's CI artifacts: the Linux and Windows wheels and conda packages all carry .dist-info/licenses/LICENSE.txt, and METADATA has License-Expression: BSD-3-Clause and License-File: LICENSE.txt.
The 0.18.0 floor is needed: meson-python 0.17.1 copies only a license = {file = ...} table into the wheel, so it would leave LICENSE.txt out. The bump also covers the SPDX license string master already has, which pyproject-metadata < 0.9 rejects and meson-python < 0.18 still allows (0.17.1 requires only pyproject-metadata >= 0.7.1).
One wording nit inline.
| ### Added | ||
|
|
||
| ### Changed | ||
| * `pyproject.toml` declares `LICENSE.txt` in `license-files`, and the minimum `meson-python` is now 0.18.0, the first version that supports `license-files` [gh-418](https://github.com/IntelPython/mkl_fft/pull/418) |
There was a problem hiding this comment.
Nit: the entry says what pyproject.toml declares rather than what users get. Maybe lead with the effect, as the Cython floor entry in 2.4.0 does:
| * `pyproject.toml` declares `LICENSE.txt` in `license-files`, and the minimum `meson-python` is now 0.18.0, the first version that supports `license-files` [gh-418](https://github.com/IntelPython/mkl_fft/pull/418) | |
| * Wheels now include `LICENSE.txt` in `.dist-info/licenses/`, declared in `license-files`; raised the minimum build-time `meson-python` requirement to `0.18.0`, the first release supporting `license-files` [gh-418](https://github.com/IntelPython/mkl_fft/pull/418) |
Declare the license file in
pyproject.toml, so meson-python copiesLICENSE.txtinto each wheel's.dist-info/licenses/.license-files = ["LICENSE.txt"]to[project].meson-pythonfloor from 0.13.0 to 0.18.0 in[build-system]and inconda-recipe/meta.yaml. 0.18.0 is the first release that supportslicense-files.pyproject-metadata0.12.1, which meson-python 0.18+ uses to write the core metadata, rendersLicense-Expression: BSD-3-ClauseandLicense-File: LICENSE.txtfrom the updatedpyproject.toml.