From 61ea2d1cb6b0b1bcffd72554281027ef75da54bb Mon Sep 17 00:00:00 2001 From: "Daniel N. Lang" Date: Mon, 19 Feb 2024 16:21:21 +0800 Subject: [PATCH] replaced pkg_resources.parse_version with packaging.version.Version due to deprecation --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 71600296..a1ce2a17 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ -from pkg_resources import parse_version +from packaging.version import Version from configparser import ConfigParser import setuptools,re,sys -assert parse_version(setuptools.__version__)>=parse_version('36.2') +assert Version(setuptools.__version__)>=Version('36.2') # note: all settings are in settings.ini; edit there, not here config = ConfigParser(delimiters=['='])