Skip to content

Commit a4beccb

Browse files
authored
Merge pull request astropy#16580 from neutrinoceros/bp/16579
Backport PR 16579 on branch v6.1.x (various adjustments following the release of numpy 2.0)
2 parents ffb7417 + 7eb48c6 commit a4beccb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ keywords = [
4040
]
4141
dependencies = [
4242
"numpy>=1.23",
43+
# https://github.com/astropy/astropy/issues/16578
44+
"numpy < 2.0 ; platform_system=='Windows'",
4345
"pyerfa>=2.0.1.1",
4446
"astropy-iers-data>=0.2024.5.27.0.30.8",
4547
"PyYAML>=3.13",
@@ -127,7 +129,7 @@ wcslint = "astropy.wcs.wcslint:main"
127129
requires = ["setuptools",
128130
"setuptools_scm>=6.2",
129131
"cython>=3.0.0,<3.1.0",
130-
"numpy>=2.0.0rc1", # see https://github.com/astropy/astropy/issues/16257
132+
"numpy>=2.0.0",
131133
"extension-helpers==1.*"]
132134
build-backend = "setuptools.build_meta"
133135

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ deps =
6060
numpy125: numpy==1.25.*
6161

6262
mpl334: matplotlib==3.3.4
63+
# mpl 3.3.4 isn't compatible with numpy 2.0 but didn't include a pin
64+
mpl334: numpy<2.0
6365

6466
image: latex
6567
image: scipy

0 commit comments

Comments
 (0)