diff --git a/0001-oldest-supported-numpy-2023.12.21.patch b/0001-oldest-supported-numpy-2023.12.21.patch new file mode 100644 index 0000000000000000000000000000000000000000..404bfa0c90dfe93c2bfafde5794ab3888a829213 --- /dev/null +++ b/0001-oldest-supported-numpy-2023.12.21.patch @@ -0,0 +1,25 @@ +From 80fb6ca7e92ef066d6bde6c3e89120266113bb3e Mon Sep 17 00:00:00 2001 +From: desert-sailor +Date: Thu, 14 Nov 2024 10:05:05 +0800 +Subject: [PATCH] oldest-supported-numpy-2023.12.21 + +--- + setup.cfg | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.cfg b/setup.cfg +index 3b4a3a3..547239b 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -59,7 +59,7 @@ install_requires = + # Note that 1.21.3 was the first version with a complete set of 3.10 wheels, + # however macOS was broken and it's safe to build against 1.21.6 on all platforms (see gh-28 and gh-45) + numpy==1.21.6; python_version=='3.10' and platform_machine!='loongarch64' +- numpy==1.23.2; python_version=='3.11' ++ numpy==1.24.3; python_version=='3.11' + # numpy 1.26 before 1.26.2 enforced the presence of a blas library + # when building from source, e.g. on i686 ( https://github.com/numpy/numpy/issues/24703 ) + numpy==1.26.2; python_version=='3.12' +-- +2.47.0 + diff --git a/0001-oldest-supported-numpy-2023.8.3.patch b/0001-oldest-supported-numpy-2023.8.3.patch deleted file mode 100644 index 5534e657f68d500433175b4fb29a79149b06ca41..0000000000000000000000000000000000000000 --- a/0001-oldest-supported-numpy-2023.8.3.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 2ef1e5a1868d79ff740b990356c8948290fb9436 Mon Sep 17 00:00:00 2001 -From: zhangchao13 -Date: Mon, 18 Sep 2023 15:39:00 +0800 -Subject: [PATCH] oldest-supported-numpy-2023.8.3 - ---- - setup.cfg | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/setup.cfg b/setup.cfg -index a946a72..d9edcc0 100644 ---- a/setup.cfg -+++ b/setup.cfg -@@ -35,7 +35,7 @@ install_requires = - numpy==1.17.3; python_version=='3.8' and platform_machine not in 'arm64|aarch64|s390x|loongarch64' and platform_python_implementation != 'PyPy' - numpy==1.19.3; python_version=='3.9' and platform_system not in 'OS400' and platform_machine not in 'arm64|loongarch64' - numpy==1.21.6; python_version=='3.10' and platform_machine!='loongarch64' -- numpy==1.23.2; python_version=='3.11' -+ numpy; python_version=='3.11' - - numpy==1.19.0; python_version=='3.6' and platform_machine!='loongarch64' and platform_python_implementation=='PyPy' - numpy==1.20.0; python_version=='3.7' and platform_machine!='loongarch64' and platform_python_implementation=='PyPy' --- -2.39.2.windows.1 - diff --git a/oldest-supported-numpy-2023.12.21.tar.gz b/oldest-supported-numpy-2023.12.21.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..52015657c61b84e52da738355e784e62388fea77 Binary files /dev/null and b/oldest-supported-numpy-2023.12.21.tar.gz differ diff --git a/oldest-supported-numpy-2023.8.3.tar.gz b/oldest-supported-numpy-2023.8.3.tar.gz deleted file mode 100644 index 283f3afe51ed51da67c6a0c66ccc2e6aa2d2a2d7..0000000000000000000000000000000000000000 Binary files a/oldest-supported-numpy-2023.8.3.tar.gz and /dev/null differ diff --git a/python-oldest-supported-numpy.spec b/python-oldest-supported-numpy.spec index 1c6eac32942aafcfff3ba8c9a7e54dd219d68c46..6b3d9248269e343aa128747b799a8651a7bf163c 100644 --- a/python-oldest-supported-numpy.spec +++ b/python-oldest-supported-numpy.spec @@ -1,14 +1,14 @@ -%global srcname oldest-supported-numpy +%global pypi_name oldest-supported-numpy -Name: python-%{srcname} -Version: 2023.8.3 +Name: python-%{pypi_name} +Version: 2023.12.21 Release: 1 Summary: Meta-package that provides the oldest NumPy that supports a given Python version and platform. License: BSD URL: https://github.com/scipy/oldest-supported-numpy -Source0: %{pypi_source %{srcname}} +Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz +Patch1: 0001-oldest-supported-numpy-2023.12.21.patch BuildArch: noarch -Patch: 0001-oldest-supported-numpy-2023.8.3.patch BuildRequires: python3-devel BuildRequires: python3-pip @@ -21,15 +21,15 @@ Meta-package that provides the oldest NumPy that supports a given Python version %description %{_description} -%autosetup -n %{srcname}-%{version} -p1 +%autosetup -n %{pypi_name}-%{version} -p1 -%package -n python3-%{srcname} +%package -n python3-%{pypi_name} Summary: %{summary} -%description -n python3-%{srcname} %{_description} +%description -n python3-%{pypi_name} %{_description} %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n %{pypi_name}-%{version} -p1 %build %pyproject_build @@ -37,13 +37,18 @@ Summary: %{summary} %install %pyproject_install -%files -n python3-%{srcname} +%files -n python3-%{pypi_name} %defattr(-,root,root) %license LICENSE %{python3_sitelib}/oldest_supported_numpy*.dist-info/ %doc README.rst %changelog +* Wed Nov 13 2024 Dongxing Wang - 2023.12.21-1 +- Update version to 2023.12.21 + Update to 1.19.3 for python3.8 in aarch64 to limit cython<3.0 + Update after NumPy 1.26.0 release + * Fri Aug 18 2023 chaozhangm - 2023.8.3-1 - Initial package.