From f514cbf16a20373b3086244b7138476b80bb3a9a Mon Sep 17 00:00:00 2001 From: kodonnell Date: Sun, 23 Jun 2024 21:53:00 +1200 Subject: [PATCH] numpy 2 is out! --- pyproject.toml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 734f1cc..32c21f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,21 +6,13 @@ requires = [ "Cython>=3.0.8", # Below copied from scipy https://github.com/scipy/scipy/blob/main/pyproject.toml - # default numpy requirements - "numpy==1.22.4; python_version<='3.10' and platform_python_implementation != 'PyPy'", - "numpy==1.23.2; python_version=='3.11' and platform_python_implementation != 'PyPy'", - "numpy>=1.26.0,<1.27; python_version=='3.12'", - - # PyPy requirements; 1.25.0 was the first version to have pypy-3.9 wheels, - # and 1.25.0 also changed the C API target to 1.19.x, so no longer a need - # for an exact pin. - "numpy>=1.25.0; python_version>='3.9' and platform_python_implementation=='PyPy'", - - # For Python versions which aren't yet officially supported, we specify an - # unpinned NumPy which allows source distributions to be used and allows - # wheels to be used as soon as they become available. - # Python 3.13 has known issues that are only fixed in numpy 2.0.0.dev0 - "numpy>=2.0.0.dev0; python_version>='3.13'", + # numpy requirement for wheel builds for distribution on PyPI - building + # against 2.x yields wheels that are also compatible with numpy 1.x at + # runtime. + # Note that building against numpy 1.x works fine too - users and + # redistributors can do this by installing the numpy version they like and + # disabling build isolation. + "numpy>=2.0.0rc1", ] build-backend = "setuptools.build_meta"