diff --git a/maintainer-notes.md b/maintainer-notes.md index 7164ccc..a0b1f79 100644 --- a/maintainer-notes.md +++ b/maintainer-notes.md @@ -121,20 +121,9 @@ and the binary wheels attached. - NumPy ABI compatibility needs to be maintained by building against a reasonably old version of NumPy when packaging for public distribution (cf. - https://github.com/numpy/numpy/issues/5888). - - In practice, we should use the oldest NumPy for which wheels are available on - PyPI for the given Python version (and all 3 platforms): - - - Python 3.8 - NumPy 1.17.3 - - Python 3.9 - NumPy 1.19.3 - - Python 3.10 - NumPy 1.21.3 - - Python 3.11 - NumPy 1.23.2 - - Python 3.12 - Numpy 1.26.0 - - Those versions are reflected in the `[build-system.requires]` section of - `pyproject.toml`, which takes care of creating the appropriate build - environment for the wheel. + https://github.com/numpy/numpy/issues/5888). We do this by including + [`oldest-supported-numpy`](https://github.com/scipy/oldest-supported-numpy) + in our build requires. ## Building with debug symbols on Windows diff --git a/pyproject.toml b/pyproject.toml index 901fc75..f5dda93 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,15 +1,6 @@ # https://peps.python.org/pep-0517/ [build-system] -requires = [ - "setuptools >=61.0.0", - "swig >=4", - "numpy==1.14.5; python_version=='3.7'", - "numpy==1.17.3; python_version=='3.8'", - "numpy==1.19.3; python_version=='3.9'", - "numpy==1.21.3; python_version=='3.10'", - "numpy==1.23.2; python_version=='3.11'", - "numpy==1.26.0; python_version=='3.12'", -] +requires = ["setuptools >=61.0.0", "swig >=4", "oldest-supported-numpy"] build-backend = "setuptools.build_meta"