Skip to content

Commit 3d0dda4

Browse files
committed
default to 2024.12 API version
1 parent 61c83fe commit 3d0dda4

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

.github/workflows/array-api-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
if: "! ((matrix.python-version == '3.11' || matrix.python-version == '3.12') && inputs.package-name == 'numpy' && contains(inputs.package-version, '1.21'))"
7777
env:
7878
ARRAY_API_TESTS_MODULE: array_api_compat.${{ inputs.module-name || inputs.package-name }}
79-
ARRAY_API_TESTS_VERSION: 2023.12
79+
ARRAY_API_TESTS_VERSION: 2024.12
8080
# This enables the NEP 50 type promotion behavior (without it a lot of
8181
# tests fail on bad scalar type promotion behavior)
8282
NPY_PROMOTION_STATE: weak

array_api_compat/common/_helpers.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,11 @@ def is_array_api_strict_namespace(xp) -> bool:
432432

433433

434434
def _check_api_version(api_version: str) -> None:
435-
if api_version in ['2021.12', '2022.12']:
436-
warnings.warn(f"The {api_version} version of the array API specification was requested but the returned namespace is actually version 2023.12")
435+
if api_version in ['2021.12', '2022.12', '2023.12']:
436+
warnings.warn(f"The {api_version} version of the array API specification was requested but the returned namespace is actually version 2024.12")
437437
elif api_version is not None and api_version not in ['2021.12', '2022.12',
438-
'2023.12']:
439-
raise ValueError("Only the 2023.12 version of the array API specification is currently supported")
438+
'2023.12', '2024.12']:
439+
raise ValueError("Only the 2024.12 version of the array API specification is currently supported")
440440

441441

442442
def array_namespace(*xs, api_version=None, use_compat=None) -> Namespace:
@@ -451,7 +451,7 @@ def array_namespace(*xs, api_version=None, use_compat=None) -> Namespace:
451451
452452
api_version: str
453453
The newest version of the spec that you need support for (currently
454-
the compat library wrapped APIs support v2023.12).
454+
the compat library wrapped APIs support v2024.12).
455455
456456
use_compat: bool or None
457457
If None (the default), the native namespace will be returned if it is

array_api_compat/cupy/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313

1414
from ..common._helpers import * # noqa: F401,F403
1515

16-
__array_api_version__ = '2023.12'
16+
__array_api_version__ = '2024.12'

array_api_compat/dask/array/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# These imports may overwrite names from the import * above.
44
from ._aliases import * # noqa: F403
55

6-
__array_api_version__ = '2023.12'
6+
__array_api_version__ = '2024.12'
77

88
__import__(__package__ + '.linalg')
99
__import__(__package__ + '.fft')

array_api_compat/numpy/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
except ImportError:
2828
pass
2929

30-
__array_api_version__ = '2023.12'
30+
__array_api_version__ = '2024.12'

array_api_compat/torch/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121

2222
from ..common._helpers import * # noqa: F403
2323

24-
__array_api_version__ = '2023.12'
24+
__array_api_version__ = '2024.12'

test_cupy.sh

+1-1
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=2023.12
29+
export ARRAY_API_TESTS_VERSION=2024.12
3030
pytest array_api_tests/ ${PYTEST_ARGS} --xfails-file $SCRIPT_DIR/cupy-xfails.txt "$@"

0 commit comments

Comments
 (0)