Skip to content

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

Merged
antonwolfy merged 1 commit into
masterfrom
fix/wheel-license-file
Dec 3, 2026
Merged

antonwolfy merged 1 commit into
masterfrom
fix/wheel-license-file

Conversation

@jharlow-intel

Copy link
Copy Markdown
Collaborator

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:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

There are no active review issues with the license-packaging and build-backend metadata changes.

No open issues 🎉

What changed in this PR

Updates packaging metadata so built wheels include LICENSE.txt in .dist-info/licenses/.

Changes:

  • Declare LICENSE.txt through license-files.
  • Raise the minimum meson-python version to 0.18.0 for Python and conda builds.
  • Document the packaging change.

Repository guidance could not be loaded because /repo/AGENTS.md was unavailable.

File Description
pyproject.toml Declares the license file and raises the build-backend minimum.
conda-recipe/​meta.yaml Aligns the conda meson-python minimum.
CHANGELOG.md Records the license packaging and dependency changes.

Review effort: Balanced

@antonwolfy antonwolfy added this to the 2.10.0 release milestone Dec 3, 2026
@antonwolfy
antonwolfy merged commit 046333c into master Dec 3, 2026
87 of 91 checks passed
@antonwolfy
antonwolfy deleted the fix/wheel-license-file branch December 3, 2026 13:48
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