Skip to content

Commit

Permalink
Bump NumPy version per NEP-0029 (#1710)
Browse files Browse the repository at this point in the history
* Bump NumPy version per NEP-0029

* Specify numpy version in conda_build_config.yaml

* Pass numpy as an argument of conda-build command
  • Loading branch information
antonwolfy authored Feb 13, 2024
1 parent 4f4db77 commit 005a423
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions conda-recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
numpy:
- 1.23
2 changes: 1 addition & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ requirements:
host:
- python
- setuptools
- numpy >=1.19,<1.27a0
- numpy <1.27a0
- cython
- cmake >=3.21
- ninja
Expand Down

0 comments on commit 005a423

Please sign in to comment.