File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ Contributors
88************
99
1010* Trevor James Smith <
[email protected] > `
@Zeitsperre <
https://www.github.com/Zeitsperre >`_
11+ * Nathan Collier <
[email protected] > `
@nocollier <
https://github.com/nocollier >`_
Original file line number Diff line number Diff line change 22
33import tempfile
44from collections .abc import Sequence
5- from distutils .version import StrictVersion
65from importlib import import_module
76from pathlib import Path
87from typing import Union
98
109from owslib .wps import Output
10+ from packaging .version import Version
1111
1212from birdy .utils import is_opendap_url
1313
@@ -170,8 +170,8 @@ def check_dependencies(self): # noqa: D102
170170 self ._check_import ("netCDF4" )
171171 from netCDF4 import getlibversion
172172
173- version = StrictVersion (getlibversion ().split (" " )[0 ])
174- if version < StrictVersion ("4.5" ):
173+ version = Version (getlibversion ().split (" " )[0 ])
174+ if version < Version ("4.5" ):
175175 raise ImportError ("netCDF4 library must be at least version 4.5" )
176176
177177 def convert (self ): # noqa: D102
You can’t perform that action at this time.
0 commit comments