From 7a31bb414e39d4ba366986fb0d4f163ae23604d2 Mon Sep 17 00:00:00 2001 From: Nathan Collier Date: Mon, 23 Dec 2024 15:39:24 -0500 Subject: [PATCH 1/2] 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 From ac49d023f851f2c1dcd88e3f9b1e768ee1eb6e67 Mon Sep 17 00:00:00 2001 From: Nathan Collier Date: Fri, 3 Jan 2025 10:05:58 -0500 Subject: [PATCH 2/2] added Collier to contributors --- AUTHORS.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS.rst b/AUTHORS.rst index 2b850d8..faa80b7 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -8,3 +8,4 @@ Contributors ************ * Trevor James Smith `@Zeitsperre `_ +* Nathan Collier `@nocollier `_