Skip to content

Commit 5fd6087

Browse files
author
Michael Wassmer
committed
Drop support for Python 3.8 and 3.9, require Python 3.10+
This simplifies maintenance and allows using modern Python features: - Updated pyproject.toml to require Python 3.10+ - Removed Python 3.8 and 3.9 from GitHub Actions workflows - Reverted Python 3.8 compatibility changes (can use modern type hints) - Updated classifiers to only include supported Python versions This resolves workflow hanging issues on older Python versions.
1 parent 4f525cc commit 5fd6087

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
15+
python-version: ['3.10', '3.11', '3.12']
1616

1717
steps:
1818
- name: Checkout code

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-latest
2929
strategy:
3030
matrix:
31-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
31+
python-version: ['3.10', '3.11', '3.12']
3232

3333
steps:
3434
- name: Checkout code

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ description = "Your friendly terminal logs viewer"
99
authors = [{name = "Mike Wassmer", email = "mikewassmer@protonmail.com"}]
1010
license = {text = "MIT"}
1111
readme = "README.md"
12-
requires-python = ">=3.8"
12+
requires-python = ">=3.10"
1313
classifiers = [
1414
"Development Status :: 3 - Alpha",
1515
"Environment :: Console",
1616
"Intended Audience :: Developers",
1717
"License :: OSI Approved :: MIT License",
1818
"Programming Language :: Python :: 3",
19-
"Programming Language :: Python :: 3.8",
20-
"Programming Language :: Python :: 3.9",
2119
"Programming Language :: Python :: 3.10",
2220
"Programming Language :: Python :: 3.11",
2321
"Programming Language :: Python :: 3.12",

src/dalog/core/log_reader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import mmap
66
from pathlib import Path
7-
from typing import Any, Dict, Iterator, List, Optional, Tuple, Union
7+
from typing import Any, Dict, Iterator, Optional, Union
88

99
from .log_processor import LogLine
1010
from .log_processor import LogProcessor as OriginalLogProcessor
@@ -96,7 +96,7 @@ def get_size(self) -> int:
9696

9797
def search_lines(
9898
self, pattern: str, case_sensitive: bool = False
99-
) -> Iterator[Tuple[LogLine, List[Tuple[int, int]]]]:
99+
) -> Iterator[tuple[LogLine, list[tuple[int, int]]]]:
100100
"""Search for pattern in lines.
101101
102102
Args:

0 commit comments

Comments
 (0)