From 013b8852ea59f1717138d8d94a77505d2c2c3603 Mon Sep 17 00:00:00 2001 From: Konrad Weihmann Date: Tue, 14 Oct 2025 12:00:51 +0200 Subject: [PATCH 1/2] repo: enable python 3.14 support remove support for python 3.9 Signed-off-by: Konrad Weihmann --- .github/workflows/build.yml | 2 +- pyproject.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0519e643..8cf4ddc3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: strategy: max-parallel: 5 matrix: - 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@v2 diff --git a/pyproject.toml b/pyproject.toml index da57ece4..c91e0a8b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ statistics = false [project] name = "systemdlint" -requires-python = ">= 3.9" +requires-python = ">= 3.10" version = "1.4.0" description = "Systemd Unitfile Linter" readme = "README.md" @@ -60,7 +60,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", - "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Topic :: Software Development :: Quality Assurance", ] dependencies = [ From d456aa6665062f75f9045d2d1e5b43bcd3c22683 Mon Sep 17 00:00:00 2001 From: Konrad Weihmann Date: Tue, 14 Oct 2025 12:22:57 +0200 Subject: [PATCH 2/2] test: fix testing script as context setting for multiprocessing got mandatory in python 3.14 Signed-off-by: Konrad Weihmann --- tests/test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test b/tests/test index fc85dd41..4e6d454a 100755 --- a/tests/test +++ b/tests/test @@ -4,8 +4,7 @@ import os import re import subprocess import sys -from multiprocessing import Pool -from multiprocessing import cpu_count +import multiprocessing _basepath = os.path.dirname(os.path.abspath(__file__)) _bindir = os.path.abspath(os.path.join(_basepath, "..", "bin")) @@ -89,7 +88,8 @@ for _file in glob.glob(_basepath + "/**/*", recursive=True): _files.append(_file) # Run in pool -p = Pool(processes=cpu_count() * 10) +ctx = multiprocessing.get_context('fork') +p = ctx.Pool(processes=multiprocessing.cpu_count() * 10) _map = p.map(run_tc, _files) if not all([x for x in _map]):