Skip to content

Commit

Permalink
Build against numpy 1.25.1, not oldest-supported-numpy
Browse files Browse the repository at this point in the history
Numpy 1.25 is now backwards-compatible with previous API versions,
so oldest-supported-numpy is no longer necessary.

See https://numpy.org/doc/stable/release/1.25.0-notes.html#compiling-against-the-numpy-c-api-is-now-backwards-compatible-by-default
  • Loading branch information
lpsinger committed Aug 1, 2023
1 parent 106c331 commit 6ab571f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ build-backend = 'setuptools.build_meta'
requires = ["setuptools>=61",
"setuptools_scm[toml]>=6.2",
"wheel",
# see https://github.com/scipy/oldest-supported-numpy/issues/62
"numpy==1.19.0; python_version<='3.8' and platform_system=='Windows' and platform_python_implementation != 'PyPy'",
"oldest-supported-numpy; python_version>'3.8' or platform_system!='Windows' or platform_python_implementation == 'PyPy'"]
"numpy==1.25.1"]

[project]
name = "radbelt"
Expand All @@ -28,7 +26,7 @@ classifiers = [
]
license = { text = "NOSA" }
requires-python = ">=3.9"
dependencies = ["astropy", "numpy"]
dependencies = ["astropy", "numpy>=1.19"]
dynamic = [ "version" ]

[project.urls]
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
'radbelt/core.f',
'radbelt/extern/igrf/shellig.f',
'radbelt/extern/aep8/trmfun.f'
]
],
define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_19_API_VERSION')]
)
]
)

0 comments on commit 6ab571f

Please sign in to comment.