1
0
mirror of https://github.com/venthur/blag.git synced 2025-11-25 12:42:41 +00:00

Merge pull request #216 from venthur/drop_py38_and_py39

dropped support for python 3.8 and 3.9
This commit is contained in:
Bastian Venthur
2024-04-24 22:19:00 +02:00
committed by GitHub
15 changed files with 9 additions and 50 deletions

View File

@@ -17,15 +17,9 @@ 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"
steps:
- uses: actions/checkout@v4

View File

@@ -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

View File

@@ -24,7 +24,7 @@ blag is named after [the blag of the webcomic xkcd][blagxkcd].
* Integrated devserver
* Available on [PyPI][]
blag runs on Linux, Mac and Windows and requires Python >= 3.8
blag runs on Linux, Mac and Windows and requires Python >= 3.10
[markdown]: https://daringfireball.net/projects/markdown/
[jinja2]: https://palletsprojects.com/p/jinja/

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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 = [

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -1,9 +1,5 @@
"""Test the version module."""
# remove when we don't support py38 anymore
from __future__ import annotations
import blag