Skip to content

Commit 4357409

Browse files
authored
DEP: Support Python 3.10-3.12 (#723)
1 parent 9dfe2f4 commit 4357409

8 files changed

+17
-23
lines changed

.github/workflows/build_docs.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ jobs:
2323
- name: Setup Conda
2424
uses: s-weigand/setup-conda@v1
2525
with:
26-
python-version: 3.9
26+
python-version: '3.10'
2727
conda-channels: conda-forge
2828

2929
- name: Install and Build
3030
shell: bash
3131
run: |
3232
conda config --prepend channels conda-forge
3333
conda config --set channel_priority strict
34-
conda create -n docs python=3.9 rasterio xarray scipy pyproj pandoc
34+
conda create -n docs python=3.10 rasterio xarray scipy pyproj pandoc
3535
source activate docs
3636
python -m pip install -e .[doc]
3737
sphinx-build -b html docs/ docs/_build/

.github/workflows/release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@v4
2121
- uses: actions/setup-python@v5
2222
with:
23-
python-version: '3.9'
23+
python-version: '3.10'
2424

2525
- name: Install dependencies
2626
run: |

.github/workflows/tests.yaml

+8-14
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,20 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
python-version: ['3.9', '3.10', '3.11']
35+
python-version: ['3.10', '3.11', '3.12']
3636
rasterio-version: ['']
3737
xarray-version: ['']
3838
pandas-version: ['']
3939
run-with-scipy: ['YES']
4040
gdal-version: ['3.6.4']
4141
include:
42-
- python-version: '3.9'
42+
- python-version: '3.10'
4343
rasterio-version: ''
4444
xarray-version: '==0.17'
4545
pandas-version: '<2'
4646
run-with-scipy: 'YES'
4747
gdal-version: '3.4.3'
48-
- python-version: '3.9'
49-
rasterio-version: '==1.2.1'
50-
xarray-version: ''
51-
pandas-version: ''
52-
run-with-scipy: 'YES'
53-
gdal-version: '3.5.3'
54-
- python-version: '3.9'
48+
- python-version: '3.10'
5549
rasterio-version: ''
5650
xarray-version: ''
5751
pandas-version: ''
@@ -108,7 +102,7 @@ jobs:
108102
fail-fast: true
109103
matrix:
110104
os: [ubuntu-latest, macos-latest, windows-latest]
111-
python-version: ['3.9', '3.10', '3.11']
105+
python-version: ['3.10', '3.11', '3.12']
112106
rasterio-version: ['*']
113107
xarray-version: ['*']
114108
run-with-scipy: ['YES']
@@ -142,15 +136,15 @@ jobs:
142136
conda info
143137
144138
- name: pylint
145-
if: matrix.python-version == '3.9'
139+
if: matrix.python-version == '3.10'
146140
shell: bash
147141
run: |
148142
source activate test
149143
pylint rioxarray/
150144
151145
- name: mypy
152146
shell: bash
153-
if: matrix.python-version == '3.9'
147+
if: matrix.python-version == '3.10'
154148
run: |
155149
source activate test
156150
mypy rioxarray/
@@ -181,15 +175,15 @@ jobs:
181175
- name: Setup Conda
182176
uses: s-weigand/setup-conda@v1
183177
with:
184-
python-version: 3.9
178+
python-version: '3.10'
185179
conda-channels: conda-forge
186180

187181
- name: Install Env
188182
shell: bash
189183
run: |
190184
conda config --prepend channels conda-forge
191185
conda config --set channel_priority strict
192-
conda create -n test python=3.9 proj libgdal cython netcdf4
186+
conda create -n test python=3.10 proj libgdal cython netcdf4
193187
source activate test
194188
python -m pip install \
195189
--index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \

CONTRIBUTING.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Before you submit a pull request, check that it meets these guidelines:
135135
2. If the pull request adds functionality, the docs should be updated. Put
136136
your new functionality into a function with a docstring, and add the
137137
feature to the list in README.rst.
138-
3. The pull request should work for Python 3.9-3.11.
138+
3. The pull request should work for Python 3.10-3.12.
139139

140140
Tips
141141
----

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG GDAL=ubuntu-full-3.6.4
22
FROM ghcr.io/osgeo/gdal:${GDAL}
3-
ARG PYTHON_VERSION="3.9"
3+
ARG PYTHON_VERSION="3.10"
44
ENV LANG="C.UTF-8"
55
ENV LC_ALL="C.UTF-8"
66
ENV PIP_NO_BINARY="rasterio"

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

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

1010
install:

mypy.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[mypy]
2-
python_version = 3.9
2+
python_version = 3.10
33

44
[mypy-affine]
55
ignore_missing_imports = True

setup.cfg

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ classifiers =
1717
Operating System :: OS Independent
1818
Topic :: Scientific/Engineering :: GIS
1919
Programming Language :: Python
20-
Programming Language :: Python :: 3.9
2120
Programming Language :: Python :: 3.10
2221
Programming Language :: Python :: 3.11
22+
Programming Language :: Python :: 3.12
2323
Programming Language :: Python :: 3
2424
Topic :: Software Development :: Libraries :: Python Modules
2525
Typing :: Typed
@@ -30,7 +30,7 @@ download_url = http://python.org/pypi/rioxarray
3030
packages = find:
3131
zip_safe = False # https://mypy.readthedocs.io/en/stable/installed_packages.html
3232
include_package_data = True
33-
python_requires = >=3.9
33+
python_requires = >=3.10
3434
install_requires =
3535
packaging
3636
rasterio>=1.2

0 commit comments

Comments
 (0)