Skip to content

Commit db2bc3d

Browse files
authored
DEP: Support Python 3.12+ & numpy 2+ (#190)
1 parent 3bd4230 commit db2bc3d

File tree

21 files changed

+33
-22
lines changed

21 files changed

+33
-22
lines changed

.github/workflows/build_docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
init-shell: bash
2727
environment-name: docs
2828
create-args: >-
29-
python=3.10
29+
python=3.12
3030
geopandas
3131
odc-geo
3232
pandoc

.github/workflows/diff.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
- name: Set up Python
1515
uses: actions/setup-python@v6
1616
with:
17-
python-version: "3.10"
17+
python-version: "3.12"
1818
- name: nbdime-git-diff
1919
uses: raybellwaves/[email protected]

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@v6
2121
- uses: actions/setup-python@v6
2222
with:
23-
python-version: '3.10'
23+
python-version: '3.12'
2424

2525
- name: Install dependencies
2626
run: |

.github/workflows/tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v6
2020
- uses: actions/setup-python@v6
2121
with:
22-
python-version: '3.10'
22+
python-version: '3.12'
2323
- uses: pre-commit/[email protected]
2424

2525
test:
@@ -30,7 +30,7 @@ jobs:
3030
fail-fast: true
3131
matrix:
3232
os: [ubuntu-latest, macos-latest, windows-latest]
33-
python-version: ['3.10', '3.11', '3.12']
33+
python-version: ['3.12', '3.13', '3.14']
3434

3535
steps:
3636
- uses: actions/checkout@v6
@@ -103,7 +103,7 @@ jobs:
103103
init-shell: bash
104104
environment-name: test
105105
create-args: >-
106-
python=3.10
106+
python=3.12
107107
proj
108108
libgdal
109109
cython

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
default_language_version:
2-
python: python3.10
2+
python: python3.12
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.5.0
6+
rev: v6.0.0
77
hooks:
88
- id: check-yaml
99
- id: end-of-file-fixer
1010
- id: trailing-whitespace
1111
- repo: https://github.com/psf/black-pre-commit-mirror
12-
rev: 23.12.1
12+
rev: 25.9.0
1313
hooks:
1414
- id: black
1515
- repo: https://github.com/pycqa/isort
16-
rev: 5.13.2
16+
rev: 7.0.0
1717
hooks:
1818
- id: isort
1919
args: [rioxarray/, test/, docs/]
2020
- repo: https://github.com/asottile/blacken-docs
21-
rev: 1.16.0
21+
rev: 1.20.0
2222
hooks:
2323
- id: blacken-docs
2424
args: [--skip-errors]
2525
- repo: https://github.com/pycqa/flake8
26-
rev: 6.1.0
26+
rev: 7.3.0
2727
hooks:
2828
- id: flake8

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Before you submit a pull request, check that it meets these guidelines:
110110
2. If the pull request adds functionality, the docs should be updated. Put
111111
your new functionality into a function with a docstring, and add the
112112
feature to the list in README.rst.
113-
3. The pull request should work for Python 3.10-3.12.
113+
3. The pull request should work for Python 3.12-3.14.
114114

115115
Tips
116116
----

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
environment:
66
matrix:
7-
- PYTHON_VERSION: "3.10"
7+
- PYTHON_VERSION: "3.12"
88
MINICONDA: "C:\\Miniconda3-x64"
99

1010
install:

docs/history.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ History
33

44
Latest
55
------
6+
- DEP: Support Python 3.12+ & numpy 2+ (pull #190)
67

78
0.7.1
89
------

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: geocube
66
channels:
77
- conda-forge
88
dependencies:
9-
- python=3.10
9+
- python=3.12
1010
- geopandas
1111
- libgdal-netcdf
1212
- libgdal-hdf4

geocube/_show_versions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
adapted from :func:`sklearn.utils._show_versions`
55
which was adapted from :func:`pandas.show_versions`
66
"""
7+
78
# pylint: disable=import-outside-toplevel
89
import importlib.metadata
910
import platform

0 commit comments

Comments
 (0)