We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af8475a commit cbf57dfCopy full SHA for cbf57df
cf_xarray/tests/__init__.py
@@ -1,10 +1,10 @@
1
import importlib
2
import re
3
from contextlib import contextmanager
4
-from distutils import version
5
6
import dask
7
import pytest
+from packaging import version
8
9
10
@contextmanager
@@ -60,7 +60,7 @@ def LooseVersion(vstring):
60
# Our development version is something like '0.10.9+aac7bfc'
61
# This function just ignored the git commit id.
62
vstring = vstring.split("+")[0]
63
- return version.LooseVersion(vstring)
+ return version.parse(vstring)
64
65
66
has_cftime, requires_cftime = _importorskip("cftime")
0 commit comments