Skip to content

Commit

Permalink
Merge pull request #86 from astrofrog/numpy-2.0-compat
Browse files Browse the repository at this point in the history
Build against Numpy 2.0.0rc1 for Python>=3.9
  • Loading branch information
astrofrog authored Apr 16, 2024
2 parents bd82c39 + 73e3ac0 commit 38c644d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 38c644d

Please sign in to comment.