CVS commit: pkgsrc/math/py-numpy

"Adam Ciarcinski" <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.cvs
Message-ID <[email protected]>
Module Name:	pkgsrc
Committed By:	adam
Date:		Mon Aug 17 09:27:50 UTC 2026

Modified Files:
	pkgsrc/math/py-numpy: Makefile PLIST distinfo
Added Files:
	pkgsrc/math/py-numpy/patches:
	    patch-numpy___core_src_multiarray_arrayobject.c
	    patch-numpy___core_src_umath_ufunc__object.c

Log Message:
py-numpy: updated to 2.5.2

2.5.2

MAINT: Prepare 2.5.x for further development
TYP: Backport multiple static typing fixes 1.
TST: add tests for stable ABI numpy extensions
BUG: fix ``StringDType`` coerce flag in binary ufunc promotion...
BLD: fix meson deprecation warnings
TYP: Backport multiple typing fixes 2.
MAINT: Update x86-simd-sort subproject (5adb334 → fa944ef)
BUG: fix crash on 32 bit systems using abi3t
MNT: remove some obsolete string to bool workarounds
BUG: centralized helper for output coerce and na_object in stringdtype...
BUG: fix CPU feature env diagnostic buffer overruns
BUG: restore ndarray.conjugate() for legacy user-defined dtypes...
TYP: Avoid shadowed dtype annotations
MAINT: Update verdored-meson/meson to match main.
BUG: fix refcount leak on overlapping copyto with where=False
BUG: fix swallowed cast error in fancy indexing assignment
BUG: Fix buffered iterator stride after removing multi-index
BUG: fix ``np.fromiter`` corruption when reusing a ``StringDType``...
BUG: add a special case for StringDType in np.isdtype
BUG: reference leak in ``simd_sequence_from_iterable``
BUG: ensure lock is held when accessing or writing to RNG state...
BUG: fully reset cached RNG state for non-MT19937 RNGs
TYP: type capabilities max dimensions
BUG: avoid possible stack overflow in arraydescr_dealloc
MAINT: Update cibuildwheel to v4.2.0
MAINT: Skip limited_api tests on some platforms.
TYP: ``isclose`` shape-typing fix for 2d array-likes
BUG: avoid segfaults when legacy copyswap slot is not defined...


To generate a diff of this commit:
cvs rdiff -u -r1.155 -r1.156 pkgsrc/math/py-numpy/Makefile
cvs rdiff -u -r1.60 -r1.61 pkgsrc/math/py-numpy/PLIST
cvs rdiff -u -r1.117 -r1.118 pkgsrc/math/py-numpy/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/math/py-numpy/patches/patch-numpy___core_src_multiarray_arrayobject.c \
    pkgsrc/math/py-numpy/patches/patch-numpy___core_src_umath_ufunc__object.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(unnamed) (text/x-diff, 6.2 KB)
Modified files:

Index: pkgsrc/math/py-numpy/Makefile
diff -u pkgsrc/math/py-numpy/Makefile:1.155 pkgsrc/math/py-numpy/Makefile:1.156
--- pkgsrc/math/py-numpy/Makefile:1.155	Mon Jul 13 04:17:54 2026
+++ pkgsrc/math/py-numpy/Makefile	Mon Aug 17 09:27:49 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.155 2026/07/13 04:17:54 wiz Exp $
+# $NetBSD: Makefile,v 1.156 2026/08/17 09:27:49 adam Exp $
 
-DISTNAME=	numpy-2.5.1
+DISTNAME=	numpy-2.5.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
 MASTER_SITES=	${MASTER_SITE_PYPI:=n/numpy/}

