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 `_ 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