From cf0e00a304f9ec2b3dc4e2a5e66b4eabce7b5297 Mon Sep 17 00:00:00 2001 From: "Harlow, Jordan" Date: Wed, 2 Dec 2026 09:44:03 -0700 Subject: [PATCH] build: Declare LICENSE.txt in license-files 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. --- CHANGELOG.md | 1 + conda-recipe/meta.yaml | 2 +- pyproject.toml | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c3ce528..6f429c0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### 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-219](https://github.com/IntelPython/mkl_random/pull/219) * Reduced the per-call overhead of `randint`, which speeds up calls that return few values; generated values are unchanged [gh-199](https://github.com/IntelPython/mkl_random/pull/199) ### Fixed diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index 95dba549..a2dcc012 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -18,7 +18,7 @@ requirements: - cmake - ninja host: - - meson-python >=0.16.0 + - meson-python >=0.18.0 - meson >=1.8.3 - python - mkl-devel diff --git a/pyproject.toml b/pyproject.toml index 3a6ca313..9e2901fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ [build-system] build-backend = "mesonpy" requires = [ - "meson-python>=0.16.0", + "meson-python>=0.18.0", "ninja", "Cython>=3.1.0", "numpy", @@ -76,6 +76,7 @@ keywords = [ "MCG-31" ] license = "BSD-3-Clause" +license-files = ["LICENSE.txt"] name = "mkl_random" readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.10,<3.16"