Skip to content

Commit 5c82ea3

Browse files
authored
Merge pull request #56 from asmeurer/release
1.4 release
2 parents ae2d029 + 68486f3 commit 5c82ea3

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

.github/workflows/publish-package.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373
# c.f. https://docs.pypi.org/trusted-publishers/using-a-publisher/
7474
permissions:
7575
id-token: write
76+
contents: write
7677
# Restrict to the environment set for the trusted publisher
7778
environment:
7879
name: publish-package
@@ -98,8 +99,14 @@ jobs:
9899
repository-url: https://test.pypi.org/legacy/
99100
print-hash: true
100101

102+
- name: Create GitHub Release from a Tag
103+
uses: softprops/action-gh-release@v1
104+
if: startsWith(github.ref, 'refs/tags/')
105+
with:
106+
files: dist/*
107+
101108
- name: Publish distribution 📦 to PyPI
102-
if: github.event_name == 'release' && github.event.action == 'published'
109+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
103110
uses: pypa/gh-action-pypi-publish@v1.8.10
104111
with:
105112
print-hash: true

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# 1.4 (2023-09-13)
2+
3+
## Major Changes
4+
5+
- Releases are now made with GitHub Actions (thanks
6+
[@matthewfeickert](https://github.com/matthewfeickert)).
7+
8+
## Minor Changes
9+
10+
- Fix `torch.result_type()` cross-kind promotion
11+
([@lucascolley](https://github.com/lucascolley)).
12+
13+
- Fix the torch.take() wrapper to make axis optional for ndim = 1.
14+
15+
- Add requires-python metadata to the package
16+
([@matthewfeickert](https://github.com/matthewfeickert)).
17+
118
# 1.3 (2023-06-20)
219

320
## Major Changes

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.3'
20+
__version__ = '1.4'
2121

2222
from .common import *

numpy-1-21-xfails.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# asarray(copy=False) is not yet implemented
22
array_api_tests/test_creation_functions.py::test_asarray_arrays
33

4+
# https://github.com/data-apis/array-api-tests/issues/195
5+
array_api_tests/test_creation_functions.py::test_linspace
6+
47
# finfo(float32).eps returns float32 but should return float
58
array_api_tests/test_data_type_functions.py::test_finfo[float32]
69

@@ -120,6 +123,7 @@ array_api_tests/test_operators_and_elementwise_functions.py::test_floor_divide[_
120123
array_api_tests/test_operators_and_elementwise_functions.py::test_floor_divide[__floordiv__(x1, x2)]
121124
array_api_tests/test_operators_and_elementwise_functions.py::test_floor_divide[__ifloordiv__(x, s)]
122125
array_api_tests/test_operators_and_elementwise_functions.py::test_floor_divide[floor_divide(x1, x2)]
126+
array_api_tests/test_operators_and_elementwise_functions.py::test_greater[__gt__(x1, x2)]
123127
array_api_tests/test_operators_and_elementwise_functions.py::test_greater[greater(x1, x2)]
124128
array_api_tests/test_operators_and_elementwise_functions.py::test_less[__lt__(x1, x2)]
125129
array_api_tests/test_operators_and_elementwise_functions.py::test_less_equal[less_equal(x1, x2)]

0 commit comments

Comments
 (0)