Skip to content

Commit a1eea09

Browse files
committed
Merge branch 'main' into asarray-copy
2 parents a194344 + 8606188 commit a1eea09

13 files changed

+204
-175
lines changed

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

-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ jobs:
6363
python -m pip install --upgrade pip
6464
python -m pip install '${{ inputs.package-name }} ${{ inputs.package-version }}' ${{ inputs.extra-requires }}
6565
python -m pip install -r ${GITHUB_WORKSPACE}/array-api-tests/requirements.txt
66-
python -m pip install hypothesis==6.97.1
6766
- name: Run the array API testsuite (${{ inputs.package-name }})
6867
if: "! ((matrix.python-version == '3.11' && inputs.package-name == 'numpy' && contains(inputs.package-version, '1.21')) || (matrix.python-version == '3.8' && inputs.package-name == 'numpy' && contains(inputs.xfails-file-extra, 'dev')))"
6968
env:

.github/workflows/docs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
environment:
99
name: docs-build-and-deploy
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-python@v2
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-python@v5
1313
- name: Install Dependencies
1414
run: |
1515
python -m pip install -r docs/requirements.txt

.github/workflows/publish-package.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666

6767
publish:
6868
name: Publish Python distribution to (Test)PyPI
69-
if: github.event_name != 'pull_request' && github.repository == 'data-apis/array-api-compat'
69+
if: github.event_name != 'pull_request' && github.repository == 'data-apis/array-api-compat' && github.ref_type == 'tag'
7070
needs: build
7171
runs-on: ubuntu-latest
7272
# Mandatory for publishing with a trusted publisher
@@ -94,19 +94,19 @@ jobs:
9494
if: >-
9595
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags'))
9696
|| (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true')
97-
uses: pypa/[email protected].12
97+
uses: pypa/[email protected].14
9898
with:
9999
repository-url: https://test.pypi.org/legacy/
100100
print-hash: true
101101

102102
- name: Create GitHub Release from a Tag
103-
uses: softprops/action-gh-release@v1
103+
uses: softprops/action-gh-release@v2
104104
if: startsWith(github.ref, 'refs/tags/')
105105
with:
106106
files: dist/*
107107

108108
- name: Publish distribution 📦 to PyPI
109109
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
110-
uses: pypa/[email protected].12
110+
uses: pypa/[email protected].14
111111
with:
112112
print-hash: true

CHANGELOG.md

-163
This file was deleted.

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs/changelog.md

array_api_compat/__init__.py

+1-1
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.5'
20+
__version__ = '1.5.1'
2121

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

array_api_compat/torch/_aliases.py

+2
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,8 @@ def std(x: array,
384384
_correction = int(correction)
385385
if correction != _correction:
386386
raise NotImplementedError("float correction in torch std() is not yet supported")
387+
else:
388+
_correction = correction
387389

388390
# https://github.com/pytorch/pytorch/issues/29137
389391
if axis == ():

0 commit comments

Comments
 (0)