From 3818fa9ab55a1195cff83925ac6987cabf1675c4 Mon Sep 17 00:00:00 2001 From: Evgeni Burovski Date: Tue, 24 Feb 2026 18:27:15 +0000 Subject: [PATCH 1/3] ENH: bump wrapped API versions to 2025.12 --- array_api_compat/cupy/__init__.py | 2 +- array_api_compat/dask/array/__init__.py | 2 +- array_api_compat/numpy/__init__.py | 2 +- array_api_compat/torch/__init__.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/array_api_compat/cupy/__init__.py b/array_api_compat/cupy/__init__.py index af003c5a..558a83e1 100644 --- a/array_api_compat/cupy/__init__.py +++ b/array_api_compat/cupy/__init__.py @@ -12,7 +12,7 @@ __import__(__package__ + '.linalg') __import__(__package__ + '.fft') -__array_api_version__: Final = '2024.12' +__array_api_version__: Final = '2025.12' __all__ = sorted( {name for name in globals() if not name.startswith("__")} diff --git a/array_api_compat/dask/array/__init__.py b/array_api_compat/dask/array/__init__.py index f78aa8b3..1905c671 100644 --- a/array_api_compat/dask/array/__init__.py +++ b/array_api_compat/dask/array/__init__.py @@ -9,7 +9,7 @@ from ._aliases import * # type: ignore[assignment] # noqa: F403 from ._info import __array_namespace_info__ # noqa: F401 -__array_api_version__: Final = "2024.12" +__array_api_version__: Final = "2025.12" del Final # See the comment in the numpy __init__.py diff --git a/array_api_compat/numpy/__init__.py b/array_api_compat/numpy/__init__.py index 23379e44..81eaafef 100644 --- a/array_api_compat/numpy/__init__.py +++ b/array_api_compat/numpy/__init__.py @@ -26,7 +26,7 @@ from .linalg import matrix_transpose, vecdot # type: ignore[no-redef] # noqa: F401 -__array_api_version__: Final = "2024.12" +__array_api_version__: Final = "2025.12" __all__ = sorted( set(__all__) diff --git a/array_api_compat/torch/__init__.py b/array_api_compat/torch/__init__.py index 6cbb6ec2..8263faa6 100644 --- a/array_api_compat/torch/__init__.py +++ b/array_api_compat/torch/__init__.py @@ -13,7 +13,7 @@ __import__(__package__ + '.linalg') __import__(__package__ + '.fft') -__array_api_version__: Final = '2024.12' +__array_api_version__: Final = '2025.12' __all__ = sorted( set(__all__) From 12e2e5bcbb52d56a0e903ce4a4a02d74c3f69a6a Mon Sep 17 00:00:00 2001 From: Evgeni Burovski Date: Tue, 24 Feb 2026 18:42:07 +0000 Subject: [PATCH 2/3] ENH: bump version to 2025.12 in common/_helpers.py --- array_api_compat/common/_helpers.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/array_api_compat/common/_helpers.py b/array_api_compat/common/_helpers.py index bc90d208..8a307f9d 100644 --- a/array_api_compat/common/_helpers.py +++ b/array_api_compat/common/_helpers.py @@ -55,8 +55,8 @@ | SupportsArrayNamespace[Any] ) -_API_VERSIONS_OLD: Final = frozenset({"2021.12", "2022.12", "2023.12"}) -_API_VERSIONS: Final = _API_VERSIONS_OLD | frozenset({"2024.12"}) +_API_VERSIONS_OLD: Final = frozenset({"2021.12", "2022.12", "2023.12", "2024.12"}) +_API_VERSIONS: Final = _API_VERSIONS_OLD | frozenset({"2025.12"}) @lru_cache(100) @@ -485,11 +485,11 @@ def is_array_api_strict_namespace(xp: Namespace) -> bool: def _check_api_version(api_version: str | None) -> None: if api_version in _API_VERSIONS_OLD: warnings.warn( - f"The {api_version} version of the array API specification was requested but the returned namespace is actually version 2024.12" + f"The {api_version} version of the array API specification was requested but the returned namespace is actually version 2025.12" ) elif api_version is not None and api_version not in _API_VERSIONS: raise ValueError( - "Only the 2024.12 version of the array API specification is currently supported" + "Only the 2025.12 version of the array API specification is currently supported" ) @@ -589,7 +589,7 @@ def array_namespace( api_version: str The newest version of the spec that you need support for (currently - the compat library wrapped APIs support v2024.12). + the compat library wrapped APIs support v2025.12). use_compat: bool or None If None (the default), the native namespace will be returned if it is From 4f8a4aa1bb1f3d56348248a33e6a66d7905db100 Mon Sep 17 00:00:00 2001 From: Evgeni Burovski Date: Tue, 24 Feb 2026 18:48:16 +0000 Subject: [PATCH 3/3] TST: bump the API version in test_cupy.sh --- test_cupy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_cupy.sh b/test_cupy.sh index a6974333..8ac72dc6 100755 --- a/test_cupy.sh +++ b/test_cupy.sh @@ -26,5 +26,5 @@ mkdir -p $SCRIPT_DIR/.hypothesis ln -s $SCRIPT_DIR/.hypothesis .hypothesis export ARRAY_API_TESTS_MODULE=array_api_compat.cupy -export ARRAY_API_TESTS_VERSION=2024.12 +export ARRAY_API_TESTS_VERSION=2025.12 pytest array_api_tests/ ${PYTEST_ARGS} --xfails-file $SCRIPT_DIR/cupy-xfails.txt "$@"