[packages/python3-numpy] - needs update to 2.2.3 for python 3.13
baggins
baggins at pld-linux.org
Mon Mar 10 21:43:01 CET 2025
commit a7aeb6c51b9fec5a3dae596b07ca61f6e82e5163
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Mar 10 22:35:42 2025 +0100
- needs update to 2.2.3 for python 3.13
python3-numpy-deprecated.patch | 39 ---------------------------------------
python3-numpy.spec | 21 +++++++++------------
2 files changed, 9 insertions(+), 51 deletions(-)
---
diff --git a/python3-numpy.spec b/python3-numpy.spec
index 1d4ed80..47b64ba 100644
--- a/python3-numpy.spec
+++ b/python3-numpy.spec
@@ -15,15 +15,14 @@
Summary: Python 3.x numerical facilities
Summary(pl.UTF-8): Moduły do obliczeń numerycznych dla języka Python 3.x
Name: python3-%{module}
-Version: 1.22.4
-Release: 2
+Version: 2.2.3
+Release: 0.1
Epoch: 1
License: BSD
Group: Libraries/Python
#Source0Download: https://github.com/numpy/numpy/releases/
Source0: https://github.com/numpy/numpy/releases/download/v%{version}/%{module}-%{version}.tar.gz
# Source0-md5: 09b3a41ea0b9bc20bd1691cf88f0b0d3
-Patch0: %{name}-deprecated.patch
URL: https://github.com/numpy/numpy
%if "%(test -w /dev/shm ; echo $?)" != "0"
BuildRequires: WRITABLE(/dev/shm)
@@ -31,16 +30,15 @@ BuildRequires: WRITABLE(/dev/shm)
BuildRequires: gcc-fortran
BuildRequires: lapack-devel >= 3.1.1-2
BuildRequires: python3-Cython >= 0.29.30
-BuildRequires: python3-devel >= 1:3.8
-BuildRequires: python3-setuptools >= 1:59.2.0
+BuildRequires: python3-devel >= 1:3.10
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-meson # (-python?)
%if %{with tests}
-%if "%{ver_lt '%{py3_ver}' '3.10'}" == "1"
-BuildRequires: python3-cffi
-%endif
BuildRequires: python3-hypothesis >= 6.24.1
#BuildRequires: python3-mypy >= 0.940
BuildRequires: python3-pytest >= 6.2.5
-BuildRequires: python3-pytz >= 2021.3
+BuildRequires: python3-pytz >= 2024.1
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
@@ -86,7 +84,6 @@ Generator interfejsów z Fortranu do Pythona 3.
%prep
%setup -q -n %{module}-%{version}
-%patch -P 0 -p1
%build
# numpy.distutils uses CFLAGS/LDFLAGS as its own flags replacements,
@@ -94,7 +91,7 @@ Generator interfejsów z Fortranu do Pythona 3.
CFLAGS="%{rpmcflags} -fPIC"
LDFLAGS="%{rpmldflags} -shared"
-%py3_build
+%py3_build_pyproject
%if %{with tests}
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
@@ -104,7 +101,7 @@ PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%install
rm -rf $RPM_BUILD_ROOT
-%py3_install
+%py3_install_pyproject
%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/doc
%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/random/_examples
diff --git a/python3-numpy-deprecated.patch b/python3-numpy-deprecated.patch
deleted file mode 100644
index b3e827c..0000000
--- a/python3-numpy-deprecated.patch
+++ /dev/null
@@ -1,39 +0,0 @@
---- numpy-1.22.4/numpy/random/tests/test_extending.py.orig 2022-05-20 15:46:11.022547000 +0200
-+++ numpy-1.22.4/numpy/random/tests/test_extending.py 2022-09-02 21:05:39.227962995 +0200
-@@ -30,16 +30,6 @@ try:
- from Cython.Compiler.Version import version as cython_version
- except ImportError:
- cython = None
--else:
-- from distutils.version import LooseVersion
-- # Cython 0.29.21 is required for Python 3.9 and there are
-- # other fixes in the 0.29 series that are needed even for earlier
-- # Python versions.
-- # Note: keep in sync with the one in pyproject.toml
-- required_version = LooseVersion('0.29.21')
-- if LooseVersion(cython_version) < required_version:
-- # too old or wrong cython, skip the test
-- cython = None
-
- @pytest.mark.skipif(cython is None, reason="requires cython")
- @pytest.mark.slow
---- numpy-1.22.4/numpy/core/tests/test_cython.py.orig 2022-05-20 15:46:10.990547200 +0200
-+++ numpy-1.22.4/numpy/core/tests/test_cython.py 2022-09-02 21:02:27.667878264 +0200
-@@ -12,17 +12,6 @@ try:
- from Cython.Compiler.Version import version as cython_version
- except ImportError:
- cython = None
--else:
-- from distutils.version import LooseVersion
--
-- # Cython 0.29.21 is required for Python 3.9 and there are
-- # other fixes in the 0.29 series that are needed even for earlier
-- # Python versions.
-- # Note: keep in sync with the one in pyproject.toml
-- required_version = LooseVersion("0.29.21")
-- if LooseVersion(cython_version) < required_version:
-- # too old or wrong cython, skip the test
-- cython = None
-
- pytestmark = pytest.mark.skipif(cython is None, reason="requires cython")
-
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-numpy.git/commitdiff/a7aeb6c51b9fec5a3dae596b07ca61f6e82e5163
More information about the pld-cvs-commit
mailing list