• [Python-announce] NumPy 2.5.1 released.

    From Charles R Harris@charlesr.harris@gmail.com to comp.lang.python.announce on Sat Jul 4 12:03:34 2026
    From Newsgroup: comp.lang.python.announce

    Hi All,

    NumPy 2.5.1 is a patch release that fixes bugs discovered after the 2.5.0 release. The most noticeable fix is to the numpy datetime cython API
    which should allow downstream to support NumPy versions older than 2.5. Preparations for Python 3.15 continue along with typing improvements.

    This release supports Python versions 3.12-3.14. Wheels can be downloaded
    from PyPI <https://pypi.org/project/numpy/2.5.1>; release notes and the changelog are available on Github <https://github.com/numpy/numpy/releases/tag/v2.5.1>.


    *Contributors*

    A total of 10 people contributed to this release. People with a "+" by
    their names contributed a patch for the first time.

    - Adhyan Gupta +
    - Ankit Ahlawat
    - Charles Harris
    - Iason Krommydas
    - Joren Hammudoglu
    - Kumar Aditya
    - Nathan Goldbaum
    - Sebastian Berg
    - Ties Jan Hefting +
    - Vineet Kumar


    *Pull requests merged*

    A total of 20 pull requests were merged for this release.

    - #31707: MAINT: Prepare 2.5.x for further development
    - #31721: CI: fix new ``cython-lint`` errors (#31711)
    - #31723: MAINT: Update meson to match main
    - #31729: TST: use setup-sde instead of curl to get SDE binaries (#31727)
    - #31829: BUG: Relax finfo to be easier accessible for all user dtypes...
    - #31831: TYP: Fix ``flatiter.__next__`` return type for ``object_``
    and...
    - #31832: BUG: avoid deadlocks using NpyString API (#31682)
    - #31833: BUG: fix out array leak in reduceat and accumulate when
    dtype...
    - #31835: BUG: fix numpy datetime cython APIs to be compatible with
    older...
    - #31836: TYP: Fix incorrect dtype inference of ``asarray([])`` (#31732)
    - #31837: TYP: Fix ``np.ma.masked_array`` 2.5.0 regression
    - #31838: FIX: Refactor error handling in array_setstate to prevent
    typecode...
    - #31839: TST: xfail multithreaded BLAS test more generously
    - #31840: MAINT: Rename subroutine for crackfortran tests
    - #31842: BUG: fix leak in reductions when a ufunc override errors or
    is...
    - #31849: BLD: set minimum required gcc version to 10.3 (#31843)
    - #31855: CI: fix hangs on MacOS ASan CI (#31853)
    - #31856: BUG: fix several bugs in StringDType operations (#31846)
    - #31857: BUG: Fix segfault in MT19937 by preventing recursive seed
    lists...
    - #31858: BUG: Fix signed integer overflow in datetime.c (#31688)


    Cheers,

    Charles Harris
    --- Synchronet 3.22a-Linux NewsLink 1.2