Skip to content

Commit 2f41baa

Browse files
committed
make terracotta compatible with python 3.13
1 parent 1ca54f1 commit 2f41baa

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
matrix:
2626
os: [ubuntu-latest]
27-
python-version: ["3.9", "3.12"]
27+
python-version: ["3.9", "3.13"]
2828

2929
defaults:
3030
run:

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.12.2-slim-bullseye AS build_wheel
1+
FROM python:3.13.3-slim-bullseye AS build_wheel
22

33
RUN apt-get update \
44
&& apt-get install \
@@ -15,7 +15,7 @@ RUN python -m pip install --upgrade pip \
1515
&& python setup.py bdist_wheel
1616

1717

18-
FROM python:3.12.2-slim-bullseye
18+
FROM python:3.13.3-slim-bullseye
1919

2020
COPY --from=build_wheel /terracotta/dist/*.whl /terracotta/
2121

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"Programming Language :: Python :: 3.10",
4040
"Programming Language :: Python :: 3.11",
4141
"Programming Language :: Python :: 3.12",
42+
"Programming Language :: Python :: 3.13",
4243
"Framework :: Flask",
4344
"Operating System :: Microsoft :: Windows :: Windows 10",
4445
"Operating System :: MacOS :: MacOS X",

terracotta/handlers/compute.py

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

66
from typing import Sequence, Tuple, Mapping, Optional, TypeVar
7-
from typing.io import BinaryIO
7+
from typing import BinaryIO
88
from concurrent.futures import Future
99

1010
from terracotta import get_settings, get_driver, image, xyz, exceptions

terracotta/handlers/rgb.py

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

66
from typing import Sequence, Tuple, Optional, TypeVar
7-
from typing.io import BinaryIO
7+
from typing import BinaryIO
88
from concurrent.futures import Future
99

1010
from terracotta import get_settings, get_driver, image, xyz, exceptions

terracotta/handlers/singleband.py

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

66
from typing import Sequence, Mapping, Union, Tuple, Optional, TypeVar, cast
7-
from typing.io import BinaryIO
7+
from typing import BinaryIO
88

99
import collections
1010

terracotta/image.py

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

66
from typing import List, Sequence, Tuple, TypeVar, Union
7-
from typing.io import BinaryIO
7+
from typing import BinaryIO
88

99
from io import BytesIO
1010

0 commit comments

Comments
 (0)