Skip to content

Commit 4c66b58

Browse files
authored
Update array API version supported to 2024.12 (#2416)
There was `__array_api_version__` set to `2024.12` in [dpctl#2047](IntelPython/dpctl#2047). This PR updates tests and documentation to state support with the newer spec version.
1 parent 15ed961 commit 4c66b58

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [0.18.0] - MM/DD/2025
88

9+
This release achieves 100% compliance with Python Array API specification (revision [2024.12](https://data-apis.org/array-api/2024.12/)).
10+
911
### Added
1012

1113
* Added implementation of `dpnp.hamming` [#2341](https://github.com/IntelPython/dpnp/pull/2341), [#2357](https://github.com/IntelPython/dpnp/pull/2357)
@@ -23,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2325
* Extended `dpnp.fft.fftfreq` and `dpnp.fft.rfftfreq` functions to support `dtype` keyword per Python Array API spec 2024.12 [#2384](https://github.com/IntelPython/dpnp/pull/2384)
2426
* Updated `dpnp.fix` to return output with the same data-type of input [#2392](https://github.com/IntelPython/dpnp/pull/2392)
2527
* Updated `dpnp.einsum` to add support for `order=None` [#2411](https://github.com/IntelPython/dpnp/pull/2411)
28+
* Updated Python Array API specification version supported to `2024.12` [#2416](https://github.com/IntelPython/dpnp/pull/2416)
2629

2730
### Fixed
2831

doc/reference/array_api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Array API standard compatibility
88

99
DPNP's main namespace as well as the :mod:`dpnp.fft` and :mod:`dpnp.linalg`
1010
namespaces are compatible with the
11-
`2023.12 version <https://data-apis.org/array-api/2023.12/index.html>`__
11+
`2024.12 version <https://data-apis.org/array-api/2024.12/index.html>`__
1212
of the Python array API standard.
1313

1414
Inspection

dpnp/tests/test_ndarray.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,18 +162,20 @@ def test_basic(self):
162162
xp = a.__array_namespace__()
163163
assert xp is dpnp
164164

165-
@pytest.mark.parametrize("api_version", [None, "2023.12"])
165+
@pytest.mark.parametrize("api_version", [None, "2024.12"])
166166
def test_api_version(self, api_version):
167167
a = dpnp.arange(2)
168168
xp = a.__array_namespace__(api_version=api_version)
169169
assert xp is dpnp
170170

171-
@pytest.mark.parametrize("api_version", ["2021.12", "2022.12", "2024.12"])
171+
@pytest.mark.parametrize(
172+
"api_version", ["2021.12", "2022.12", "2023.12", "2025.12"]
173+
)
172174
def test_unsupported_api_version(self, api_version):
173175
a = dpnp.arange(2)
174176
assert_raises_regex(
175177
ValueError,
176-
"Only 2023.12 is supported",
178+
"Only 2024.12 is supported",
177179
a.__array_namespace__,
178180
api_version=api_version,
179181
)

0 commit comments

Comments
 (0)