From 73e3ac0b84af2d186efbbb2669dc7864dd62c797 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Tue, 16 Apr 2024 11:52:19 +0100 Subject: [PATCH] Build against Numpy 2.0.0rc1 for Python>=3.9 --- .github/workflows/main.yml | 3 +++ pyproject.toml | 2 +- tox.ini | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6b5b25e..72dd1f9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,6 +25,7 @@ jobs: - linux: py310-test-numpy124 - linux: py310-test-numpy125 - linux: py311-test-numpy126 + - linux: py311-test-numpy20 - linux: py312-test-numpydev - macos: py38-test-numpy118 @@ -36,6 +37,7 @@ jobs: - macos: py310-test-numpy124 - macos: py310-test-numpy125 - macos: py311-test-numpy126 + - macos: py311-test-numpy20 - windows: py38-test-numpy118 - windows: py39-test-numpy119 @@ -46,6 +48,7 @@ jobs: - windows: py310-test-numpy124 - windows: py310-test-numpy125 - windows: py311-test-numpy126 + - windows: py311-test-numpy20 publish: uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@v1 diff --git a/pyproject.toml b/pyproject.toml index 5fb0d0e..e9e235e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ requires = ["setuptools", "setuptools_scm", "oldest-supported-numpy;python_version<'3.9'", - "numpy>=1.25;python_version>='3.9'"] + "numpy>=2.0.0rc1;python_version>='3.9'"] build-backend = 'setuptools.build_meta' [tool.cibuildwheel.linux] diff --git a/tox.ini b/tox.ini index 1ebb9a8..522304c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{38,39,310,311,312}-test{-numpy118,-numpy119,-numpy120,-numpy121,-numpy122,-numpy123,-numpy124,-numpy125,-numpy126,-numpydev} + py{38,39,310,311,312}-test{-numpy118,-numpy119,-numpy120,-numpy121,-numpy122,-numpy123,-numpy124,-numpy125,-numpy126,-numpy20,-numpydev} requires = setuptools >= 30.3.0 pip >= 19.3.1 @@ -24,6 +24,7 @@ deps = numpy124: numpy==1.24.* numpy125: numpy==1.25.* numpy126: numpy==1.26.* + numpy20: numpy==2.0.0rc1 numpydev: numpy>=0.0.dev0 extras = test