Skip to content

build: Declare LICENSE.txt in license-files - #418

Open
jharlow-intel wants to merge 1 commit into
masterfrom
fix/wheel-license-file
Open

jharlow-intel wants to merge 1 commit into
masterfrom
fix/wheel-license-file

Conversation

@jharlow-intel

Copy link
Copy Markdown
Contributor

Declare the license file in pyproject.toml, so meson-python copies LICENSE.txt into each wheel's .dist-info/licenses/.

  • Add license-files = ["LICENSE.txt"] to [project].
  • Raise the meson-python floor from 0.13.0 to 0.18.0 in [build-system] and in conda-recipe/meta.yaml. 0.18.0 is the first release that supports license-files.
  • Add a changelog entry.

pyproject-metadata 0.12.1, which meson-python 0.18+ uses to write the core metadata, renders License-Expression: BSD-3-Clause and License-File: LICENSE.txt from the updated pyproject.toml.

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.
@jharlow-intel jharlow-intel self-assigned this Dec 2, 2026
Copilot AI balanced review requested due to automatic review settings December 2, 2026 16:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 antonwolfy added this to the 2.5.0 release milestone Dec 3, 2026

@antonwolfy antonwolfy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread CHANGELOG.md
### 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)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

Suggested change
* `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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants