@@ -21,9 +21,75 @@ The highlights of this release are: |
21 | 21 | - Cython 3.0.0 compatibility. |
22 | 22 | - Use of the Meson build system |
23 | 23 | - Updated SIMD support |
| 24 | +- f2py fixes, meson and bind(x) support |
24 | 25 |
|
25 | 26 | The Python versions supported in this release are 3.9-3.12. |
26 | 27 |
|
| 28 | + |
| 29 | +New Features |
| 30 | +============ |
| 31 | + |
| 32 | +Array API v2022.12 support in ``numpy.array_api`` |
| 33 | +------------------------------------------------- |
| 34 | + |
| 35 | +- ``numpy.array_api`` now full supports the `v2022.12 version |
| 36 | + <https://data-apis.org/array-api/2022.12>`__ of the array API standard. Note |
| 37 | + that this does not yet include the optional ``fft`` extension in the |
| 38 | + standard. |
| 39 | + |
| 40 | +(`gh-23789 <https://github.com/numpy/numpy/pull/23789>`__) |
| 41 | + |
| 42 | +Support for the updated Accelerate BLAS/LAPACK library |
| 43 | +------------------------------------------------------ |
| 44 | +Support for the updated Accelerate BLAS/LAPACK library, including ILP64 (64-bit |
| 45 | +integer) support, in macOS 13.3 has been added. This brings arm64 support, and |
| 46 | +significant performance improvements of up to 10x for commonly used linear |
| 47 | +algebra operations. When Accelerate is selected at build time, the 13.3+ |
| 48 | +version will automatically be used if available. |
| 49 | + |
| 50 | +(`gh-24053 <https://github.com/numpy/numpy/pull/24053>`__) |
| 51 | + |
| 52 | +``meson`` backend for ``f2py`` |
| 53 | +------------------------------ |
| 54 | +``f2py`` in compile mode (i.e. ``f2py -c``) now accepts the ``--backend meson`` |
| 55 | +option. This is the default option for Python ``3.12`` on-wards. Older versions |
| 56 | +will still default to ``--backend distutils``. |
| 57 | + |
| 58 | +To support this in realistic use-cases, in compile mode ``f2py`` takes a |
| 59 | +``--dep`` flag one or many times which maps to ``dependency()`` calls in the |
| 60 | +``meson`` backend, and does nothing in the ``distutils`` backend. |
| 61 | + |
| 62 | +There are no changes for users of ``f2py`` only as a code generator, i.e. |
| 63 | +without ``-c``. |
| 64 | + |
| 65 | +(`gh-24532 <https://github.com/numpy/numpy/pull/24532>`__) |
| 66 | + |
| 67 | +``bind(c)`` support for ``f2py`` |
| 68 | +-------------------------------- |
| 69 | +Both functions and subroutines can be annotated with ``bind(c)``. ``f2py`` will |
| 70 | +handle both the correct type mapping, and preserve the unique label for other |
| 71 | +``C`` interfaces. |
| 72 | + |
| 73 | +**Note:** ``bind(c, name = 'routine_name_other_than_fortran_routine')`` is not |
| 74 | +honored by the ``f2py`` bindings by design, since ``bind(c)`` with the ``name`` |
| 75 | +is meant to guarantee only the same name in ``C`` and ``Fortran``, not in |
| 76 | +``Python`` and ``Fortran``. |
| 77 | + |
| 78 | +(`gh-24555 <https://github.com/numpy/numpy/pull/24555>`__) |
| 79 | + |
| 80 | + |
| 81 | +Improvements |
| 82 | +============ |
| 83 | + |
| 84 | +``iso_c_binding`` support for ``f2py`` |
| 85 | +-------------------------------------- |
| 86 | +Previously, users would have to define their own custom ``f2cmap`` file to use |
| 87 | +type mappings defined by the Fortran2003 ``iso_c_binding`` intrinsic module. |
| 88 | +These type maps are now natively supported by ``f2py`` |
| 89 | + |
| 90 | +(`gh-24555 <https://github.com/numpy/numpy/pull/24555>`__) |
| 91 | + |
| 92 | + |
27 | 93 | Build system changes |
28 | 94 | ==================== |
29 | 95 |
|
@@ -75,27 +141,37 @@ issue tracker. We aim to phase out ``setup.py`` builds as soon as possible, and |
75 | 141 | therefore would like to see all potential blockers surfaced early on in the |
76 | 142 | 1.26.0 release cycle. |
77 | 143 |
|
| 144 | + |
78 | 145 | Contributors |
79 | 146 | ============ |
80 | 147 |
|
81 | | -A total of 11 people contributed to this release. People with a "+" by their |
| 148 | +A total of 18 people contributed to this release. People with a "+" by their |
82 | 149 | names contributed a patch for the first time. |
83 | 150 |
|
| 151 | +* @DWesl |
| 152 | +* Albert Steppi + |
84 | 153 | * Bas van Beek |
85 | 154 | * Charles Harris |
| 155 | +* Developer-Ecosystem-Engineering |
| 156 | +* Jake Vanderplas |
| 157 | +* Marten van Kerkwijk |
86 | 158 | * Matti Picus |
87 | 159 | * Melissa Weber Mendonça |
| 160 | +* Namami Shanker |
| 161 | +* Nathan Goldbaum |
88 | 162 | * Ralf Gommers |
| 163 | +* Rohit Goswami |
89 | 164 | * Sayed Adel |
90 | 165 | * Sebastian Berg |
91 | 166 | * Stefan van der Walt |
92 | 167 | * Tyler Reddy |
93 | 168 | * Warren Weckesser |
94 | 169 |
|
| 170 | + |
95 | 171 | Pull requests merged |
96 | 172 | ==================== |
97 | 173 |
|
98 | | -A total of 18 pull requests were merged for this release. |
| 174 | +A total of 51 pull requests were merged for this release. |
99 | 175 |
|
100 | 176 | * `#24305 <https://github.com/numpy/numpy/pull/24305>`__: MAINT: Prepare 1.26.x branch for development |
101 | 177 | * `#24308 <https://github.com/numpy/numpy/pull/24308>`__: MAINT: Massive update of files from main for numpy 1.26 |
@@ -115,3 +191,36 @@ A total of 18 pull requests were merged for this release. |
115 | 191 | * `#24404 <https://github.com/numpy/numpy/pull/24404>`__: BLD: vendor meson-python to make the Windows builds with SIMD... |
116 | 192 | * `#24405 <https://github.com/numpy/numpy/pull/24405>`__: BLD, SIMD: The meson CPU dispatcher implementation |
117 | 193 | * `#24406 <https://github.com/numpy/numpy/pull/24406>`__: MAINT: Remove versioneer |
| 194 | +* `#24409 <https://github.com/numpy/numpy/pull/24409>`__: REL: Prepare for the NumPy 1.26.0b1 release. |
| 195 | +* `#24453 <https://github.com/numpy/numpy/pull/24453>`__: MAINT: Pin upper version of sphinx. |
| 196 | +* `#24455 <https://github.com/numpy/numpy/pull/24455>`__: ENH: Add prefix to _ALIGN Macro |
| 197 | +* `#24456 <https://github.com/numpy/numpy/pull/24456>`__: BUG: cleanup warnings [skip azp][skip circle][skip travis][skip... |
| 198 | +* `#24460 <https://github.com/numpy/numpy/pull/24460>`__: MAINT: Upgrade to spin 0.5 |
| 199 | +* `#24495 <https://github.com/numpy/numpy/pull/24495>`__: BUG: ``asv dev`` has been removed, use ``asv run``. |
| 200 | +* `#24496 <https://github.com/numpy/numpy/pull/24496>`__: BUG: Fix meson build failure due to unchanged inplace auto-generated... |
| 201 | +* `#24521 <https://github.com/numpy/numpy/pull/24521>`__: BUG: fix issue with git-version script, needs a shebang to run |
| 202 | +* `#24522 <https://github.com/numpy/numpy/pull/24522>`__: BUG: Use a default assignment for git_hash [skip ci] |
| 203 | +* `#24524 <https://github.com/numpy/numpy/pull/24524>`__: BUG: fix NPY_cast_info error handling in choose |
| 204 | +* `#24526 <https://github.com/numpy/numpy/pull/24526>`__: BUG: Fix common block handling in f2py |
| 205 | +* `#24541 <https://github.com/numpy/numpy/pull/24541>`__: CI,TYP: Bump mypy to 1.4.1 |
| 206 | +* `#24542 <https://github.com/numpy/numpy/pull/24542>`__: BUG: Fix assumed length f2py regression |
| 207 | +* `#24544 <https://github.com/numpy/numpy/pull/24544>`__: MAINT: Harmonize fortranobject |
| 208 | +* `#24545 <https://github.com/numpy/numpy/pull/24545>`__: TYP: add kind argument to numpy.isin type specification |
| 209 | +* `#24561 <https://github.com/numpy/numpy/pull/24561>`__: BUG: fix comparisons between masked and unmasked structured arrays |
| 210 | +* `#24590 <https://github.com/numpy/numpy/pull/24590>`__: CI: Exclude import libraries from list of DLLs on Cygwin. |
| 211 | +* `#24591 <https://github.com/numpy/numpy/pull/24591>`__: BLD: fix ``_umath_linalg`` dependencies |
| 212 | +* `#24594 <https://github.com/numpy/numpy/pull/24594>`__: MAINT: Stop testing on ppc64le. |
| 213 | +* `#24602 <https://github.com/numpy/numpy/pull/24602>`__: BLD: meson-cpu: fix SIMD support on platforms with no features |
| 214 | +* `#24606 <https://github.com/numpy/numpy/pull/24606>`__: BUG: Change Cython ``binding`` directive to "False". |
| 215 | +* `#24613 <https://github.com/numpy/numpy/pull/24613>`__: ENH: Adopt new macOS Accelerate BLAS/LAPACK Interfaces, including... |
| 216 | +* `#24614 <https://github.com/numpy/numpy/pull/24614>`__: DOC: Update building docs to use Meson |
| 217 | +* `#24615 <https://github.com/numpy/numpy/pull/24615>`__: TYP: Add the missing ``casting`` keyword to ``np.clip`` |
| 218 | +* `#24616 <https://github.com/numpy/numpy/pull/24616>`__: TST: convert cython test from setup.py to meson |
| 219 | +* `#24617 <https://github.com/numpy/numpy/pull/24617>`__: MAINT: Fixup ``fromnumeric.pyi`` |
| 220 | +* `#24622 <https://github.com/numpy/numpy/pull/24622>`__: BUG, ENH: Fix ``iso_c_binding`` type maps and fix ``bind(c)``... |
| 221 | +* `#24629 <https://github.com/numpy/numpy/pull/24629>`__: TYP: Allow ``binary_repr`` to accept any object implementing... |
| 222 | +* `#24630 <https://github.com/numpy/numpy/pull/24630>`__: TYP: Explicitly declare ``dtype`` and ``generic`` hashable |
| 223 | +* `#24637 <https://github.com/numpy/numpy/pull/24637>`__: ENH: Refactor the typing "reveal" tests using `typing.assert_type` |
| 224 | +* `#24638 <https://github.com/numpy/numpy/pull/24638>`__: MAINT: Bump actions/checkout from 3.6.0 to 4.0.0 |
| 225 | +* `#24647 <https://github.com/numpy/numpy/pull/24647>`__: ENH: ``meson`` backend for ``f2py`` |
| 226 | +* `#24648 <https://github.com/numpy/numpy/pull/24648>`__: MAINT: Refactor partial load Workaround for Clang |