Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [dev] - YYYY-MM-DD

### 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-308](https://github.com/IntelPython/mkl_umath/pull/308)
* Raised the minimum NumPy version to 2.0 at build time and at runtime in `pyproject.toml` and the conda recipe. `mkl_umath` built against NumPy 2 kept NumPy 2 behavior when run with NumPy 1.x, which the previous `numpy >=1.26.4` requirement allowed: complex `sign` returned NumPy 2 results and, on Windows, `patch_numpy_umath()` could not find NumPy loops matching the `int64` `ldexp` loops [gh-289](https://github.com/IntelPython/mkl_umath/pull/289)
* Conda recipes now run the whole test suite with `pytest --pyargs mkl_umath` instead of only `test_basic.py`, and the unused `run_tests.{sh,bat}` scripts were removed [gh-283](https://github.com/IntelPython/mkl_umath/pull/283)

Expand Down
2 changes: 1 addition & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ requirements:
- {{ stdlib('c') }}
- {{ compiler('dpcpp') }} >=2024.2 # [not osx]
host:
- meson-python >=0.16.0
- meson-python >=0.18.0
- cmake
- ninja
- git
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
[build-system]
build-backend = "mesonpy"
requires = [
"meson-python>=0.16.0",
"meson-python>=0.18.0",

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

"ninja",
"Cython>=3.1.0",
"numpy>=2",
Expand Down Expand Up @@ -63,6 +63,7 @@ description = "Intel (R) MKL-based universal functions for NumPy arrays"
dynamic = ["version"]
keywords = ["mkl_umath"]
license = "BSD-3-Clause"
license-files = ["LICENSE.txt"]
name = "mkl_umath"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.10,<3.16"
Expand Down
Loading