diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e23b390..885e12a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed * 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) ### Removed * Removed the NumPy 1 code paths: the `USE_NUMPY_2` switch with the NumPy 1 complex `sign` and `ldexp_long` loops, and `ufunc_docstrings_numpy1.py`. Building against NumPy 1 headers now fails with an explicit error [gh-289](https://github.com/IntelPython/mkl_umath/pull/289) diff --git a/conda-recipe-cf/AGENTS.md b/conda-recipe-cf/AGENTS.md index cea38d84..dcc7eef5 100644 --- a/conda-recipe-cf/AGENTS.md +++ b/conda-recipe-cf/AGENTS.md @@ -8,9 +8,8 @@ Conda-forge compatible build recipe (alternative to Intel channel recipe). - For conda-forge feedstock integration (if upstreamed) ## Files -- **meta.yaml** — conda-forge compatible metadata +- **meta.yaml** — conda-forge compatible metadata, test commands (`pytest --pyargs mkl_umath`) - **build.sh** / **bld.bat** — platform build scripts -- **run_tests.{sh,bat}** — test invocation ## Status - Not currently used in main CI workflows diff --git a/conda-recipe-cf/meta.yaml b/conda-recipe-cf/meta.yaml index 115a357d..583cbcd5 100644 --- a/conda-recipe-cf/meta.yaml +++ b/conda-recipe-cf/meta.yaml @@ -42,11 +42,9 @@ test: requires: - pip - pytest - source_files: - - mkl_umath/tests/test_basic.py commands: - pip check - - pytest mkl_umath/tests/test_basic.py + - pytest --pyargs mkl_umath imports: - mkl_umath - mkl_umath._ufuncs diff --git a/conda-recipe-cf/run_tests.bat b/conda-recipe-cf/run_tests.bat deleted file mode 100644 index 42b23a9e..00000000 --- a/conda-recipe-cf/run_tests.bat +++ /dev/null @@ -1 +0,0 @@ -%PYTHON% tests\test_basic.py diff --git a/conda-recipe-cf/run_tests.sh b/conda-recipe-cf/run_tests.sh deleted file mode 100644 index 219a5595..00000000 --- a/conda-recipe-cf/run_tests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -$PYTHON tests/test_basic.py diff --git a/conda-recipe/AGENTS.md b/conda-recipe/AGENTS.md index c5bd2f93..e378ac6d 100644 --- a/conda-recipe/AGENTS.md +++ b/conda-recipe/AGENTS.md @@ -3,11 +3,10 @@ Conda package build recipe for Intel channel distribution. ## Files -- **meta.yaml** — package metadata, dependencies, build requirements +- **meta.yaml** — package metadata, dependencies, build requirements, test commands (`pytest --pyargs mkl_umath`) - **build.sh** — Linux build script - **bld.bat** — Windows build script - **conda_build_config.yaml** — build matrix (Python versions, numpy pins) -- **run_tests.{sh,bat}** — post-build test invocation ## Build configuration - **Channels:** `https://software.repos.intel.com/python/conda`, `conda-forge` diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index 4943be48..10679606 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -44,10 +44,8 @@ requirements: test: requires: - pytest - source_files: - - mkl_umath/tests/test_basic.py commands: - - pytest mkl_umath/tests/test_basic.py + - pytest --pyargs mkl_umath imports: - mkl_umath - mkl_umath._ufuncs diff --git a/conda-recipe/run_tests.bat b/conda-recipe/run_tests.bat deleted file mode 100644 index 42b23a9e..00000000 --- a/conda-recipe/run_tests.bat +++ /dev/null @@ -1 +0,0 @@ -%PYTHON% tests\test_basic.py diff --git a/conda-recipe/run_tests.sh b/conda-recipe/run_tests.sh deleted file mode 100644 index 219a5595..00000000 --- a/conda-recipe/run_tests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -$PYTHON tests/test_basic.py