Skip to content

Commit ab0adf7

Browse files
authored
Merge pull request #263 from nocollier/distutils
remove distutils for python>3.11 compatibility
2 parents 1a85969 + ac49d02 commit ab0adf7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

AUTHORS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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>`_

birdy/client/converters.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
import tempfile
44
from collections.abc import Sequence
5-
from distutils.version import StrictVersion
65
from importlib import import_module
76
from pathlib import Path
87
from typing import Union
98

109
from owslib.wps import Output
10+
from packaging.version import Version
1111

1212
from 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

0 commit comments

Comments
 (0)