Skip to content

Commit cbf57df

Browse files
authored
remove distutils (#463)
* remove distutils * should be OK
1 parent af8475a commit cbf57df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cf_xarray/tests/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import importlib
22
import re
33
from contextlib import contextmanager
4-
from distutils import version
54

65
import dask
76
import pytest
7+
from packaging import version
88

99

1010
@contextmanager
@@ -60,7 +60,7 @@ def LooseVersion(vstring):
6060
# Our development version is something like '0.10.9+aac7bfc'
6161
# This function just ignored the git commit id.
6262
vstring = vstring.split("+")[0]
63-
return version.LooseVersion(vstring)
63+
return version.parse(vstring)
6464

6565

6666
has_cftime, requires_cftime = _importorskip("cftime")

0 commit comments

Comments
 (0)