From e2766d289da802804f456a90f9ae1758dc379bc5 Mon Sep 17 00:00:00 2001 From: Evgeny Posenitskiy <45995097+q-posev@users.noreply.github.com> Date: Sun, 10 Dec 2023 12:53:37 +0100 Subject: [PATCH 1/2] Switch to `oldest-supported-numpy` for numpy deps --- python/pyproject.toml | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/python/pyproject.toml b/python/pyproject.toml index 7ca82aa..b8ca0a0 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -3,25 +3,6 @@ requires = [ "setuptools>=42", "wheel", "pkgconfig", - # Numpy requirements for different OS/architectures - # Copied from https://github.com/scipy/scipy/blob/master/pyproject.toml (which is also licensed under BSD) - "numpy==1.17.3; python_version=='3.6' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_machine!='aarch64' and platform_python_implementation != 'PyPy'", - "numpy==1.17.3; python_version=='3.7' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_machine!='aarch64' and platform_python_implementation != 'PyPy'", - "numpy==1.18.3; python_version=='3.8' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_machine!='aarch64' and platform_python_implementation != 'PyPy'", - "numpy==1.19.3; python_version=='3.9' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_python_implementation != 'PyPy'", - "numpy==1.21.4; python_version=='3.10' and platform_python_implementation != 'PyPy'", - # Aarch64(Python 3.9 requirements are the same as AMD64) - "numpy==1.19.2; python_version=='3.6' and platform_machine=='aarch64'", - "numpy==1.19.2; python_version=='3.7' and platform_machine=='aarch64'", - "numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64'", - # Darwin Arm64 - "numpy>=1.20.0; python_version=='3.8' and platform_machine=='arm64' and platform_system=='Darwin'", - "numpy>=1.20.0; python_version=='3.9' and platform_machine=='arm64' and platform_system=='Darwin'", - # 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. - "numpy; python_version>='3.11'", - "numpy; python_version>='3.8' and platform_python_implementation=='PyPy'", + "oldest-supported-numpy" ] build-backend = "setuptools.build_meta" From a0a5fea8f1357415bf3d34ff20bd5ca0cf93297c Mon Sep 17 00:00:00 2001 From: Evgeny Posenitskiy <45995097+q-posev@users.noreply.github.com> Date: Sun, 10 Dec 2023 12:57:48 +0100 Subject: [PATCH 2/2] Bump numpy reqs version --- python/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/requirements.txt b/python/requirements.txt index 0f6ecce..eddf522 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -1,4 +1,4 @@ setuptools>=42 pkgconfig -numpy<1.24.0 +numpy<1.27.0 numpy>=1.17.3