Skip to content

Commit a5a48c0

Browse files
add python 3.14 support (#1286)
* add python 3.14 support * fix * remove comment
1 parent 97343ed commit a5a48c0

13 files changed

Lines changed: 378 additions & 348 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ on:
1919
workflow_dispatch:
2020

2121
env:
22-
LATEST_PY_VERSION: '3.13'
22+
LATEST_PY_VERSION: '3.14'
2323

2424
jobs:
2525
tests:
2626
runs-on: ubuntu-latest
2727
strategy:
2828
matrix:
29-
python-version: ['3.11', '3.12', '3.13']
29+
python-version: ['3.11', '3.12', '3.13', '3.14']
3030

3131
steps:
3232
- uses: actions/checkout@v6
@@ -155,8 +155,7 @@ jobs:
155155
- name: Build and push
156156
uses: docker/build-push-action@v6
157157
with:
158-
# TODO: add `linux/arm64 once https://github.com/rasterio/rasterio-wheels/issues/69 is resolved
159-
platforms: linux/amd64 # ,linux/arm64
158+
platforms: linux/amd64,linux/arm64
160159
context: .
161160
file: dockerfiles/Dockerfile
162161
push: ${{ github.event_name != 'pull_request' }}

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* update rio-tiler requirement to `>=8.0,<9.0`
88
* return `UINT8` datatype JPEG/PNG when no output format is specified **breaking change**
99
* remove `/{tileMatrixSetId}/WMTSCapabilities.xml` endpoints from factories **breaking change**
10+
* add python 3.14 support
1011

1112
### titiler.core
1213

docker-compose.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
services:
22
titiler:
3-
# TODO: remove once https://github.com/rasterio/rasterio-wheels/issues/69 is resolved
4-
# See https://github.com/developmentseed/titiler/discussions/387
5-
platform: linux/amd64
63
build:
74
context: .
85
dockerfile: dockerfiles/Dockerfile
@@ -88,7 +85,6 @@ services:
8885
titiler-xarray:
8986
extends:
9087
service: titiler
91-
platform: linux/amd64
9288
build:
9389
context: .
9490
dockerfile: dockerfiles/Dockerfile.xarray

dockerfiles/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PYTHON_VERSION=3.13
1+
ARG PYTHON_VERSION=3.14
22

33
FROM python:${PYTHON_VERSION}
44
RUN apt update && apt upgrade -y \

dockerfiles/Dockerfile.xarray

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PYTHON_VERSION=3.13
1+
ARG PYTHON_VERSION=3.14
22

33
FROM python:${PYTHON_VERSION}
44
RUN apt update && apt upgrade -y \

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ classifiers = [
2525
"Programming Language :: Python :: 3.11",
2626
"Programming Language :: Python :: 3.12",
2727
"Programming Language :: Python :: 3.13",
28+
"Programming Language :: Python :: 3.14",
2829
"Topic :: Scientific/Engineering :: GIS",
2930
]
3031
version="0.26.0"

src/titiler/application/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ classifiers = [
2525
"Programming Language :: Python :: 3.11",
2626
"Programming Language :: Python :: 3.12",
2727
"Programming Language :: Python :: 3.13",
28+
"Programming Language :: Python :: 3.14",
2829
"Topic :: Scientific/Engineering :: GIS",
2930
]
3031
dynamic = ["version"]

src/titiler/core/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ classifiers = [
2525
"Programming Language :: Python :: 3.11",
2626
"Programming Language :: Python :: 3.12",
2727
"Programming Language :: Python :: 3.13",
28+
"Programming Language :: Python :: 3.14",
2829
"Topic :: Scientific/Engineering :: GIS",
2930
]
3031
dynamic = ["version"]

src/titiler/core/tests/test_factories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ def test_TilerFactory():
647647
"masked_pixels",
648648
"valid_percent",
649649
}
650-
assert len(resp["properties"]["statistics"]["b1"]["histogram"][1]) == 12
650+
assert len(resp["properties"]["statistics"]["b1"]["histogram"][1]) == 13
651651

652652
response = client.post(
653653
"/statistics",

src/titiler/extensions/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ classifiers = [
2525
"Programming Language :: Python :: 3.11",
2626
"Programming Language :: Python :: 3.12",
2727
"Programming Language :: Python :: 3.13",
28+
"Programming Language :: Python :: 3.14",
2829
"Topic :: Scientific/Engineering :: GIS",
2930
]
3031
dynamic = ["version"]

0 commit comments

Comments
 (0)