From 16a18d6eef90ad2939aacbdd8f1982fb5a086f77 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Fri, 11 Apr 2025 14:36:40 +1200 Subject: [PATCH 1/3] Set minimum supported version to Python 3.10+ Following [SPEC 0](https://scientific-python.org/specs/spec-0000/) policy where Python 3.9 should be dropped in 2024 quarter 4. --- .github/workflows/pypi-release.yaml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pypi-release.yaml b/.github/workflows/pypi-release.yaml index 9a178ce..8de9261 100644 --- a/.github/workflows/pypi-release.yaml +++ b/.github/workflows/pypi-release.yaml @@ -28,7 +28,7 @@ jobs: - uses: actions/setup-python@v4 name: Install Python with: - python-version: 3.8 + python-version: "3.10" - name: Install dependencies run: | diff --git a/pyproject.toml b/pyproject.toml index d98b3fe..147fc7a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ description = "Interface for using cupy in xarray, providing convenience accesso authors = [{name = "cupy-xarray developers"}] license = {text = "Apache License"} readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.10" classifiers = [ "Programming Language :: Python :: 3", "Operating System :: OS Independent", From 859f07048bd628547716349057655795dd92b955 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Fri, 11 Apr 2025 14:37:00 +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 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pypi-release.yaml b/.github/workflows/pypi-release.yaml index 8de9261..2b12fbb 100644 --- a/.github/workflows/pypi-release.yaml +++ b/.github/workflows/pypi-release.yaml @@ -22,11 +22,13 @@ 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.10" From 74c177f6437d0a78589764b215c30e04228f8218 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Fri, 11 Apr 2025 14:44:24 +1200 Subject: [PATCH 3/3] Set pyupgrade pre-commit hook to use --py310-plus --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eab56f8..5f17f37 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: hooks: - id: pyupgrade args: - - "--py38-plus" + - "--py310-plus" - repo: https://github.com/keewis/blackdoc rev: v0.3.9