Skip to content

Commit

Permalink
DEP: Support Python 3.10-3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed Dec 29, 2023
1 parent baef2b4 commit 9e08856
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ jobs:
- name: Setup Conda
uses: s-weigand/setup-conda@v1
with:
python-version: 3.9
python-version: '3.10'
conda-channels: conda-forge

- name: Install and Build
shell: bash
run: |
conda config --prepend channels conda-forge
conda config --set channel_priority strict
conda create -n docs python=3.9 odc-geo geopandas rasterio scipy rioxarray xarray pandoc
conda create -n docs python=3.10 odc-geo geopandas rasterio scipy rioxarray xarray pandoc
source activate docs
python -m pip install -e .[doc]
sphinx-build -b html docs/ docs/_build/
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.9
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9.13"
python-version: "3.10"
- name: nbdime-git-diff
uses: raybellwaves/[email protected]
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Before you submit a pull request, check that it meets these guidelines:
2. If the pull request adds functionality, the docs should be updated. Put
your new functionality into a function with a docstring, and add the
feature to the list in README.rst.
3. The pull request should work for Python 3.9-3.11.
3. The pull request should work for Python 3.10-3.12.

Tips
----
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

environment:
matrix:
- PYTHON_VERSION: "3.9"
- PYTHON_VERSION: "3.10"
MINICONDA: "C:\\Miniconda3-x64"

install:
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ channels:
- conda-forge
- defaults
dependencies:
- python=3.9
- python=3.10
- geopandas
- rasterio
- scipy
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
python_version = 3.9
python_version = 3.10
allow_redefinition = True
plugins = numpy.typing.mypy_plugin

Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ classifiers =
Operating System :: OS Independent
Topic :: Scientific/Engineering :: GIS
Programming Language :: Python
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3
Topic :: Software Development :: Libraries :: Python Modules
Typing :: Typed
Expand All @@ -31,7 +31,7 @@ download_url = http://python.org/pypi/geocube
packages = find:
zip_safe = False # https://mypy.readthedocs.io/en/stable/installed_packages.html
include_package_data = True
python_requires = >=3.9
python_requires = >=3.10
install_requires =
appdirs
click>=6.0
Expand Down

0 comments on commit 9e08856

Please sign in to comment.