Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

matrix:
os: [ubuntu-latest]
python-version: ["3.9", "3.12"]
python-version: ["3.9", "3.13"]

defaults:
run:
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:

matrix:
os: [macos-latest, windows-latest]
python-version: ["3.9", "3.12"]
python-version: ["3.9", "3.13"]

defaults:
run:
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12.2-slim-bullseye AS build_wheel
FROM python:3.13.3-slim-bullseye AS build_wheel

RUN apt-get update \
&& apt-get install \
Expand All @@ -15,7 +15,7 @@ RUN python -m pip install --upgrade pip \
&& python setup.py bdist_wheel


FROM python:3.12.2-slim-bullseye
FROM python:3.13.3-slim-bullseye

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

Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ filterwarnings =
ignore:numpy.dtype size changed:RuntimeWarning
ignore:numpy.ufunc size changed:RuntimeWarning
# sometimes, dependencies leak resources
ignore:.*socket\.socket.*:pytest.PytestUnraisableExceptionWarning
ignore:unclosed database in <sqlite3.Connection:ResourceWarning
ignore:.*socket\.socket.*

[mypy]
show_error_codes = True
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Framework :: Flask",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Operating System :: MacOS :: MacOS X",
Expand Down
2 changes: 1 addition & 1 deletion terracotta/drivers/mysql_meta_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MySQLMetaStore(RelationalMetaStore):
SQL_TIMEOUT_KEY = "connect_timeout"

_CHARSET = "utf8mb4"
SQLA_STRING = functools.partial(VARCHAR, charset=_CHARSET)
SQLA_STRING = staticmethod(functools.partial(VARCHAR, charset=_CHARSET))

MAX_PRIMARY_KEY_SIZE = 767 // 4 # Max key length for MySQL is at least 767B
DEFAULT_PORT = 3306
Expand Down
2 changes: 1 addition & 1 deletion terracotta/handlers/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""

from typing import Sequence, Tuple, Mapping, Optional, TypeVar
from typing.io import BinaryIO
from typing import BinaryIO
from concurrent.futures import Future

from terracotta import get_settings, get_driver, image, xyz, exceptions
Expand Down
2 changes: 1 addition & 1 deletion terracotta/handlers/rgb.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""

from typing import Sequence, Tuple, Optional, TypeVar
from typing.io import BinaryIO
from typing import BinaryIO
from concurrent.futures import Future

from terracotta import get_settings, get_driver, image, xyz, exceptions
Expand Down
2 changes: 1 addition & 1 deletion terracotta/handlers/singleband.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""

from typing import Sequence, Mapping, Union, Tuple, Optional, TypeVar, cast
from typing.io import BinaryIO
from typing import BinaryIO

import collections

Expand Down
2 changes: 1 addition & 1 deletion terracotta/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""

from typing import List, Sequence, Tuple, TypeVar, Union
from typing.io import BinaryIO
from typing import BinaryIO

from io import BytesIO

Expand Down
Loading