From 7b64aa07f2728ae792798a22dea5818b75d109c4 Mon Sep 17 00:00:00 2001 From: Cameron DeCoster Date: Mon, 28 Sep 2026 19:43:21 -0600 Subject: [PATCH 1/5] build: Drop Python 3.8 support --- .github/workflows/publish_testpypi.yml | 2 +- src/py/.python-version | 2 +- src/py/docs/examples_script.py | 2 +- src/py/kaleido/_page_generator.py | 4 +- src/py/kaleido/_utils/__init__.py | 3 +- src/py/kaleido/kaleido.py | 7 +- src/py/kaleido/mocker/_utils.py | 2 +- src/py/pyproject.toml | 2 +- src/py/tests/test_kaleido.py | 2 +- src/py/uv.lock | 1198 ++---------------------- 10 files changed, 91 insertions(+), 1133 deletions(-) diff --git a/.github/workflows/publish_testpypi.yml b/.github/workflows/publish_testpypi.yml index 2e9492a1..c99fb64a 100644 --- a/.github/workflows/publish_testpypi.yml +++ b/.github/workflows/publish_testpypi.yml @@ -12,7 +12,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python_v: ['3.8', '3.9', '3.10', '3.12', '3.13', '3.14'] + python_v: ['3.9', '3.10', '3.12', '3.13', '3.14'] # chrome_v: ['-1'] defaults: run: diff --git a/src/py/.python-version b/src/py/.python-version index cc1923a4..bd28b9c5 100644 --- a/src/py/.python-version +++ b/src/py/.python-version @@ -1 +1 @@ -3.8 +3.9 diff --git a/src/py/docs/examples_script.py b/src/py/docs/examples_script.py index c0f5a8f3..3219af3d 100644 --- a/src/py/docs/examples_script.py +++ b/src/py/docs/examples_script.py @@ -1,5 +1,5 @@ # /// script -# requires-python = ">=3.8" +# requires-python = ">=3.9" # dependencies = [ # "pandas", # "plotly[express]", diff --git a/src/py/kaleido/_page_generator.py b/src/py/kaleido/_page_generator.py index 34a0176b..be3b2903 100644 --- a/src/py/kaleido/_page_generator.py +++ b/src/py/kaleido/_page_generator.py @@ -8,11 +8,11 @@ from ._utils import path_tools if TYPE_CHECKING: - from typing import Tuple, Union + from typing import Union from typing_extensions import TypeAlias - UrlAndCharset: TypeAlias = Tuple[Union[str, Path], str] + UrlAndCharset: TypeAlias = tuple[Union[str, Path], str] """A tuple to explicitly set charset= in the