Skip to content

Commit

Permalink
Merge pull request #56 from asmeurer/release
Browse files Browse the repository at this point in the history
1.4 release
  • Loading branch information
asmeurer authored Sep 14, 2023
2 parents ae2d029 + 68486f3 commit 5c82ea3
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
# c.f. https://docs.pypi.org/trusted-publishers/using-a-publisher/
permissions:
id-token: write
contents: write
# Restrict to the environment set for the trusted publisher
environment:
name: publish-package
Expand All @@ -98,8 +99,14 @@ jobs:
repository-url: https://test.pypi.org/legacy/
print-hash: true

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

- name: Publish distribution 📦 to PyPI
if: github.event_name == 'release' && github.event.action == 'published'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/[email protected]
with:
print-hash: true
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# 1.4 (2023-09-13)

## Major Changes

- Releases are now made with GitHub Actions (thanks
[@matthewfeickert](https://github.com/matthewfeickert)).

## Minor Changes

- Fix `torch.result_type()` cross-kind promotion
([@lucascolley](https://github.com/lucascolley)).

- Fix the torch.take() wrapper to make axis optional for ndim = 1.

- Add requires-python metadata to the package
([@matthewfeickert](https://github.com/matthewfeickert)).

# 1.3 (2023-06-20)

## Major Changes
Expand Down
2 changes: 1 addition & 1 deletion array_api_compat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
this implementation for the default when working with NumPy arrays.
"""
__version__ = '1.3'
__version__ = '1.4'

from .common import *
4 changes: 4 additions & 0 deletions numpy-1-21-xfails.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# asarray(copy=False) is not yet implemented
array_api_tests/test_creation_functions.py::test_asarray_arrays

# https://github.com/data-apis/array-api-tests/issues/195
array_api_tests/test_creation_functions.py::test_linspace

# finfo(float32).eps returns float32 but should return float
array_api_tests/test_data_type_functions.py::test_finfo[float32]

Expand Down Expand Up @@ -120,6 +123,7 @@ array_api_tests/test_operators_and_elementwise_functions.py::test_floor_divide[_
array_api_tests/test_operators_and_elementwise_functions.py::test_floor_divide[__floordiv__(x1, x2)]
array_api_tests/test_operators_and_elementwise_functions.py::test_floor_divide[__ifloordiv__(x, s)]
array_api_tests/test_operators_and_elementwise_functions.py::test_floor_divide[floor_divide(x1, x2)]
array_api_tests/test_operators_and_elementwise_functions.py::test_greater[__gt__(x1, x2)]
array_api_tests/test_operators_and_elementwise_functions.py::test_greater[greater(x1, x2)]
array_api_tests/test_operators_and_elementwise_functions.py::test_less[__lt__(x1, x2)]
array_api_tests/test_operators_and_elementwise_functions.py::test_less_equal[less_equal(x1, x2)]
Expand Down

0 comments on commit 5c82ea3

Please sign in to comment.