Skip to content

Commit c7c98f7

Browse files
committed
DOC: Use packaging.version.Version over LooseVersion
1 parent e0e50df commit c7c98f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/tools/build_modref_templates.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import sys
1010

1111
# version comparison
12-
from distutils.version import LooseVersion as V
12+
from packaging.version import Version as V
1313
from os.path import join as pjoin
1414

1515
# local imports
@@ -73,6 +73,8 @@ def abort(error):
7373
if re.match('^_version_(major|minor|micro|extra)', v)
7474
]
7575
)
76+
77+
source_version = V(source_version)
7678
print('***', source_version)
7779

7880
if source_version != installed_version:

0 commit comments

Comments
 (0)