Repository navigation
build: Declare LICENSE.txt in license-files - #308
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.
b909e1b to
8cf74cf
Compare
| build-backend = "mesonpy" | ||
| requires = [ | ||
| "meson-python>=0.16.0", | ||
| "meson-python>=0.18.0", |
There was a problem hiding this comment.
Nit: this floor only applies to isolated builds. The pip install lines in .github/workflows/build_pip.yml, build-with-clang.yml, build-with-standard-clang.yml and coverity.yml, and the setup steps in CONTRIBUTING.md and README.md, still install meson-python without a version and then build with --no-build-isolation. In that mode pip doesn't check build-system.requires by default. CI runners start fresh and get the latest release, so they're fine. A developer who follows CONTRIBUTING or README in an existing env with meson-python 0.16 or 0.17 gets no hint about the new minimum, and the build then fails on license-files or ignores it. Could you write "meson-python>=0.18.0" there too, at least in the two docs?
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.16.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.