Skip to content

Commit 141249f

Browse files
authored
Set minimum supported version to Python 3.10+ (#76)
* 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. * 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](actions/checkout@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](actions/setup-python@v4...v5) * Set pyupgrade pre-commit hook to use --py310-plus
1 parent da546cf commit 141249f

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/pypi-release.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ jobs:
2222
runs-on: ubuntu-latest
2323
if: github.repository == 'xarray-contrib/cupy-xarray'
2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626
with:
2727
fetch-depth: 0
28-
- uses: actions/setup-python@v4
29-
name: Install Python
28+
persist-credentials: false
29+
30+
- name: Install Python
31+
uses: actions/setup-python@v5
3032
with:
31-
python-version: 3.8
33+
python-version: "3.10"
3234

3335
- name: Install dependencies
3436
run: |

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
hooks:
2626
- id: pyupgrade
2727
args:
28-
- "--py38-plus"
28+
- "--py310-plus"
2929

3030
- repo: https://github.com/keewis/blackdoc
3131
rev: v0.3.9

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description = "Interface for using cupy in xarray, providing convenience accesso
88
authors = [{name = "cupy-xarray developers"}]
99
license = {text = "Apache License"}
1010
readme = "README.md"
11-
requires-python = ">=3.8"
11+
requires-python = ">=3.10"
1212
classifiers = [
1313
"Programming Language :: Python :: 3",
1414
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)