Skip to content

Commit

Permalink
Merge pull request #888 from hloeung/looseversion
Browse files Browse the repository at this point in the history
Use looseversion in place of distutils
  • Loading branch information
ajkavanagh authored Jun 20, 2024
2 parents 3eb526e + 012b2d6 commit 1b2d4dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion charmhelpers/core/hookenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
# Charm Helpers Developers <[email protected]>

import copy
from distutils.version import LooseVersion
try:
from distutils.version import LooseVersion
except ImportError:
from looseversion import LooseVersion
from enum import Enum
from functools import wraps
from collections import namedtuple, UserDict
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ Jinja2
netaddr

pbr!=2.1.0,>=2.0.0 # Apache-2.0

looseversion;python_version >= '3.12'

0 comments on commit 1b2d4dc

Please sign in to comment.