Skip to content

Commit 19f5209

Browse files
authored
Merge pull request #250 from ev-br/release_1.11
Sync the release 1.11 branch
2 parents 61c83fe + eaa58a7 commit 19f5209

20 files changed

+259
-31
lines changed

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

Lines changed: 1 addition & 1 deletion
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

.github/workflows/publish-package.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -88,25 +88,25 @@ jobs:
8888
- name: List all files
8989
run: ls -lh dist
9090

91-
- name: Publish distribution 📦 to Test PyPI
92-
# Publish to TestPyPI on tag events of if manually triggered
93-
# Compare to 'true' string as booleans get turned into strings in the console
94-
if: >-
95-
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags'))
96-
|| (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true')
91+
# - name: Publish distribution 📦 to Test PyPI
92+
# # Publish to TestPyPI on tag events of if manually triggered
93+
# # Compare to 'true' string as booleans get turned into strings in the console
94+
# if: >-
95+
# (github.event_name == 'push' && startsWith(github.ref, 'refs/tags'))
96+
# || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true')
97+
# uses: pypa/[email protected]
98+
# with:
99+
# repository-url: https://test.pypi.org/legacy/
100+
# print-hash: true
101+
102+
- name: Publish distribution 📦 to PyPI
103+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
97104
uses: pypa/[email protected]
98105
with:
99-
repository-url: https://test.pypi.org/legacy/
100106
print-hash: true
101107

102108
- name: Create GitHub Release from a Tag
103109
uses: softprops/action-gh-release@v2
104110
if: startsWith(github.ref, 'refs/tags/')
105111
with:
106112
files: dist/*
107-
108-
- name: Publish distribution 📦 to PyPI
109-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
110-
uses: pypa/[email protected]
111-
with:
112-
print-hash: true

array_api_compat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
this implementation for the default when working with NumPy arrays.
1818
1919
"""
20-
__version__ = '1.10.1.dev0'
20+
__version__ = '1.11'
2121

2222
from .common import * # noqa: F401, F403

array_api_compat/common/_helpers.py

Lines changed: 5 additions & 5 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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/py.typed

Whitespace-only changes.

array_api_compat/torch/__init__.py

Lines changed: 1 addition & 1 deletion
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'

cupy-xfails.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,14 @@ array_api_tests/test_fft.py::test_irfftn
182182
array_api_tests/test_manipulation_functions.py::test_repeat
183183
array_api_tests/test_signatures.py::test_func_signature[from_dlpack]
184184
array_api_tests/test_signatures.py::test_array_method_signature[__dlpack__]
185+
186+
+# 2024.12 support
187+
array_api_tests/test_signatures.py::test_func_signature[count_nonzero]
188+
array_api_tests/test_signatures.py::test_func_signature[bitwise_and]
189+
array_api_tests/test_signatures.py::test_func_signature[bitwise_left_shift]
190+
array_api_tests/test_signatures.py::test_func_signature[bitwise_or]
191+
array_api_tests/test_signatures.py::test_func_signature[bitwise_right_shift]
192+
array_api_tests/test_signatures.py::test_func_signature[bitwise_xor]
193+
array_api_tests/test_special_cases.py::test_binary[nextafter(x1_i is +0 and x2_i is -0) -> -0]
194+
array_api_tests/test_special_cases.py::test_nan_propagation[cumulative_prod]
195+

0 commit comments

Comments
 (0)