diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 35f087d2..b60c2d23 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -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 @@ -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/gh-action-pypi-publish@v1.8.10 with: print-hash: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 725594e5..e107a63f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/array_api_compat/__init__.py b/array_api_compat/__init__.py index 5a0d650d..b60dd0d5 100644 --- a/array_api_compat/__init__.py +++ b/array_api_compat/__init__.py @@ -17,6 +17,6 @@ this implementation for the default when working with NumPy arrays. """ -__version__ = '1.3' +__version__ = '1.4' from .common import * diff --git a/numpy-1-21-xfails.txt b/numpy-1-21-xfails.txt index 80ac9f10..48484413 100644 --- a/numpy-1-21-xfails.txt +++ b/numpy-1-21-xfails.txt @@ -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] @@ -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)]