Index: pkgsrc/math/py-numpy/PLIST
diff -u pkgsrc/math/py-numpy/PLIST:1.60 pkgsrc/math/py-numpy/PLIST:1.61
--- pkgsrc/math/py-numpy/PLIST:1.60	Sun Jun 28 15:40:18 2026
+++ pkgsrc/math/py-numpy/PLIST	Mon Aug 17 09:27:49 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.60 2026/06/28 15:40:18 wiz Exp $
+@comment $NetBSD: PLIST,v 1.61 2026/08/17 09:27:49 adam Exp $
 bin/f2py-${PYVERSSUFFIX}
 bin/numpy-config-${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
@@ -226,10 +226,8 @@ ${PYSITELIB}/numpy/_core/tests/examples/
 ${PYSITELIB}/numpy/_core/tests/examples/cython/setup.py
 ${PYSITELIB}/numpy/_core/tests/examples/cython/setup.pyc
 ${PYSITELIB}/numpy/_core/tests/examples/cython/setup.pyo
-${PYSITELIB}/numpy/_core/tests/examples/limited_api/limited_api1.c
-${PYSITELIB}/numpy/_core/tests/examples/limited_api/limited_api2.pyx
-${PYSITELIB}/numpy/_core/tests/examples/limited_api/limited_api_latest.c
-${PYSITELIB}/numpy/_core/tests/examples/limited_api/limited_api_opaque.c
+${PYSITELIB}/numpy/_core/tests/examples/limited_api/limited_api.c
+${PYSITELIB}/numpy/_core/tests/examples/limited_api/limited_api_cython.pyx
 ${PYSITELIB}/numpy/_core/tests/examples/limited_api/meson.build
 ${PYSITELIB}/numpy/_core/tests/examples/limited_api/setup.py
 ${PYSITELIB}/numpy/_core/tests/examples/limited_api/setup.pyc

Index: pkgsrc/math/py-numpy/distinfo
diff -u pkgsrc/math/py-numpy/distinfo:1.117 pkgsrc/math/py-numpy/distinfo:1.118
--- pkgsrc/math/py-numpy/distinfo:1.117	Mon Jul  6 07:11:59 2026
+++ pkgsrc/math/py-numpy/distinfo	Mon Aug 17 09:27:49 2026
@@ -1,9 +1,11 @@
-$NetBSD: distinfo,v 1.117 2026/07/06 07:11:59 wiz Exp $
+$NetBSD: distinfo,v 1.118 2026/08/17 09:27:49 adam Exp $
 
-BLAKE2s (numpy-2.5.1.tar.gz) = 1c173220f43bd37043ccaf322f9bb76c547d4d018c7fe610f3e35a9536ef83ad
-SHA512 (numpy-2.5.1.tar.gz) = cbb1f844bc7feb845de24c4951bc378b0d4d96a1ac7eaa9fe1f615aaf470f33c81e94fddbbd83f555b7d9248b5db60b641a4582b9f39b0f6d906f7a8acdd7add
-Size (numpy-2.5.1.tar.gz) = 20755553 bytes
+BLAKE2s (numpy-2.5.2.tar.gz) = 5d85089a4c6f2305bc7ccdcecf01b29ec11a485bb7d52f6f1a12974342619e2f
+SHA512 (numpy-2.5.2.tar.gz) = 30d0581b90a88f80de49202e9dace7605363e66d1141229cc85a4aef5aad185de4d24820cb7ec8e8860b1e2c593b7795649675ef850d35ef3883b386b5381231
+Size (numpy-2.5.2.tar.gz) = 20773161 bytes
 SHA1 (patch-numpy___core_feature__detection__misc.h) = c0f4d318c93fcd0e36c34c549c7778350b8a6ea5
 SHA1 (patch-numpy___core_include_numpy_npy__common.h) = 175cd8f64af681949c3e8bfde064c93908433ea2
+SHA1 (patch-numpy___core_src_multiarray_arrayobject.c) = df6b7998b2321b01d7e7534e917745a479d96d0c
 SHA1 (patch-numpy___core_src_npymath_npy__math.c) = b28f1a9730d98a18b2f4f97c1c356ca8ad80903d
+SHA1 (patch-numpy___core_src_umath_ufunc__object.c) = 161e7631f95c5b9557fcb05c4ea9daa7f7f884e7
 SHA1 (patch-numpy_linalg_lapack__litemodule.c) = e97ec871c2f33c3121b3c8471a9e5a74c3c798c8

Added files:

Index: pkgsrc/math/py-numpy/patches/patch-numpy___core_src_multiarray_arrayobject.c
diff -u /dev/null pkgsrc/math/py-numpy/patches/patch-numpy___core_src_multiarray_arrayobject.c:1.1
--- /dev/null	Mon Aug 17 09:27:50 2026
+++ pkgsrc/math/py-numpy/patches/patch-numpy___core_src_multiarray_arrayobject.c	Mon Aug 17 09:27:49 2026
@@ -0,0 +1,29 @@
+$NetBSD: patch-numpy___core_src_multiarray_arrayobject.c,v 1.1 2026/08/17 09:27:49 adam Exp $
+
+Avoid static_assert in C.
+
+--- numpy/_core/src/multiarray/arrayobject.c.orig	2026-08-14 12:32:59.056345672 +0000
++++ numpy/_core/src/multiarray/arrayobject.c
+@@ -1296,22 +1296,8 @@ NPY_NO_EXPORT PyTypeObject PyArray_Type
+  * We can choose that this is fine or increase the padding to 16/max_align_t when it happens.
+  * (See comments in `ndarraytypes.h` for more details.)
+  */
+-static_assert(sizeof(PyObject) % 16 == 0,
+-    "Expected sizeof(PyObject) to be multiple of 16 on 64bit builds.");
+ #endif
+ 
+-static_assert(NPY_ALIGNOF(PyArray_Descr_fields) <= 8,
+-              "PyArray_Descr must not require more than 8-byte alignment");
+-static_assert(NPY_ALIGNOF(_PyArray_LegacyDescr_fields) <= 8,
+-              "_PyArray_LegacyDescr must not require more than 8-byte alignment");
+-static_assert(NPY_ALIGNOF(PyArrayObject_fields) <= 8,
+-              "PyArrayObject must not require more than 8-byte alignment");
+-static_assert(NPY_ALIGNOF(PyArrayMultiIterObject_fields) <= 8,
+-              "PyArrayMultiIterObject must not require more than 8-byte alignment");
+-static_assert(NPY_ALIGNOF(PyArrayIterObject_fields) <= 8,
+-              "PyArrayIterObject must not require more than 8-byte alignment");
+-static_assert(NPY_ALIGNOF(PyArrayNeighborhoodIterObject_fields) <= 8,
+-              "PyArrayNeighborhoodIterObject must not require more than 8-byte alignment");
+ #undef _PyDataType_GET_ITEM_DATA
+ /*NUMPY_API*/
+ NPY_NO_EXPORT PyArray_Descr_fields *
Index: pkgsrc/math/py-numpy/patches/patch-numpy___core_src_umath_ufunc__object.c
diff -u /dev/null pkgsrc/math/py-numpy/patches/patch-numpy___core_src_umath_ufunc__object.c:1.1
--- /dev/null	Mon Aug 17 09:27:50 2026
+++ pkgsrc/math/py-numpy/patches/patch-numpy___core_src_umath_ufunc__object.c	Mon Aug 17 09:27:49 2026
@@ -0,0 +1,15 @@
+$NetBSD: patch-numpy___core_src_umath_ufunc__object.c,v 1.1 2026/08/17 09:27:49 adam Exp $
+
+Avoid static_assert in C.
+
+--- numpy/_core/src/umath/ufunc_object.c.orig	2026-08-14 12:42:43.705330610 +0000
++++ numpy/_core/src/umath/ufunc_object.c
+@@ -5489,8 +5489,6 @@ PyUFunc_RegisterLoopForType(PyUFuncObjec
+ #undef _SETCPTR
+ 
+ #undef _PyUFuncObject_GET_ITEM_DATA
+-static_assert(NPY_ALIGNOF(PyUFuncObject_fields) <= 8,
+-              "PyUFuncObject must not require more than 8-byte alignment");
+ /*UFUNC_API*/
+ NPY_NO_EXPORT PyUFuncObject_fields *
+ _PyUFuncObject_GET_ITEM_DATA(const PyUFuncObject *obj)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.