From 28b97d664405ab9b08ed1cd10b5c8ffafb1c8b74 Mon Sep 17 00:00:00 2001 From: Disyer Date: Tue, 17 Sep 2024 13:38:02 +0300 Subject: [PATCH] version: Switch to looseversion since Python 3.12 removed distutils --- kernelcollector/package_list.py | 2 +- requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kernelcollector/package_list.py b/kernelcollector/package_list.py index f1e6533..d71a214 100644 --- a/kernelcollector/package_list.py +++ b/kernelcollector/package_list.py @@ -1,5 +1,5 @@ from deb_pkg_tools.package import inspect_package_fields -from distutils.version import LooseVersion +from looseversion import LooseVersion from . import utils import shutil, logging, time, os diff --git a/requirements.txt b/requirements.txt index edb3b29..bcaf1c3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ beautifulsoup4 deb-pkg-tools python-gnupg requests +looseversion \ No newline at end of file