-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #888 from hloeung/looseversion
Use looseversion in place of distutils
- Loading branch information
Showing
2 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,5 @@ Jinja2 | |
netaddr | ||
|
||
pbr!=2.1.0,>=2.0.0 # Apache-2.0 | ||
|
||
looseversion;python_version >= '3.12' |