Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
329 commits
Select commit Hold shift + click to select a range
6c8912a
MNT: Apply ruff/flake8-bugbear B039
DimitriPapadopoulos Apr 18, 2025
51c6169
MNT: Apply ruff/flake8-bugbear rule B909
DimitriPapadopoulos Apr 18, 2025
18b06a5
MNT: Enforce ruff/flake8-bugbear rules (B)
DimitriPapadopoulos Apr 18, 2025
daa3c57
MNT: Better solution for B008
DimitriPapadopoulos Apr 18, 2025
4e48a1e
MNT: Better solution for B020
DimitriPapadopoulos Apr 18, 2025
bfc040e
MNT: Better solution for B030
DimitriPapadopoulos Apr 18, 2025
6559962
MNT: Better solution for B909
DimitriPapadopoulos Apr 18, 2025
ce3fb3c
MNT: Fix new CI issue
DimitriPapadopoulos Apr 27, 2025
a888681
MNT: get rid of dead code
DimitriPapadopoulos Apr 28, 2025
6427409
MNT: Revert "MNT: get rid of dead code"
DimitriPapadopoulos Apr 29, 2025
3f39d0a
DOC: Remove references to Python 2/3
DimitriPapadopoulos May 14, 2025
5722abd
DOC: get rid of the entire sentence
DimitriPapadopoulos May 14, 2025
af8bb63
STY: Apply ruff/isort rule I001
DimitriPapadopoulos May 15, 2025
edb16ca
STY: Remove comments about import order
DimitriPapadopoulos May 15, 2025
4e107ca
MNT: Enforce ruff/isort rules (I)
DimitriPapadopoulos May 15, 2025
83812bb
MNT: Get rif of `# pylint: ` pragma controls
DimitriPapadopoulos May 15, 2025
5f0e2f9
MAINT: Enable linting with ruff E501
eendebakpt May 15, 2025
f3c9382
MAINT: Enable linting with ruff E501
eendebakpt May 15, 2025
964530e
MNT: Get rid of `version: $Id` CVS tags
DimitriPapadopoulos May 15, 2025
d936ca0
Merge pull request #28956 from DimitriPapadopoulos/Python_X
charris May 15, 2025
abde37d
fix ceil argument
eendebakpt May 15, 2025
23a8bfd
MNT: import numpy as np
DimitriPapadopoulos May 15, 2025
10edb97
DOC: Get rid of Pyflakes / flake8
DimitriPapadopoulos May 15, 2025
59696de
MNT: Get rid of Pyflakes
DimitriPapadopoulos May 15, 2025
f544bbe
STY: Apply ruff/flake8-implicit-str-concat rufe ISC001
DimitriPapadopoulos May 15, 2025
1b9db02
MNT: Enforce ruff/flake8-implicit-str-concat rules (ISC)
DimitriPapadopoulos May 15, 2025
1f714cf
Merge pull request #28971 from eendebakpt/ruffe501_ma
charris May 15, 2025
da2dd37
Merge pull request #28969 from DimitriPapadopoulos/I
charris May 15, 2025
877a113
Merge pull request #28974 from DimitriPapadopoulos/version_Id
charris May 15, 2025
7ae13aa
Merge pull request #28972 from DimitriPapadopoulos/pylint
charris May 15, 2025
6259580
Merge pull request #28975 from DimitriPapadopoulos/import_numpy_as__nx
charris May 15, 2025
66b7a44
Merge pull request #28977 from DimitriPapadopoulos/ISC
charris May 15, 2025
b3bad31
BUG: copy to avoid index/assigned array overlap (#26958)
tylerjereddy May 15, 2025
8a5d632
Apply ruff/pandas-vet rule PD011
DimitriPapadopoulos May 15, 2025
8552f09
MNT: Enforce rufr/pandas-vet rules (PD)
DimitriPapadopoulos May 15, 2025
71faac1
Merge pull request #28765 from DimitriPapadopoulos/B
jorenham May 15, 2025
9a2ba98
Merge pull request #28976 from DimitriPapadopoulos/Pyflakes_flake8
charris May 16, 2025
4e628f4
Merge pull request #28978 from DimitriPapadopoulos/PD
charris May 16, 2025
112a707
STY: reformat the ``_typing`` imports without trailing commas
jorenham May 16, 2025
5d90c5a
STY: appease ruff
jorenham May 16, 2025
67bde92
MNT: Use isinstance() instead of comparing type()
DimitriPapadopoulos May 16, 2025
685890b
MNT: more isinstance()
DimitriPapadopoulos May 16, 2025
db5535a
MNT: constant string arrays instead of pointers in C
DimitriPapadopoulos May 16, 2025
a5401fd
MNT: alternative handling of trailing null character
DimitriPapadopoulos May 16, 2025
22132f1
MNT: more const'ness for arrays of string literals in C
DimitriPapadopoulos May 16, 2025
3e68b26
Merge pull request #28981 from jorenham/_typing.__init__-import-format
charris May 16, 2025
90d53b8
MNT: Align ruff pin between CI and environment.yml
MarcoGorelli May 16, 2025
1943e07
Merge pull request #28987 from MarcoGorelli/enable-lint-in-ci
jorenham May 16, 2025
5fe514b
Merge pull request #28984 from DimitriPapadopoulos/type==
jorenham May 16, 2025
ee56537
TYP: add missing ``ndarray.__{add,mul}__`` overloads for ``character`…
jorenham May 16, 2025
6ebc810
TYP: add type-tests for ndarray ``character`` ops
jorenham May 16, 2025
aaca767
TYP: add ``_AnyShape`` to ``numpy._typing``
jorenham May 16, 2025
3ca7ffb
TYP: use ``_AnyShape`` as ``NDArray`` shape-type default
jorenham May 16, 2025
12b741e
TYP: use a gradual shape-type if unknown
jorenham May 16, 2025
f5ae1f7
TYP: update the type-tests for gradual shape-type defaults
jorenham May 16, 2025
260bfca
STY: appease ruff
jorenham May 16, 2025
a16ef8c
TST: fix ``NDArray`` doctest
jorenham May 16, 2025
a183652
MAINT: Bump github/codeql-action from 3.28.17 to 3.28.18
dependabot[bot] May 16, 2025
cd6b1d3
TYP: np.argmin changes
lvllvl May 4, 2025
7beea21
Merge pull request #28906 from lvllvl/issue-28641
jorenham May 16, 2025
d840358
Merge pull request #28989 from numpy/dependabot/github_actions/github…
charris May 16, 2025
bc88f60
MAINT: Deprecate `.T` property for non-2dim arrays and scalars
mtsokol Apr 10, 2025
d2e4034
Provide fix guidance
mtsokol Apr 12, 2025
0892ed3
Apply review comments
mtsokol Apr 19, 2025
13b5692
Apply review comments
mtsokol May 13, 2025
4985e20
Merge pull request #28988 from jorenham/typing/add-missing-ndarray-op…
charris May 16, 2025
d8ba2e7
Merge pull request #28678 from mtsokol/T-non-2dim-depr
charris May 16, 2025
6f37e80
Revert "DEP: Deprecate `.T` property for non-2dim arrays and scalars"
rgommers May 16, 2025
c807e09
Merge pull request #28990 from numpy/revert-28678-T-non-2dim-depr
rgommers May 16, 2025
6697fc7
MAINT: update NPY_FEATURE_VERSION after dropping python 3.10
h-vetinari May 17, 2025
4125f0a
TYP: allow inplace division of ``NDArray[timedelta64]`` by floats
jorenham May 17, 2025
8360da6
TYP: remove ``from __future__ import annotations``
jorenham May 17, 2025
dc8c2e6
Merge pull request #28995 from jorenham/typing/__future__.annotations
charris May 17, 2025
8078e91
MAINT: Update main after 2.2.6 release.
charris May 17, 2025
8d722b8
Merge pull request #28993 from h-vetinari/API
rgommers May 18, 2025
c0e2559
MAINT: Update download-wheels for multiple pages
charris May 18, 2025
e927ee4
Merge pull request #29002 from charris/fix-download-wheels
andyfaff May 19, 2025
6167ca8
ENH: Disable the alloc cache under address and memory sanitizers
hawkinsp May 19, 2025
92f2622
ENH, SIMD: Initial implementation of Highway wrapper
seiko2plus Apr 1, 2025
5d48ec3
SIMD: Update wrapper with improved docs and type support
seiko2plus Apr 12, 2025
e099bba
SIMD: Improve isolation and constexpr handling in wrapper
seiko2plus Apr 17, 2025
1fd2076
Update Highway submodule to latest master
seiko2plus Apr 17, 2025
80e6a30
SIMD: Fix compile error by using MaxLanes instead of Lanes for array …
seiko2plus Apr 17, 2025
6519b28
SIMD: Rename NPY_SIMDX to NPY_HWY
seiko2plus May 17, 2025
275e45c
Disable Highway EMU128 scalar emulation
seiko2plus May 19, 2025
14f6e22
Merge pull request #28998 from charris/post-2.2.6-release-update
charris May 19, 2025
bcf0de0
Merge pull request #28221 from Tontonio3/isclose-inf-tol-war
charris May 19, 2025
3c76265
Merge pull request #28982 from jorenham/typing/gradual-shape-type
charris May 19, 2025
c2d5e00
Merge pull request #28994 from jorenham/typing/ndarray-timedelta64-idiv
charris May 19, 2025
0506cf6
Merge pull request #29006 from hawkinsp/asan
charris May 19, 2025
06c04a3
TYP: Type ``MaskedArray.__{iadd,isub,imul,itruediv,ifloordiv,ipow}__`…
MarcoGorelli May 19, 2025
088fe37
MNT: fix linter issues on main
ngoldbaum May 20, 2025
9b9dc93
MNT: switch back to setup-python in CI
ngoldbaum May 20, 2025
b1656d2
Merge pull request #29008 from ngoldbaum/fix-linter
charris May 20, 2025
530409d
CI: update cibuildwheel to 3.0.0b1 and enable cp314 [wheel build]
ngoldbaum May 20, 2025
d68ba1e
MNT: respond to code review [wheel build]
ngoldbaum May 20, 2025
198cc9a
MNT: move back to 'cd tools' hack [wheel build]
ngoldbaum May 20, 2025
2a7a0d0
DOC: Fixes line numbers on classes decorated with set_module (#28629)…
aureliobarbosa May 20, 2025
d67104a
MAINT: Bump larsoner/circleci-artifacts-redirector-action
dependabot[bot] May 21, 2025
b2b54a9
Merge pull request #29018 from numpy/dependabot/github_actions/larson…
charris May 21, 2025
084f183
BEG, MAINT: Begin NumPy 2.4.0 development.
charris May 20, 2025
48a0cf7
Merge pull request #29019 from charris/begin-2.4.0
charris May 21, 2025
bae7d08
Fix workflow error
StanFromIreland May 21, 2025
bbdebae
Merge pull request #29032 from StanFromIreland/patch-1
charris May 21, 2025
54529e2
BUG: Avoid compile errors in f2py modules
angus-g May 22, 2025
ce6a72c
DOC: Expand/clean up extension module import error
seberg May 22, 2025
552ce2a
appease linter
seberg May 22, 2025
1c269f6
Merge branch 'main' into cp314-nightlies
rgommers May 22, 2025
d63cc91
Revert enable/CIBW_ENABLE changes [wheel build]
rgommers May 22, 2025
dd95e3e
explicitly re-raise again (worked before because the next line raises…
seberg May 22, 2025
ae01519
Update numpy/_core/__init__.py
seberg May 23, 2025
3cbb8cd
BUG: handle the case of modules with derived types
zoghbi-a May 23, 2025
f84c105
TST: tests for modules with derived types
zoghbi-a May 23, 2025
ac9a024
fix W291
zoghbi-a May 23, 2025
cbd2fef
BUG: Fix cache use regression
seberg May 23, 2025
e57bb2b
ok, don't attempt to remove the statics (too ingrained)
seberg May 23, 2025
d04c239
Merge pull request #28985 from DimitriPapadopoulos/const_char
charris May 23, 2025
e12da6e
Merge pull request #29034 from angus-g/f2py-incompat-pointer
charris May 23, 2025
5378d3d
Merge pull request #29040 from zoghbi-a/fix-f2py-derived-types
charris May 23, 2025
06f4d5e
ENH: add __array_function__ protocol in polynomial (#28996)
lvllvl May 23, 2025
aee4239
Merge pull request #29041 from seberg/fix-29006
charris May 23, 2025
27aac15
Merge pull request #29007 from ngoldbaum/cp314-nightlies
charris May 23, 2025
1d271d5
Merge pull request #29036 from seberg/cmodule-import-info
charris May 23, 2025
4c1eb70
TYP: annotate strings.slice
jorenham May 25, 2025
aaae32e
TYP: remove expired ``tostring`` methods
jorenham May 25, 2025
8ba2c63
use pypy 3.11 nightly which has a fix for ctypeslib [skip azp][skip c…
mattip May 25, 2025
0e38ee1
Merge pull request #29051 from mattip/pypy-nightly2
charris May 25, 2025
8015028
Merge pull request #29050 from jorenham/typing/tostring
charris May 25, 2025
3c995e7
Merge pull request #29048 from jorenham/typing/strings.slice
charris May 25, 2025
3d4629c
BLD: allow targeting webassembly without emscripten
zebreus May 26, 2025
8389ff9
TYP: fix invalid overload definition in ``_core.defchararray.add``
jorenham May 26, 2025
4cce8e4
TYP: annotate the ``*args`` and ``**kwargs`` of the ``ufunc`` methods
jorenham May 26, 2025
466f64f
TYP: annotate the return type of ``numpy.typing.__getattr__``
jorenham May 26, 2025
1707fa1
TYP: annotate ``numpy.lib._format_impl``
jorenham May 26, 2025
436ec15
BLD: use sonoma image on Cirrus for [wheel build][skip actions][skip …
mattip May 27, 2025
005ce76
Merge pull request #29061 from mattip/sonoma-cirrus
andyfaff May 27, 2025
fba2e60
DOC: fix typo in documentation of vecmat
Mojert May 27, 2025
39a4222
MAINT: Enforce ruff E501
eendebakpt May 27, 2025
f8b37c1
enforce more files
eendebakpt May 27, 2025
9ea773d
more enforcement
eendebakpt May 27, 2025
f84d964
DOC: fix typo in documentation of matvec
Mojert May 27, 2025
6fb8dc2
Merge pull request #29066 from Mojert/typo-vecmat
charris May 27, 2025
450650f
Merge pull request #29057 from jorenham/typing/fix-defchararray.add
charris May 27, 2025
7eacb9e
Merge pull request #29063 from MarcoGorelli/align-maskedarray-with-nd…
MarcoGorelli May 27, 2025
f1e7527
Merge pull request #29058 from jorenham/typing/missing-annotations
charris May 27, 2025
ba27d95
BUG: add bounds-checking to in-place string multiply (#29060)
ngoldbaum May 27, 2025
5a87756
MAINT: Convert umath_linalg to multi-phase init (PEP 489)
AA-Turner May 28, 2025
7ae80cd
MAINT: Convert dummymodule to multi-phase init (PEP 489)
AA-Turner May 28, 2025
0145d7c
MAINT: Convert lapack_lite to multi-phase init (PEP 489)
AA-Turner May 28, 2025
3363b38
TYP: Type ``MaskedArray.__{add,radd,sub,rsub}__`` (#29012)
MarcoGorelli May 28, 2025
f9baafb
review comments
eendebakpt May 28, 2025
5ab56f6
Convert pocketfft_umath to multi-phase init (PEP 489) (#29028)
AA-Turner May 29, 2025
e107f24
MAINT: Convert multiarray to multi-phase init (PEP 489) (#29022)
AA-Turner May 29, 2025
3f1b457
Merge pull request #29068 from eendebakpt/ruff_e501_tests
charris May 29, 2025
b37f761
BLD: bump OpenBLAS version, use OpenBLAS for win-arm64 (#29039)
mattip May 29, 2025
8e4abe0
CI: bump to cibuildwheel 3.0.0b4 [wheel build]
henryiii May 29, 2025
bcf8a99
CI: clean up cibuildwheel config a bit [wheel build]
henryiii May 28, 2025
3318fbd
MNT: Avoid use of deprecated _PyDict_GetItemStringWithError in f2py
ngoldbaum May 29, 2025
725d53f
Merge pull request #29083 from ngoldbaum/f2py-getitemref
charris May 29, 2025
336d661
Ignore all build-* directories
crusaderky May 29, 2025
3d59a66
Merge pull request #29078 from henryiii/henryiii/ci/cibw_cleanup
charris May 29, 2025
35bc751
Merge pull request #29080 from henryiii/henryiii/ci/cibw3b4
charris May 29, 2025
7d2e441
Merge pull request #29088 from crusaderky/ignore-nogil
charris May 29, 2025
d27f661
TYP: fix `NDArray[integer]` inplace operator mypy issue
jorenham May 30, 2025
998f561
TYP: regression tests for `NDArray[integer]` inplace ops
jorenham May 30, 2025
8c35aaa
MAINT: Bump ossf/scorecard-action from 2.4.1 to 2.4.2
dependabot[bot] May 30, 2025
32cbf09
MAINT: bump `mypy` to `1.16.0`
jorenham May 30, 2025
8d78b58
Merge pull request #29093 from numpy/dependabot/github_actions/ossf/s…
charris May 30, 2025
0b1915a
Merge pull request #29095 from jorenham/typing/mypy-1.16.0
charris May 30, 2025
e699298
Merge pull request #29092 from jorenham/typing/mypy-19171
charris May 30, 2025
87e769a
TYP: run mypy in strict mode
jorenham May 30, 2025
51f4ac8
TYP: disable mypy's `no-untyped-call` errors in the `MaskedArray` typ…
jorenham May 30, 2025
57296fb
TYP: remove problematic runtime code from a `.pyi` test module
jorenham May 30, 2025
f925c0c
BUG: f2py: thread-safe forcomb (#29091)
crusaderky May 31, 2025
ecb2f40
PERF: Use dict instead of list to make NpzFile member existence check…
DWesl May 31, 2025
358a13c
BENCH: Increase array sizes for ufunc and sort benchmarks (#29084)
May 31, 2025
78f8e06
Merge pull request #29097 from jorenham/typing/mypy-strict
charris May 31, 2025
79ee0b2
Fix some incorrect reST markups
Jun 1, 2025
1654bd1
Merge pull request #29106 from koyuki7w/patch-1
charris Jun 1, 2025
5e3aa37
MAINT: fix SPDX license expressions for LAPACK, GCC runtime libs
rgommers Jun 2, 2025
b353a18
Merge pull request #29111 from rgommers/fix-spdx-identifiers
charris Jun 2, 2025
4c8fd85
Merge pull request #29053 from zebreus/allow-targeting-webassembly-wi…
rgommers Jun 3, 2025
3b465b0
MAINT: cleanup from finalized concatenate deprecation (#29115)
mattip Jun 3, 2025
d52bccb
TYP: minor ufunc alias fixes in ``__init__.pyi`` (#29120)
DanisNone Jun 3, 2025
2306bce
update windows-2019 to windows-2022 and meson flag[wheel build]
abhishek-iitmadras May 14, 2025
9328c19
MAINT: Bump github/codeql-action from 3.28.18 to 3.28.19
dependabot[bot] Jun 3, 2025
69948f3
DOC: remove very outdated info on ATLAS (#29119)
rgommers Jun 3, 2025
172cc06
Merge pull request #29121 from numpy/dependabot/github_actions/github…
charris Jun 3, 2025
ff1d6cc
Merge pull request #28955 from abhishek-iitmadras/abhishek_window
charris Jun 3, 2025
8944b2b
DOC: fix typo in Numpy's module structure
mgred Jun 3, 2025
6822a7b
update according to review
mgred Jun 4, 2025
6ab5490
MAINT: Bump conda-incubator/setup-miniconda from 3.1.1 to 3.2.0
dependabot[bot] Jun 4, 2025
9501b22
Merge pull request #29128 from numpy/dependabot/github_actions/conda-…
charris Jun 4, 2025
12a0328
Merge pull request #29122 from mgred/patch-1
charris Jun 4, 2025
a88d014
MAINT: Bump ``scipy-doctest`` to 1.8 (#29085)
ev-br Jun 5, 2025
c6eed9a
Merge pull request #28622 from seiko2plus/hwy_wrapper
Mousius Jun 5, 2025
7fbc71c
MAINT: Bump mamba-org/setup-micromamba from 2.0.4 to 2.0.5
dependabot[bot] Jun 5, 2025
031f442
Merge pull request #29133 from numpy/dependabot/github_actions/mamba-…
charris Jun 5, 2025
e81abf7
MAINT: Update main after 2.3.0 release.
charris Jun 7, 2025
3467b99
TYP: update typing stubs for ``_pyinstaller/hook-numpy.py``
jorenham Jun 7, 2025
7bf8570
TYP: add missing ``numpy.lib`` exports
jorenham Jun 8, 2025
128ab7f
TYP: add ``containsderivedtypes`` to ``f2py.auxfuncs.__all__``
jorenham Jun 8, 2025
cd53806
TYP: remove ``run_command`` annotations in ``f2py.diagnose``
jorenham Jun 8, 2025
61512bc
BUG: Missing array-api ``capabilities()`` key
jorenham Jun 8, 2025
c086421
Merge pull request #29141 from charris/post-2.3.0-release-update
rgommers Jun 8, 2025
0606fcd
Merge pull request #29142 from jorenham/typing/_pyinstaller.hook-numpy
rgommers Jun 8, 2025
0b6a990
Merge pull request #29145 from jorenham/typing/lib.__all__
rgommers Jun 8, 2025
0e0c8d3
Merge pull request #29146 from jorenham/typing/f2py-2.3.0
rgommers Jun 8, 2025
21c2e70
TST: migrating from pytz to zoneinfo + tzdata (where needed)
V-R-S Jun 8, 2025
e48fdef
BUG: remove `NPY_ALIGNMENT_REQUIRED`
SoapGentoo Jun 8, 2025
f0e082d
DOC: Document the removal of the NPY_ALIGNMENT_REQUIRED macro.
charris Jun 8, 2025
93340d3
Merge pull request #29094 from SoapGentoo/fix-28991
charris Jun 8, 2025
ce5895e
Merge pull request #29147 from jorenham/bug/missing-capabilities-key
charris Jun 8, 2025
da3c2b4
DOC: Remove version switcher colors
melissawm Jun 9, 2025
a8d3500
MAINT: Update comment for clarity
melissawm Jun 9, 2025
aed7a60
CI: Run mypy with Python 3.13
jorenham Jun 9, 2025
75fd1ff
Merge pull request #29154 from melissawm/switcher-colors
mattip Jun 9, 2025
7d950ec
DOC: tweak release walkthrough for numpy.org news blurb [skip actions…
mattip Jun 9, 2025
871d23e
Merge pull request #29158 from mattip/release-tweak
charris Jun 9, 2025
30a4883
Merge pull request #29156 from jorenham/ci/mypy-macos-3.13
charris Jun 9, 2025
81b2a67
Adding refactored tests
V-R-S Jun 10, 2025
0f1a6f8
Removing additional references to pytz
V-R-S Jun 10, 2025
44d3cf1
Merge pull request #29148 from V-R-S/refactor-zoneinfo
mattip Jun 11, 2025
29c85f3
TYP: Accept dispatcher function with optional returns in ``_core.over…
jorenham Jun 11, 2025
a17726a
TYP: ``lib._iotools`` annotation improvements (#29177)
jorenham Jun 11, 2025
9cbddda
TYP: ``any(None)`` and ``all(None)`` (#29176)
jorenham Jun 11, 2025
42b875f
TYP: Fix invalid inline annotations in ``lib._function_base_impl`` (#…
jorenham Jun 11, 2025
1512865
TYP: ``numpy._NoValue`` (#29170)
jorenham Jun 11, 2025
7d8b1d5
TYP: ``out=...`` in ufuncs (#29169)
jorenham Jun 11, 2025
7bb70e1
TYP: Simplified ``dtype.__new__`` overloads (#29168)
jorenham Jun 11, 2025
ceb858f
TYP: fix and improve ``numpy.lib._utils_impl`` (#29181)
jorenham Jun 11, 2025
ea91f18
TYP: ``double = float64`` and ``cdouble = complex128`` (#29155)
jorenham Jun 11, 2025
18cbd6d
TYP: Fix missing ``_core.numeric`` (re-)exports (#29166)
jorenham Jun 11, 2025
8ce860f
MAINT: Bump pypa/cibuildwheel from 3.0.0b4 to 3.0.0 (#29180)
dependabot[bot] Jun 11, 2025
a3ec9af
CI: Bump `array-api-tests` to `v2025.05.23` (#29149)
jorenham Jun 11, 2025
3d1cdb4
TYP: fix ``ravel_multi_index`` false rejections (#29184)
jorenham Jun 11, 2025
2c19076
STY: ruff/isort config tweaks (#29183)
jorenham Jun 11, 2025
1ea01c5
MAINT: bump ``ruff`` to ``0.11.13`` (#29186)
jorenham Jun 12, 2025
303095e
BUG: fix matmul with transposed out arg (#29179)
mattip Jun 12, 2025
a811c05
TYP: add ``__all__`` in ``numpy._core.__init__`` (#29187)
jorenham Jun 12, 2025
b88c248
MAINT: Bump github/codeql-action from 3.28.19 to 3.29.0
dependabot[bot] Jun 12, 2025
8c2dec1
BUG: Revert `np.vectorize` casting to legacy behavior (#29196)
francois-rozet Jun 13, 2025
57eedf5
Merge pull request #29195 from numpy/dependabot/github_actions/github…
charris Jun 13, 2025
79deb8f
DOC: Suppress distutils doc build warnings for python 3.12+ (#29160)
bmwoodruff Jun 13, 2025
0b74c62
TYP: fix ``ndarray.__array__`` annotation for ``copy`` (#29204)
jorenham Jun 13, 2025
470943b
TST: additional tests for matmul with non-contiguous input and output…
xor2k Jun 13, 2025
70851b3
Merge pull request #25245 from seiko2plus/enable_native_fp16_arm
Jun 13, 2025
2f4ace7
BUG: fix linting (#29210)
mattip Jun 15, 2025
f1ee057
Convert arithmetic to highway.
amane-ame Jun 19, 2025
ff06744
Merge remote-tracking branch 'plct/upstream-highway' into plct-arithm…
amane-ame Jun 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/circleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
statuses: write
steps:
- name: GitHub Action step
uses: larsoner/circleci-artifacts-redirector-action@4e13a10d89177f4bfc8007a7064bdbeda848d8d1 # master
uses: larsoner/circleci-artifacts-redirector-action@7eafdb60666f57706a5525a2f5eb76224dc8779b # master
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
api-token: ${{ secrets.CIRCLE_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -57,7 +57,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
uses: github/codeql-action/autobuild@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -70,6 +70,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
uses: github/codeql-action/analyze@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
with:
persist-credentials: false
- name: 'Dependency Review'
uses: actions/dependency-review-action@38ecb5b593bf0eb19e335c03f97670f792489a8b # v4.7.0
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4.7.1
with:
allow-ghsas: GHSA-cx63-2mw6-8hw5
2 changes: 1 addition & 1 deletion .github/workflows/emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
fetch-tags: true
persist-credentials: false

- uses: pypa/cibuildwheel@faf86a6ed7efa889faf6996aa23820831055001a # 2.23.3
- uses: pypa/cibuildwheel@5f22145df44122af0f5a201f93cf0207171beca7 # v3.0.0
env:
CIBW_PLATFORM: pyodide

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: 'pypy3.11-v7.3.19'
python-version: 'pypy3.11-nightly'
- name: Setup using scipy-openblas
run: |
python -m pip install -r requirements/ci_requirements.txt
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
# TODO: gcov
env:
PYTHONOPTIMIZE: 2


aarch64_test:
needs: [smoke_test]
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
submodules: recursive
fetch-tags: true
persist-credentials: false

- name: Creates new container
run: |
docker run --name the_container --interactive \
Expand All @@ -221,7 +221,7 @@ jobs:
docker run --rm -e "TERM=xterm-256color" \
-v $(pwd):/numpy the_container \
/bin/script -e -q -c "/bin/linux32 /bin/bash --noprofile --norc -eo pipefail -c '
cd /numpy && spin build
cd /numpy && spin build
'"

- name: Meson Log
Expand Down Expand Up @@ -271,7 +271,7 @@ jobs:
# - name: Check docstests
# shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
# run: |
# pip install scipy-doctest==1.6.0 hypothesis==6.104.1 matplotlib scipy pytz pandas
# pip install scipy-doctest>=1.8.0 hypothesis==6.104.1 matplotlib scipy pandas
# spin check-docs -v
# spin check-tutorials -v

Expand Down Expand Up @@ -324,7 +324,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: data-apis/array-api-tests
ref: 'c48410f96fc58e02eea844e6b7f6cc01680f77ce' # Latest commit as of 2025-04-01
ref: '3c273cd34d51c64ed893737306d36adab23a94a1' # v2025.05.23
submodules: 'true'
path: 'array-api-tests'
persist-credentials: false
Expand All @@ -346,7 +346,7 @@ jobs:
PYTHONWARNINGS: 'ignore::UserWarning::,ignore::DeprecationWarning::,ignore::RuntimeWarning::'
run: |
cd ${GITHUB_WORKSPACE}/array-api-tests
pytest array_api_tests -v -c pytest.ini --ci --max-examples=100 --derandomize --disable-deadline --xfails-file ${GITHUB_WORKSPACE}/tools/ci/array-api-xfails.txt
pytest array_api_tests -v -c pytest.ini -n 4 --max-examples=1000 --derandomize --disable-deadline --xfails-file ${GITHUB_WORKSPACE}/tools/ci/array-api-xfails.txt

custom_checks:
needs: [smoke_test]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux_simd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ jobs:
python -m pip install pytest pytest-xdist hypothesis typing_extensions

- name: Build
run: CC=gcc-13 CXX=g++-13 spin build -- -Dallow-noblas=true -Dcpu-baseline=avx512_skx -Dtest-simd='BASELINE,AVX512_KNL,AVX512_KNM,AVX512_SKX,AVX512_CLX,AVX512_CNL,AVX512_ICL,AVX512_SPR'
run: CC=gcc-13 CXX=g++-13 spin build -- -Denable-openmp=true -Dallow-noblas=true -Dcpu-baseline=avx512_skx -Dtest-simd='BASELINE,AVX512_KNL,AVX512_KNM,AVX512_SKX,AVX512_CLX,AVX512_CNL,AVX512_ICL,AVX512_SPR'

- name: Meson Log
if: always()
Expand Down Expand Up @@ -263,7 +263,7 @@ jobs:
python -m pip install pytest pytest-xdist hypothesis typing_extensions

- name: Build
run: CC=gcc-13 CXX=g++-13 spin build -- -Dallow-noblas=true -Dcpu-baseline=avx512_spr
run: CC=gcc-13 CXX=g++-13 spin build -- -Denable-openmp=true -Dallow-noblas=true -Dcpu-baseline=avx512_spr

- name: Meson Log
if: always()
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
${{ github.workflow }}-${{ matrix.python-version }}-ccache-macos-

- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@505e6394dae86d6a5c7fbb6e3fb8938e3e863830 # v3.1.1
uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
build_runner:
- [ macos-13, "macos_x86_64" ]
- [ macos-14, "macos_arm64" ]
version: ["3.11", "3.14t"]
version: ["3.11", "3.14t-dev"]

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -124,14 +124,9 @@ jobs:
fetch-tags: true
persist-credentials: false

- uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
activate-environment: true
python-version: ${{ matrix.version }}
enable-cache: false

- run:
uv pip install --python=${{ matrix.version }} pip

- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
if: ${{ matrix.build_runner[0] == 'macos-13' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ jobs:
fail-fast: false
matrix:
os_python:
- [macos-latest, '3.13']
- [ubuntu-latest, '3.12']
- [windows-latest, '3.11']
- [macos-latest, '3.11']
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
with:
results_file: results.sarif
results_format: sarif
Expand All @@ -50,6 +50,6 @@ jobs:

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v2.1.27
uses: github/codeql-action/upload-sarif@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v2.1.27
with:
sarif_file: results.sarif
27 changes: 20 additions & 7 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ jobs:
# targeting macos >= 14. Could probably build on macos-14, but it would be a cross-compile
- [macos-13, macosx_x86_64, accelerate]
- [macos-14, macosx_arm64, accelerate] # always use accelerate
- [windows-2019, win_amd64, ""]
- [windows-2019, win32, ""]
- [windows-2022, win_amd64, ""]
- [windows-2022, win32, ""]
- [windows-11-arm, win_arm64, ""]
python: ["cp311", "cp312", "cp313", "cp313t", "pp311"]
python: ["cp311", "cp312", "cp313", "cp313t", "cp314", "cp314t", "pp311"]
exclude:
# Don't build PyPy 32-bit windows
- buildplat: [windows-2019, win32, ""]
- buildplat: [windows-2022, win32, ""]
python: "pp311"
# Don't build PyPy arm64 windows
- buildplat: [windows-11-arm, win_arm64, ""]
Expand All @@ -107,6 +107,8 @@ jobs:
python: "pp311"
- buildplat: [ macos13, macosx_x86_64, openblas ]
python: "cp313t"
- buildplat: [ macos13, macosx_x86_64, openblas ]
python: "cp314t"

env:
IS_32_BIT: ${{ matrix.buildplat[1] == 'win32' }}
Expand Down Expand Up @@ -175,7 +177,7 @@ jobs:
fi

- name: Build wheels
uses: pypa/cibuildwheel@faf86a6ed7efa889faf6996aa23820831055001a # v2.23.3
uses: pypa/cibuildwheel@5f22145df44122af0f5a201f93cf0207171beca7 # v3.0.0
env:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}

Expand All @@ -184,7 +186,8 @@ jobs:
name: ${{ matrix.python }}-${{ matrix.buildplat[1] }}-${{ matrix.buildplat[2] }}
path: ./wheelhouse/*.whl

- uses: mamba-org/setup-micromamba@0dea6379afdaffa5d528b3d1dabc45da37f443fc
- name: install micromamba
uses: mamba-org/setup-micromamba@b09ef9b599704322748535812ca03efb2625677b
if: ${{ matrix.buildplat[1] != 'win_arm64' }} # unsupported platform at the moment
with:
# for installation of anaconda-client, required for upload to
Expand All @@ -198,6 +201,16 @@ jobs:
create-args: >-
anaconda-client

- name: win-arm64 install anaconda client
if: ${{ matrix.buildplat[1] == 'win_arm64' }}
run: |
# Rust installation needed for rpds-py.
Invoke-WebRequest https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe -UseBasicParsing -Outfile rustup-init.exe
.\rustup-init.exe -y
$env:PATH="$env:PATH;$env:USERPROFILE\.cargo\bin"
pip install anaconda-client


- name: Upload wheels
if: success() && github.repository == 'numpy/numpy'
shell: bash -el {0}
Expand Down Expand Up @@ -267,7 +280,7 @@ jobs:
name: sdist
path: ./dist/*

- uses: conda-incubator/setup-miniconda@505e6394dae86d6a5c7fbb6e3fb8938e3e863830 # v3.1.1
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
with:
# for installation of anaconda-client, required for upload to
# anaconda.org
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ permissions:
jobs:
python64bit_openblas:
name: x86-64, LP64 OpenBLAS
runs-on: windows-2019
runs-on: windows-2022
# To enable this job on a fork, comment out:
if: github.repository == 'numpy/numpy'
strategy:
fail-fast: false
matrix:
compiler-pyversion:
- ["MSVC", "3.11"]
- ["Clang-cl", "3.14t"]
- ["Clang-cl", "3.14t-dev"]

steps:
- name: Checkout
Expand All @@ -35,14 +35,9 @@ jobs:
persist-credentials: false

- name: Setup Python
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
activate-environment: true
python-version: ${{ matrix.compiler-pyversion[1] }}
enable-cache: false

- run:
uv pip install --python=${{ matrix.version }} pip

- name: Install build dependencies from PyPI
run: |
Expand Down Expand Up @@ -97,7 +92,7 @@ jobs:
fail-fast: false
matrix:
include:
- os: windows-2019
- os: windows-2022
architecture: x86
- os: windows-11-arm
architecture: arm64
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:

jobs:
windows_arm:
runs-on: windows-2019
runs-on: windows-2022

# To enable this job on a fork, comment out:
if: github.repository == 'numpy/numpy'
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
path: ./*.whl

- name: Setup Mamba
uses: mamba-org/setup-micromamba@0dea6379afdaffa5d528b3d1dabc45da37f443fc
uses: mamba-org/setup-micromamba@b09ef9b599704322748535812ca03efb2625677b
with:
# for installation of anaconda-client, required for upload to
# anaconda.org
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ GTAGS
################
# meson build/installation directories
build
build-install
build-*
# meson python output
.mesonpy-native-file.ini
# sphinx build directory
Expand Down
Loading
Loading