From 8b969e0e36fdc092055e9d92afbe9bf58e377c99 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Fri, 11 Apr 2025 13:55:41 +1200 Subject: [PATCH 1/3] Set license and license-files key in project metadata to follow PEP639 Adhere to https://peps.python.org/pep-0639 to specify Apache-2.0 license in SPDX format. Works on setuptools>=77. --- pyproject.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d98b3fe..5353781 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,13 @@ [build-system] -requires = ["setuptools", "versioneer[toml]"] +requires = ["setuptools>=77", "versioneer[toml]"] build-backend = "setuptools.build_meta" [project] name = "cupy-xarray" description = "Interface for using cupy in xarray, providing convenience accessors." authors = [{name = "cupy-xarray developers"}] -license = {text = "Apache License"} +license = "Apache-2.0" +license-files = ["LICENSE"] readme = "README.md" requires-python = ">=3.8" classifiers = [ From 2de2dd3221f95540b2322ef4878a3480c02717cb Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Fri, 11 Apr 2025 14:20:29 +1200 Subject: [PATCH 2/3] Bump actions/checkout to v4, actions/setup-python to v5 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v4...v5) --- .github/workflows/pypi-release.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pypi-release.yaml b/.github/workflows/pypi-release.yaml index 9a178ce..ed5a3c5 100644 --- a/.github/workflows/pypi-release.yaml +++ b/.github/workflows/pypi-release.yaml @@ -22,13 +22,15 @@ jobs: runs-on: ubuntu-latest if: github.repository == 'xarray-contrib/cupy-xarray' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v4 - name: Install Python + persist-credentials: false + + - name: Install Python + uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: '3.8' - name: Install dependencies run: | From ad1351f127422c8c8486a1f3387dca8ff0196c21 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 11 Apr 2025 02:20:51 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/pypi-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pypi-release.yaml b/.github/workflows/pypi-release.yaml index ed5a3c5..d965d56 100644 --- a/.github/workflows/pypi-release.yaml +++ b/.github/workflows/pypi-release.yaml @@ -30,7 +30,7 @@ jobs: - name: Install Python uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: "3.8" - name: Install dependencies run: |