File uproot-use-packaging-module.patch of Package failed_python-uproot

Index: uproot-4.3.4/src/uproot/_util.py
===================================================================
--- uproot-4.3.4.orig/src/uproot/_util.py
+++ uproot-4.3.4/src/uproot/_util.py
@@ -17,7 +17,7 @@ from collections.abc import Iterable
 from urllib.parse import unquote, urlparse
 
 import numpy
-import setuptools
+from packaging import version as pkgversion
 
 win = platform.system().lower().startswith("win")
 
@@ -93,10 +93,10 @@ def parse_version(version):
     Converts a semver string into a Version object that can be compared with
     ``<``, ``>=``, etc.
 
-    Currently implemented using ``setuptools.extern.packaging.version.parse``
+    Currently implemented using ``packaging.version.parse``
     (exposing that library in the return type).
     """
-    return setuptools.extern.packaging.version.parse(version)
+    return pkgversion.parse(version)
 
 
 def from_module(obj, module_name):
openSUSE Build Service is sponsored by