From 005a423cf69c3b88835fed7aec0caa113a3380c6 Mon Sep 17 00:00:00 2001 From: Anton <100830759+antonwolfy@users.noreply.github.com> Date: Tue, 13 Feb 2024 19:47:21 +0100 Subject: [PATCH] Bump NumPy version per NEP-0029 (#1710) * Bump NumPy version per NEP-0029 * Specify numpy version in conda_build_config.yaml * Pass numpy as an argument of conda-build command --- .github/workflows/conda-package.yml | 2 +- conda-recipe/conda_build_config.yaml | 2 ++ conda-recipe/meta.yaml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 conda-recipe/conda_build_config.yaml diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 18c323433a6..74b609d077c 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -117,7 +117,7 @@ jobs: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}- - name: Build conda package - run: conda build --no-test --python ${{ matrix.python }} ${{ env.CHANNELS }} conda-recipe + run: conda build --no-test --python ${{ matrix.python }} --numpy 1.23 ${{ env.CHANNELS }} conda-recipe - name: Upload artifact uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 diff --git a/conda-recipe/conda_build_config.yaml b/conda-recipe/conda_build_config.yaml new file mode 100644 index 00000000000..0f1e1f9078f --- /dev/null +++ b/conda-recipe/conda_build_config.yaml @@ -0,0 +1,2 @@ +numpy: + - 1.23 diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index 7c9a10c4ff7..ad7e7dce987 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -13,7 +13,7 @@ requirements: host: - python - setuptools - - numpy >=1.19,<1.27a0 + - numpy <1.27a0 - cython - cmake >=3.21 - ninja