From 808601ac905e73f2d51d08208b53b7bf55afe02d4e9437c431809478fc462830 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 18 Mar 2025 13:28:14 +0000 Subject: [PATCH] Accepting request 1254113 from home:mcalabkova:branches:devel:languages:python:numeric MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit looks like I managed to patch numba - Update to 2.2.2 * New functions matvec and vecmat * Many improved annotations * Improved support for the new StringDType * Improved support for free threaded Python * Fixes for f2py ## Deprecations * _add_newdoc_ufunc is now deprecated. ufunc.__doc__ = newdoc should be used instead. ## Expired deprecations * bool(np.array([])) and other empty arrays will now raise an error. Use arr.size > 0 instead to check whether an array has no elements. ## Compatibility notes * numpy.cov now properly transposes single-row (2d array) design matrices when rowvar=False. Previously, single-row design matrices would return a scalar in this scenario, which is not correct, so this is a behavior change and an array of the appropriate shape will now be returned. ## New Features * New functions for matrix-vector and vector-matrix products * np.complexfloating[T, T] can now also be written as np.complexfloating[T] * UFuncs now support __dict__ attribute and allow overriding __doc__ (either directly or via ufunc.__dict__["__doc__"]). __dict__ can be used to also override other properties, such as __module__ or __qualname__. * The “nbit” type parameter of np.number and its subtypes now defaults to typing.Any. This way, type-checkers will infer annotations such as x: np.floating as x: np.floating[Any], even in strict mode. OBS-URL: https://build.opensuse.org/request/show/1254113 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=182 --- numpy-2.1.3.tar.gz | 3 --- numpy-2.2.2.tar.gz | 3 +++ python-numpy.changes | 32 ++++++++++++++++++++++++++++++++ python-numpy.spec | 6 +++--- 4 files changed, 38 insertions(+), 6 deletions(-) delete mode 100644 numpy-2.1.3.tar.gz create mode 100644 numpy-2.2.2.tar.gz diff --git a/numpy-2.1.3.tar.gz b/numpy-2.1.3.tar.gz deleted file mode 100644 index 7586d26..0000000 --- a/numpy-2.1.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aa08e04e08aaf974d4458def539dece0d28146d866a39da5639596f4921fd761 -size 20166090 diff --git a/numpy-2.2.2.tar.gz b/numpy-2.2.2.tar.gz new file mode 100644 index 0000000..b5e1c01 --- /dev/null +++ b/numpy-2.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed6906f61834d687738d25988ae117683705636936cc605be0bb208b23df4d8f +size 20233295 diff --git a/python-numpy.changes b/python-numpy.changes index 5dc4d7e..62cae4a 100644 --- a/python-numpy.changes +++ b/python-numpy.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +Mon Feb 24 16:32:10 UTC 2025 - Markéta Machová + +- Update to 2.2.2 + * New functions matvec and vecmat + * Many improved annotations + * Improved support for the new StringDType + * Improved support for free threaded Python + * Fixes for f2py + ## Deprecations + * _add_newdoc_ufunc is now deprecated. ufunc.__doc__ = newdoc should + be used instead. + ## Expired deprecations + * bool(np.array([])) and other empty arrays will now raise an error. + Use arr.size > 0 instead to check whether an array has no elements. + ## Compatibility notes + * numpy.cov now properly transposes single-row (2d array) design + matrices when rowvar=False. Previously, single-row design matrices + would return a scalar in this scenario, which is not correct, so + this is a behavior change and an array of the appropriate shape + will now be returned. + ## New Features + * New functions for matrix-vector and vector-matrix products + * np.complexfloating[T, T] can now also be written as np.complexfloating[T] + * UFuncs now support __dict__ attribute and allow overriding __doc__ + (either directly or via ufunc.__dict__["__doc__"]). __dict__ can be + used to also override other properties, such as __module__ or + __qualname__. + * The “nbit” type parameter of np.number and its subtypes now defaults + to typing.Any. This way, type-checkers will infer annotations such + as x: np.floating as x: np.floating[Any], even in strict mode. + ------------------------------------------------------------------- Wed Feb 12 16:55:08 UTC 2025 - Bernhard Wiedemann diff --git a/python-numpy.spec b/python-numpy.spec index e76d201..5780e31 100644 --- a/python-numpy.spec +++ b/python-numpy.spec @@ -1,7 +1,7 @@ # # spec file for package python-numpy # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,8 +17,8 @@ %global flavor @BUILD_FLAVOR@%{nil} -%define ver 2.1.3 -%define _ver 2_1_3 +%define ver 2.2.2 +%define _ver 2_2_2 %define pname python-numpy %define plainpython python %define hpc_upcase_trans_hyph() %(echo %{**} | tr [a-z] [A-Z] | tr '-' '_')