File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
import importlib
2
- from distutils import version
3
2
4
3
import pytest
4
+ from packaging import version
5
5
6
6
7
7
def _importorskip (modname , minversion = None ):
@@ -21,7 +21,7 @@ def LooseVersion(vstring):
21
21
# Our development version is something like '0.10.9+aac7bfc'
22
22
# This function just ignores the git commit id.
23
23
vstring = vstring .split ("+" )[0 ]
24
- return version .LooseVersion (vstring )
24
+ return version .parse (vstring )
25
25
26
26
27
27
has_zarr , requires_zarr = _importorskip ("zarr" )
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ Documentation
57
57
Internal Changes
58
58
~~~~~~~~~~~~~~~~
59
59
60
+ * No longer use the deprecated `distutils ` package.
61
+
60
62
.. _whats-new.v0.0.12 :
61
63
62
64
v0.0.12 (03/07/2023)
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ classifiers = [
20
20
requires-python = " >=3.9"
21
21
dependencies = [
22
22
" xarray >=2022.6.0" ,
23
+ " packaging" ,
23
24
]
24
25
dynamic = [" version" ]
25
26
You can’t perform that action at this time.
0 commit comments