Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13"]
python-version: ["3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v6
- name: Set up python version ${{ matrix.python-version }} for testing
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG EXTENSIONS="prometheus" # space delimited string

FROM python:3.13-alpine
FROM python:3.14-alpine

ARG EXTENSIONS

Expand Down
3 changes: 2 additions & 1 deletion log_parser/log_parser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import asyncio
import inspect
import logging
import os
from collections.abc import Callable
Expand Down Expand Up @@ -88,7 +89,7 @@ async def track_file(
if file_state == _FileState.NOCHANGE:
async for line in log_io:
for line_parser in line_parsers:
if asyncio.iscoroutinefunction(line_parser):
if inspect.iscoroutinefunction(line_parser):
await line_parser(line)
else:
line_parser(line)
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "log_parser"
version = "1.1.1"
version = "1.2.0"
description = "A simple asynchronous log file parsing library"
readme = "README.md"
requires-python = ">=3.12"
Expand All @@ -17,6 +17,7 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
]
dependencies = ["anyio~=4.13.0"]
Expand Down
Loading