Skip to content

Commit 7c540f4

Browse files
authored
Merge pull request #397 from ev-br/bump_array_api_version
ENH: bump wrapped API versions to 2025.12
2 parents b522655 + 4f8a4aa commit 7c540f4

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

array_api_compat/common/_helpers.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
| SupportsArrayNamespace[Any]
5656
)
5757

58-
_API_VERSIONS_OLD: Final = frozenset({"2021.12", "2022.12", "2023.12"})
59-
_API_VERSIONS: Final = _API_VERSIONS_OLD | frozenset({"2024.12"})
58+
_API_VERSIONS_OLD: Final = frozenset({"2021.12", "2022.12", "2023.12", "2024.12"})
59+
_API_VERSIONS: Final = _API_VERSIONS_OLD | frozenset({"2025.12"})
6060

6161

6262
@lru_cache(100)
@@ -485,11 +485,11 @@ def is_array_api_strict_namespace(xp: Namespace) -> bool:
485485
def _check_api_version(api_version: str | None) -> None:
486486
if api_version in _API_VERSIONS_OLD:
487487
warnings.warn(
488-
f"The {api_version} version of the array API specification was requested but the returned namespace is actually version 2024.12"
488+
f"The {api_version} version of the array API specification was requested but the returned namespace is actually version 2025.12"
489489
)
490490
elif api_version is not None and api_version not in _API_VERSIONS:
491491
raise ValueError(
492-
"Only the 2024.12 version of the array API specification is currently supported"
492+
"Only the 2025.12 version of the array API specification is currently supported"
493493
)
494494

495495

@@ -589,7 +589,7 @@ def array_namespace(
589589
590590
api_version: str
591591
The newest version of the spec that you need support for (currently
592-
the compat library wrapped APIs support v2024.12).
592+
the compat library wrapped APIs support v2025.12).
593593
594594
use_compat: bool or None
595595
If None (the default), the native namespace will be returned if it is

array_api_compat/cupy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
__import__(__package__ + '.linalg')
1313
__import__(__package__ + '.fft')
1414

15-
__array_api_version__: Final = '2024.12'
15+
__array_api_version__: Final = '2025.12'
1616

1717
__all__ = sorted(
1818
{name for name in globals() if not name.startswith("__")}

array_api_compat/dask/array/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from ._aliases import * # type: ignore[assignment] # noqa: F403
1010
from ._info import __array_namespace_info__ # noqa: F401
1111

12-
__array_api_version__: Final = "2024.12"
12+
__array_api_version__: Final = "2025.12"
1313
del Final
1414

1515
# See the comment in the numpy __init__.py

array_api_compat/numpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
from .linalg import matrix_transpose, vecdot # type: ignore[no-redef] # noqa: F401
2828

29-
__array_api_version__: Final = "2024.12"
29+
__array_api_version__: Final = "2025.12"
3030

3131
__all__ = sorted(
3232
set(__all__)

array_api_compat/torch/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
__import__(__package__ + '.linalg')
1414
__import__(__package__ + '.fft')
1515

16-
__array_api_version__: Final = '2024.12'
16+
__array_api_version__: Final = '2025.12'
1717

1818
__all__ = sorted(
1919
set(__all__)

test_cupy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ mkdir -p $SCRIPT_DIR/.hypothesis
2626
ln -s $SCRIPT_DIR/.hypothesis .hypothesis
2727

2828
export ARRAY_API_TESTS_MODULE=array_api_compat.cupy
29-
export ARRAY_API_TESTS_VERSION=2024.12
29+
export ARRAY_API_TESTS_VERSION=2025.12
3030
pytest array_api_tests/ ${PYTEST_ARGS} --xfails-file $SCRIPT_DIR/cupy-xfails.txt "$@"

0 commit comments

Comments
 (0)