Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
403 commits
Select commit Hold shift + click to select a range
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
f8204f5
DOC: Document assertion comparison behavior between scalar and empty …
timhoffm 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
aea8869
CI: Add WoA validation setup to windows.yml
MugundanMCW Jun 17, 2025
d8c4f2b
CI: Create action.yml for LLVM Win-ARM64 as reusable blocks
MugundanMCW Jun 17, 2025
f02bb58
CI: Modify wheel.yml to use clang-cl for Win-ARM64
MugundanMCW Jun 17, 2025
fb0dff6
CI: fix action.yml naming
MugundanMCW Jun 17, 2025
f36c0da
CI: Fix reusable LLVM block
MugundanMCW Jun 17, 2025
03d5730
MAINT: Fix some undef warnings (#29216)
seberg Jun 17, 2025
3f99204
MAINT: bump `mypy` to `1.16.1` (#29219)
jorenham Jun 17, 2025
f6a17f0
TYP: Workaround for a mypy issue in ``ndarray.__iter__`` (#29218)
jorenham Jun 17, 2025
32f4afa
ENH: improve Timsort with powersort merge-policy (#29208)
moritz-gross Jun 17, 2025
d1c6757
ENH: Detect CPU features on OpenBSD ARM and PowerPC64
brad0 Jun 17, 2025
b6a6740
CI: Add conditions to check hash of LLVM package
MugundanMCW Jun 18, 2025
823287c
Merge pull request #29215 from Mugundanmcw/WOA_CLANG_CI
Mousius Jun 18, 2025
d52b36e
strides comparison performance fix, compare discussion #29179 (#29188)
xor2k Jun 18, 2025
2b0eda3
TYP: Support iteration of ``StringDType`` arrays
jorenham Jun 17, 2025
f15a116
BUG: Address interaction between SME and FPSR (#29223)
Developer-Ecosystem-Engineering Jun 18, 2025
5cbc0bc
ENH: Detect CPU features on FreeBSD / OpenBSD RISC-V64.
brad0 Jun 17, 2025
7a74e12
BUG: avoid negating unsigned integers in resize implementation (#29230)
ngoldbaum Jun 19, 2025
35079af
TST: Fix test that uses unininitialized memory (#29232)
seberg Jun 19, 2025
a27cc51
Merge pull request #29227 from jorenham/typing/ndarray-StringDType-iter
charris Jun 19, 2025
4575abf
MAINT: bump ``ruff`` to ``0.12.0`` (#29220)
jorenham Jun 19, 2025
7b30ce7
BUG: Enforce integer limitation in concatenate (#29231)
seberg Jun 19, 2025
80833c5
Merge pull request #29224 from brad0/elf_aux_info_riscv64
charris Jun 20, 2025
979b5c9
Merge pull request #29221 from brad0/openbsd_elf_aux_info
charris Jun 20, 2025
1da34ea
DEP: Deprecate setting the strides attribute of a numpy array (#28925)
eendebakpt Jun 20, 2025
20d034f
ENH: np.unique: support hash based unique for string dtype (#28767)
math-hiyoko Jun 20, 2025
7c91551
DOC: Update CONTRIBUTING.rst (#28158)
speco29 Jun 20, 2025
e3e875a
MAIN: Enable linting with E501
eendebakpt Jun 20, 2025
dea4451
MAIN: Enable linting with E501
eendebakpt Jun 20, 2025
09eb6b7
MAIN: Enable linting with E501
eendebakpt Jun 20, 2025
1b3a0d9
DOC: Fix some markup errors
Jun 21, 2025
124ac8d
MAINT: Update main after 2.1.0 release.
charris Jun 21, 2025
170ab7c
Merge pull request #29252 from koyuki7w/patch-1
mattip Jun 21, 2025
ebe3b63
Merge pull request #29257 from charris/post-2.3.1-release-update
rgommers Jun 21, 2025
1fefc5c
DOC: Clarify dtype argument for __array__ in custom container guide (…
that-ar-guy Jun 23, 2025
32b4321
Apply suggestions from code review
eendebakpt Jun 23, 2025
2d6a4d7
TYP: Type ``MaskedArray.__{mul,rmul}__`` (#29265)
MarcoGorelli Jun 25, 2025
f8281b9
BUG: fix fencepost error in StringDType internals (#29269)
ngoldbaum Jun 25, 2025
b89320a
STY: ruff/isort config tweaks - episode 2 (#29185)
jorenham Jun 25, 2025
7311f0a
MAINT: Fix ``I001`` ruff error on main (#29272)
jorenham Jun 26, 2025
004458d
TYP: Work around a mypy issue with bool arrays (#29248)
jorenham Jun 26, 2025
bd68380
TYP: Add overloads for `MaskedArray.__{div,rdiv,floordiv,rfloordiv}__…
MarcoGorelli Jun 26, 2025
6eeaae2
TYP: fix overloads where `out: _ArrayT` was typed as being the defaul…
MarcoGorelli Jun 26, 2025
202df73
MAINT: Bump github/codeql-action from 3.29.0 to 3.29.1 (#29285)
dependabot[bot] Jun 27, 2025
0f18e7c
BUG: handle case in mapiter where descriptors might get replaced (#29…
ngoldbaum Jun 27, 2025
fb7135f
BUG: Fix macro redefinition (#29289)
charris Jun 28, 2025
2bb4005
DOC: avoid searching some directories for doxygen-commented source co…
mattip Jun 28, 2025
7ce4670
Merge pull request #29250 from eendebakpt/ruff_e501_
mattip Jun 29, 2025
bb9a48c
Merge pull request #29143 from timhoffm/doc-assert-scalar
mattip Jun 29, 2025
907b73c
MAIN: Enforce ruff E501 rule
eendebakpt Jun 29, 2025
6aeb7c6
More linting
eendebakpt Jun 29, 2025
7bdf6b4
BUG: Fix version check in blas_utils.c
charris Jun 29, 2025
ba63e64
Merge pull request #29290 from charris/fix-blas_utils
mattip Jun 30, 2025
e740470
Merge pull request #29291 from eendebakpt/e501_y
mattip Jun 30, 2025
c96fcc8
MAINT: Bump github/codeql-action from 3.29.1 to 3.29.2 (#29296)
dependabot[bot] Jul 1, 2025
c0c972d
DOCS: Remove incorrect "Returns" section from `MaskedArray.sort`
MarcoGorelli Jul 1, 2025
82ae5ab
DEP: Give a visible warning when `align=` to dtype is a non-bool
seberg Jul 1, 2025
a982786
MAINT: Enable linting with ruff E501 (#29300)
eendebakpt Jul 1, 2025
3727d5b
TYP: Add shape typing to return values of `np.nonzero` and `ndarray.n…
MarcoGorelli Jul 1, 2025
ec34c6d
chore: remove redundant words in comment (#29306)
ianlv Jul 2, 2025
1e31f9a
Merge remote-tracking branch 'upstream/main' into ma-sort-docs
MarcoGorelli Jul 2, 2025
888c4ff
TYP: Add type annotations for `MaskedArray.__{pow,rpow}__` (#29277)
MarcoGorelli Jul 2, 2025
626e934
Merge pull request #29302 from MarcoGorelli/ma-sort-docs
mattip Jul 2, 2025
34d12a9
test: add regression test for grammar in ufunc TypeError message
shyok21 Jul 2, 2025
99f894a
fix: correct singular/plural grammar in ufunc TypeError message
shyok21 Jul 2, 2025
a049539
Update numpy/_core/tests/test_deprecations.py
seberg Jul 2, 2025
b999c61
Merge pull request #29308 from shyok21/fix-hypot-error-grammar
mattip Jul 2, 2025
b934a81
Merge pull request #29301 from seberg/dtype-align
mattip Jul 2, 2025
0578bdf
TYP: Type ``MaskedArray.{trace,round,cumsum,cumprod}`` (#29307)
MarcoGorelli Jul 2, 2025
1cc6113
TYP: add explicit types for np.quantile (#29305)
inventshah Jul 2, 2025
75e86ba
DOCS: Fix rendering of ``MaskedArray.anom`` ``dtype`` (#29311)
MarcoGorelli Jul 2, 2025
8423401
BLD: remove unused github workflow (#29312)
mattip Jul 2, 2025
ec8edce
TYP: rename `_T` to `_ScalarT` in `matlib.pyi` for consistency (#29310)
MarcoGorelli Jul 3, 2025
85708b3
TYP: Type ``MaskedArray.dot`` and ``MaskedArray.anom`` (#29309)
MarcoGorelli Jul 3, 2025
b7c2d0e
Convert unary into highway.
amane-ame Jul 3, 2025
3e8f2da
Merge remote-tracking branch 'plct/upstream-highway' into plct-unary
amane-ame Jul 3, 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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ IncludeCategories:
Priority: 1
- Regex: '^<[[:alnum:]_.]+"'
Priority: 2
IndentPPDirectives: AfterHash
Language: Cpp
PointerAlignment: Right
ReflowComments: true
Expand Down
22 changes: 22 additions & 0 deletions .github/windows_arm64_steps/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build Dependencies(Win-ARM64)
description: "Setup LLVM for Win-ARM64 builds"

runs:
using: "composite"
steps:
- name: Install LLVM with checksum verification
shell: pwsh
run: |
Invoke-WebRequest https://github.com/llvm/llvm-project/releases/download/llvmorg-20.1.6/LLVM-20.1.6-woa64.exe -UseBasicParsing -OutFile LLVM-woa64.exe
$expectedHash = "92f69a1134e32e54b07d51c6e24d9594852f6476f32c3d70471ae00fffc2d462"
$fileHash = (Get-FileHash -Path "LLVM-woa64.exe" -Algorithm SHA256).Hash
if ($fileHash -ne $expectedHash) {
Write-Error "Checksum verification failed. The downloaded file may be corrupted or tampered with."
exit 1
}
Start-Process -FilePath ".\LLVM-woa64.exe" -ArgumentList "/S" -Wait
echo "C:\Program Files\LLVM\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "CC=clang-cl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "CXX=clang-cl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "FC=flang-new" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
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@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
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@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2

# ℹ️ 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@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
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@181d5eefc20863364f96762470ba6f862bdef56b # v2.1.27
with:
sarif_file: results.sarif
33 changes: 22 additions & 11 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 All @@ -125,11 +127,9 @@ jobs:
with:
architecture: 'x86'

- name: Setup MSVC arm64
- name: Setup LLVM for Windows ARM64
if: ${{ matrix.buildplat[1] == 'win_arm64' }}
uses: bus1/cabuild/action/msdevshell@e22aba57d6e74891d059d66501b6b5aed8123c4d # v1
with:
architecture: 'arm64'
uses: ./.github/windows_arm64_steps

- name: pkg-config-for-win
run: |
Expand Down Expand Up @@ -175,7 +175,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 +184,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 +199,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 +278,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
Loading
Loading