From 894cfa00b363734b53f55b3537ad85614ba86917 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Wed, 6 Nov 2024 15:25:52 -0700 Subject: [PATCH 1/7] Add changelog entries for 2.1.1 --- docs/changelog.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index 1329d32..d62653a 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,9 +1,22 @@ # Changelog +## 2.1.1 (2024-11-06) + +### Minor Changes + +- Use a more robust implementation of `clip()` that handles corner cases better. + +- Fix the definition of `sign()` for complex numbers when using NumPy 1.x. + +- Correctly use the array's device when promoting scalars. (Thanks to + [@betatim](https://github.com/betatim)) + +- Correctly propagate the input array's device in `asarray()`. (Thanks to + [@betatim](https://github.com/betatim)) ## 2.1 (2024-10-18) -## Major Changes +### Major Changes - The default version of the array API standard is now 2023.12. 2022.12 can still be enabled via the [flags API](array-api-strict-flags). From d9f7fa6891acb71a9d600acb66aba3e1a505c613 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Wed, 6 Nov 2024 15:34:13 -0700 Subject: [PATCH 2/7] Add a changelog entry for the removal of `__array__` --- docs/changelog.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/changelog.md b/docs/changelog.md index d62653a..9a451d3 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,6 +2,14 @@ ## 2.1.1 (2024-11-06) +### Major Changes + +- Remove the `__array__` method from array-api-strict arrays. This means they + will no longer be implicitly converted to NumPy arrays when passed to `np` + functions. This method was previously implemented as a convenience, but it + isn't part of the array API standard. To portably convert an array API + strict array to a NumPy array, use `np.from_dlpack(x)` + ### Minor Changes - Use a more robust implementation of `clip()` that handles corner cases better. From 00536a97d0e91b5e11424626c7c58afbfd22fa67 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Wed, 6 Nov 2024 16:43:48 -0700 Subject: [PATCH 3/7] Create the GitHub release after publishing to PyPI --- .github/workflows/publish-package.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index feb1095..fbdb8ca 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -102,14 +102,14 @@ jobs: repository-url: https://test.pypi.org/legacy/ print-hash: true - - name: Create GitHub Release from a Tag - uses: softprops/action-gh-release@v2 - if: startsWith(github.ref, 'refs/tags/') - with: - files: dist/* - - name: Publish distribution 📦 to PyPI if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@v1.11.0 with: print-hash: true + + - name: Create GitHub Release from a Tag + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: dist/* From 35088135861f6db02f8353475b1c1e61ec23d192 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Wed, 6 Nov 2024 16:53:26 -0700 Subject: [PATCH 4/7] Add changelog for 2.1.2 --- docs/changelog.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/changelog.md b/docs/changelog.md index 9a451d3..e7a7f6b 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2.1.2 (2024-11-06) + +2.1.2 is identical to 2.1.1 and exists to fix issues with the PyPI publishing +that occured with the 2.1.1 release. + ## 2.1.1 (2024-11-06) ### Major Changes From 2ba54cf2288f6b36523a67a6bea9a715d7441c5d Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Thu, 7 Nov 2024 13:17:03 -0700 Subject: [PATCH 5/7] Comment out TestPyPI publishing It's currently broken (https://github.com/pypa/gh-action-pypi-publish/issues/283) --- .github/workflows/publish-package.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index bddb802..825b0a0 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -91,16 +91,16 @@ jobs: - name: List all files run: ls -lh dist - - name: Publish distribution 📦 to Test PyPI - # Publish to TestPyPI on tag events of if manually triggered - # Compare to 'true' string as booleans get turned into strings in the console - if: >- - (github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) - || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true') - uses: pypa/gh-action-pypi-publish@v1.12.2 - with: - repository-url: https://test.pypi.org/legacy/ - print-hash: true + # - name: Publish distribution 📦 to Test PyPI + # # Publish to TestPyPI on tag events of if manually triggered + # # Compare to 'true' string as booleans get turned into strings in the console + # if: >- + # (github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) + # || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true') + # uses: pypa/gh-action-pypi-publish@v1.12.2 + # with: + # repository-url: https://test.pypi.org/legacy/ + # print-hash: true - name: Publish distribution 📦 to PyPI if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') From 6e59494cbfd3ed949cf2009f778fc4cfdfc3eb04 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Thu, 7 Nov 2024 13:18:01 -0700 Subject: [PATCH 6/7] Remove the 2.1.2 changelog 2.1.1 was never released to PyPI so I should be able to just do that one. --- docs/changelog.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index e7a7f6b..66f61d9 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,11 +1,6 @@ # Changelog -## 2.1.2 (2024-11-06) - -2.1.2 is identical to 2.1.1 and exists to fix issues with the PyPI publishing -that occured with the 2.1.1 release. - -## 2.1.1 (2024-11-06) +## 2.1.1 (2024-11-07) ### Major Changes From 2d3ebd9b4ef1df51535605d54a9c47ae026b4e50 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Thu, 7 Nov 2024 13:21:07 -0700 Subject: [PATCH 7/7] Revert "Comment out TestPyPI publishing" This reverts commit 2ba54cf2288f6b36523a67a6bea9a715d7441c5d. --- .github/workflows/publish-package.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 825b0a0..bddb802 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -91,16 +91,16 @@ jobs: - name: List all files run: ls -lh dist - # - name: Publish distribution 📦 to Test PyPI - # # Publish to TestPyPI on tag events of if manually triggered - # # Compare to 'true' string as booleans get turned into strings in the console - # if: >- - # (github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) - # || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true') - # uses: pypa/gh-action-pypi-publish@v1.12.2 - # with: - # repository-url: https://test.pypi.org/legacy/ - # print-hash: true + - name: Publish distribution 📦 to Test PyPI + # Publish to TestPyPI on tag events of if manually triggered + # Compare to 'true' string as booleans get turned into strings in the console + if: >- + (github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) + || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true') + uses: pypa/gh-action-pypi-publish@v1.12.2 + with: + repository-url: https://test.pypi.org/legacy/ + print-hash: true - name: Publish distribution 📦 to PyPI if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')