From 7a31bb414e39d4ba366986fb0d4f163ae23604d2 Mon Sep 17 00:00:00 2001 From: Nathan Collier Date: Mon, 23 Dec 2024 15:39:24 -0500 Subject: [PATCH] remove distutils for python > 3.11 compatibility, uses 'packaging' which is already a dependency --- birdy/client/converters.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/birdy/client/converters.py b/birdy/client/converters.py index 3dced2d..9d4a9c7 100644 --- a/birdy/client/converters.py +++ b/birdy/client/converters.py @@ -2,12 +2,12 @@ import tempfile from collections.abc import Sequence -from distutils.version import StrictVersion from importlib import import_module from pathlib import Path from typing import Union from owslib.wps import Output +from packaging.version import Version from birdy.utils import is_opendap_url @@ -170,8 +170,8 @@ def check_dependencies(self): # noqa: D102 self._check_import("netCDF4") from netCDF4 import getlibversion - version = StrictVersion(getlibversion().split(" ")[0]) - if version < StrictVersion("4.5"): + version = Version(getlibversion().split(" ")[0]) + if version < Version("4.5"): raise ImportError("netCDF4 library must be at least version 4.5") def convert(self): # noqa: D102