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 = [ 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]):