diff --git a/.github/workflows/python-package.yaml b/.github/workflows/python-package.yaml index bdf17bd..aa0eb5c 100644 --- a/.github/workflows/python-package.yaml +++ b/.github/workflows/python-package.yaml @@ -17,15 +17,10 @@ jobs: - macos-latest - windows-latest python-version: - - "3.8" - - "3.9" - "3.10" - "3.11" - "3.12" - exclude: - # 3.8 on windows fails due to some pip issue - - os: windows-latest - python-version: "3.8" + - "3.13" steps: - uses: actions/checkout@v4 diff --git a/CHANGELOG.md b/CHANGELOG.md index f4a94ac..c8c9584 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## unreleased + +* dropped support for Python 3.8 and 3.9 +* added Python 3.13 to CI test suite + ## [2.2.1] -- 2023-11-11 * fixed `suggests` to blag-doc diff --git a/blag/blag.py b/blag/blag.py index c770489..ed6db15 100644 --- a/blag/blag.py +++ b/blag/blag.py @@ -2,9 +2,6 @@ """blag's core methods.""" -# remove when we don't support py38 anymore -from __future__ import annotations - import argparse import configparser import logging diff --git a/blag/devserver.py b/blag/devserver.py index 4f3ec50..a67b365 100644 --- a/blag/devserver.py +++ b/blag/devserver.py @@ -6,9 +6,6 @@ site if necessary. """ -# remove when we don't support py38 anymore -from __future__ import annotations - import argparse import logging import multiprocessing diff --git a/blag/markdown.py b/blag/markdown.py index bc7aa6b..ee4c573 100644 --- a/blag/markdown.py +++ b/blag/markdown.py @@ -5,9 +5,6 @@ processing. """ -# remove when we don't support py38 anymore -from __future__ import annotations - import logging from datetime import datetime from urllib.parse import urlsplit, urlunsplit diff --git a/blag/quickstart.py b/blag/quickstart.py index fdd34d8..fc58c37 100644 --- a/blag/quickstart.py +++ b/blag/quickstart.py @@ -1,8 +1,5 @@ """Helper methods for blag's quickstart command.""" -# remove when we don't support py38 anymore -from __future__ import annotations - import argparse import configparser import os diff --git a/pyproject.toml b/pyproject.toml index 5c24414..532d2af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ description = "blog-aware, static site generator" keywords = ["markdown", "blag", "blog", "static site generator", "cli"] readme = "README.md" license = { file="LICENSE" } -requires-python = ">=3.8" +requires-python = ">=3.10" dynamic = ["version"] dependencies = [ "markdown", @@ -65,7 +65,7 @@ addopts = """ [tool.ruff] line-length = 79 -target-version = "py38" +target-version = "py310" [tool.ruff.lint] select = [ diff --git a/tests/conftest.py b/tests/conftest.py index 9ee4239..969a06b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,13 +1,9 @@ """Pytest fixtures.""" - -# remove when we don't support py38 anymore -from __future__ import annotations - import os from argparse import Namespace +from collections.abc import Callable, Iterator from tempfile import TemporaryDirectory -from typing import Callable, Iterator import pytest from jinja2 import Environment, Template diff --git a/tests/test_blag.py b/tests/test_blag.py index 155e483..c7d1ca8 100644 --- a/tests/test_blag.py +++ b/tests/test_blag.py @@ -1,9 +1,5 @@ """Test blag.""" - -# remove when we don't support py38 anymore -from __future__ import annotations - import os from argparse import Namespace from datetime import datetime diff --git a/tests/test_devserver.py b/tests/test_devserver.py index 3652f19..a10c4d9 100644 --- a/tests/test_devserver.py +++ b/tests/test_devserver.py @@ -1,9 +1,5 @@ """Tests for the devserver module.""" - -# remove when we don't support py38 anymore -from __future__ import annotations - import threading import time from argparse import Namespace diff --git a/tests/test_markdown.py b/tests/test_markdown.py index 56cb742..5e393d2 100644 --- a/tests/test_markdown.py +++ b/tests/test_markdown.py @@ -1,9 +1,5 @@ """Test markdown module.""" - -# remove when we don't support py38 anymore -from __future__ import annotations - from datetime import datetime from typing import Any diff --git a/tests/test_quickstart.py b/tests/test_quickstart.py index 4467fc9..70a29e7 100644 --- a/tests/test_quickstart.py +++ b/tests/test_quickstart.py @@ -1,9 +1,5 @@ """Tests for the quickstart module.""" - -# remove when we don't support py38 anymore -from __future__ import annotations - import os from pytest import MonkeyPatch diff --git a/tests/test_templates.py b/tests/test_templates.py index 4d96f66..171be34 100644 --- a/tests/test_templates.py +++ b/tests/test_templates.py @@ -1,9 +1,5 @@ """Test the templates.""" - -# remove when we don't support py38 anymore -from __future__ import annotations - import datetime from jinja2 import Template diff --git a/tests/test_version.py b/tests/test_version.py index fbe1d02..e309b9f 100644 --- a/tests/test_version.py +++ b/tests/test_version.py @@ -1,9 +1,5 @@ """Test the version module.""" - -# remove when we don't support py38 anymore -from __future__ import annotations - import blag