Skip to content

Commit

Permalink
remove python 3.8 and add python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Dec 20, 2024
1 parent 83e8fc4 commit 7cb73cb
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 18 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ on:
- '*'
pull_request:
env:
LATEST_PY_VERSION: '3.11'
LATEST_PY_VERSION: '3.13'

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -57,11 +57,11 @@ jobs:
needs: [tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.13'

- name: Install dependencies
run: |
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.13'

- name: Install dependencies
run: |
Expand All @@ -110,9 +110,9 @@ jobs:
runs-on: ubuntu-latest
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: ${{ env.LATEST_PY_VERSION }}

Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
language_version: python

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
rev: v0.8.4
hooks:
- id: ruff
args: ["--fix"]
Expand Down
2 changes: 0 additions & 2 deletions docs/src/examples/STAC_datacube_support.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"\n",
"import attr\n",
"import xarray\n",
"import rioxarray\n",
"from morecantile import TileMatrixSet\n",
"from rio_tiler.io import XarrayReader\n",
"from rio_tiler.constants import WEB_MERCATOR_TMS\n",
Expand Down Expand Up @@ -341,7 +340,6 @@
"from typing import Set, Type, Tuple, Dict\n",
"from rio_tiler.types import AssetInfo\n",
"from rio_tiler.io import STACReader, BaseReader\n",
"from rio_tiler.io.stac import STAC_ALTERNATE_KEY\n",
"\n",
"valid_types = {\n",
" \"image/tiff; application=geotiff\",\n",
Expand Down
1 change: 0 additions & 1 deletion docs/src/examples/Using-nonEarth-dataset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@
"\n",
" @run_on_executor\n",
" def _get_tile(self, z, x, y):\n",
"\n",
" try:\n",
" with Reader(self.url, tms=europa_tms) as src:\n",
" data = src.tile(x, y, z)\n",
Expand Down
2 changes: 0 additions & 2 deletions docs/src/examples/Using-tms.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@
"\n",
"\n",
"class TileServer:\n",
"\n",
" def __init__(self, src_path):\n",
" \"\"\"Initialize Tornado app.\"\"\"\n",
" self.server = None\n",
Expand Down Expand Up @@ -123,7 +122,6 @@
"\n",
" @run_on_executor\n",
" def _get_tile(self, tms, z, x, y):\n",
"\n",
" try:\n",
" with Reader(self.url, tms=morecantile.tms.get(tms)) as cog:\n",
" img = cog.tile(x, y, z, indexes=(1, 2, 3))\n",
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "rio-tiler"
description = "User friendly Rasterio plugin to read raster datasets."
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
license = {file = "LICENSE"}
authors = [
{name = "Vincent Sarago", email = "[email protected]"},
Expand All @@ -12,11 +12,11 @@ classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: GIS",
]
dynamic = ["version"]
Expand Down Expand Up @@ -153,6 +153,9 @@ ignore = [
"B905", # ignore zip() without an explicit strict= parameter, only support with python >3.10
"B028",
]
exclude = [
"*.ipynb"
]

[tool.ruff.lint.mccabe]
max-complexity = 14
Expand Down

0 comments on commit 7cb73cb

Please sign in to comment.