From f6a1e4eadd9627139566135b097d6a6b55cd6d6e Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Fri, 5 Apr 2024 11:05:13 +0100 Subject: [PATCH 1/2] Build against Numpy 2.0.0rc1 or later --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5fbf89335..955389e26 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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' From 1bf2a8403b656d332838ffced848f4c7e765317d Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Fri, 5 Apr 2024 11:06:30 +0100 Subject: [PATCH 2/2] Simplify dev wheels configuration since we no longer need to install the developer version of Numpy --- .github/workflows/ci_workflows.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci_workflows.yml b/.github/workflows/ci_workflows.yml index bb3fed0f3..5e0a27eb0 100644 --- a/.github/workflows/ci_workflows.yml +++ b/.github/workflows/ci_workflows.yml @@ -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 }}