Skip to content

Commit

Permalink
Merge pull request #436 from astrofrog/build-numpy-2
Browse files Browse the repository at this point in the history
Build against Numpy 2.0.0rc1 or later
  • Loading branch information
astrofrog authored Apr 5, 2024
2 parents c668364 + 1bf2a84 commit 2e54136
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,11 @@ jobs:
- cp*-macosx_arm64
- cp*-win_amd64
# Developer wheels (use Numpy dev to build)
# Developer wheels
upload_to_anaconda: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
anaconda_user: astropy
anaconda_package: reproject
anaconda_keep_n_latest: 10
env: |
CIBW_BEFORE_BUILD: '${{ ((github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request') && 'pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple setuptools setuptools_scm numpy>=0.0dev0 extension-helpers cython') || '' }}'
CIBW_BUILD_FRONTEND: '${{ ((github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request') && 'pip; args: --no-build-isolation') || 'build' }}'

secrets:
pypi_token: ${{ secrets.pypi_token }}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ docs = [
requires = ["setuptools",
"setuptools_scm",
"extension-helpers==1.*",
"numpy>=1.25",
"numpy>=2.0.0rc1",
"cython>=3.0,<3.1"]
build-backend = 'setuptools.build_meta'

Expand Down

0 comments on commit 2e54136

Please sign in to comment.