diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7f5e48e..cee19ba 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,7 +37,7 @@ jobs: fail-fast: false matrix: os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] steps: - uses: actions/checkout@v5 diff --git a/CHANGES.md b/CHANGES.md index 115c35d..266f478 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,10 @@ This is a record of all past pytask-latex releases and what went into them in re chronological order. Releases follow [semantic versioning](https://semver.org/) and all releases are available on [Anaconda.org](https://anaconda.org/conda-forge/pytask-latex). +## Unreleased + +- {pull}`93` drops support for Python 3.8 and 3.9 and adds support for Python 3.14. + ## 0.4.3 - 2025-06-01 - {pull}`75` adds rye. diff --git a/pyproject.toml b/pyproject.toml index f670b15..35d31dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ classifiers = [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", ] -requires-python = ">=3.9" +requires-python = ">=3.10" dependencies = [ "latex-dependency-scanner>=0.1.3", "pluggy>=1.0.0", diff --git a/src/pytask_latex/collect.py b/src/pytask_latex/collect.py index 33db53a..08a0b68 100644 --- a/src/pytask_latex/collect.py +++ b/src/pytask_latex/collect.py @@ -7,7 +7,6 @@ from subprocess import CalledProcessError from typing import TYPE_CHECKING from typing import Any -from typing import Callable import latex_dependency_scanner as lds from pytask import Mark @@ -34,6 +33,7 @@ from pytask_latex.utils import to_list if TYPE_CHECKING: + from collections.abc import Callable from collections.abc import Sequence diff --git a/src/pytask_latex/compilation_steps.py b/src/pytask_latex/compilation_steps.py index 6101905..c61358f 100644 --- a/src/pytask_latex/compilation_steps.py +++ b/src/pytask_latex/compilation_steps.py @@ -16,11 +16,11 @@ def compilation_step(path_to_tex: Path, path_to_document: Path): import subprocess from typing import TYPE_CHECKING from typing import Any -from typing import Callable from pytask_latex.utils import to_list if TYPE_CHECKING: + from collections.abc import Callable from pathlib import Path diff --git a/tests/conftest.py b/tests/conftest.py index c7c1474..7f76441 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -7,12 +7,15 @@ import sys from contextlib import contextmanager from pathlib import Path -from typing import Callable +from typing import TYPE_CHECKING import pytest from click.testing import CliRunner from pytask import storage +if TYPE_CHECKING: + from collections.abc import Callable + TEST_RESOURCES = Path(__file__).parent / "resources"