From 60c310369f242915c3c957b15ad045520aa7a90b Mon Sep 17 00:00:00 2001 From: Greg Lucas Date: Wed, 3 Apr 2024 19:55:31 -0600 Subject: [PATCH] BLD: Use numpy2.0.0rc1 to build the package This will still work with older numpy versions when running Cartopy built from a wheel with this build requirement. --- pyproject.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5b974a242..862805ff8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,13 @@ requires = [ "wheel", "setuptools >= 40.6.0", "Cython >= 0.29.24", - "oldest-supported-numpy", + # 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", "setuptools_scm >= 7.0.0", ] build-backend = "setuptools.build_meta"