diff --git a/python/mach/mach/logging.py b/python/mach/mach/logging.py index cb17f8665a6f..ba43ee53dc89 100644 --- a/python/mach/mach/logging.py +++ b/python/mach/mach/logging.py @@ -17,8 +17,8 @@ import time import blessed import six -from looseversion import LooseVersion as Version from mozbuild.util import mozilla_build_version +from packaging.version import Version IS_WINDOWS = sys.platform.startswith("win") diff --git a/python/mozboot/mozboot/mozillabuild.py b/python/mozboot/mozboot/mozillabuild.py index 6ba1e8e4f651..dd7ac64cc6bd 100644 --- a/python/mozboot/mozboot/mozillabuild.py +++ b/python/mozboot/mozboot/mozillabuild.py @@ -11,9 +11,9 @@ import subprocess import sys from pathlib import Path -from looseversion import LooseVersion as Version from mozboot.base import BaseBootstrapper from mozbuild.util import mozilla_build_version +from packaging.version import Version def is_aarch64_host(): diff --git a/python/mozbuild/mozbuild/util.py b/python/mozbuild/mozbuild/util.py index 8bd977a8c9ba..d7172b16792b 100644 --- a/python/mozbuild/mozbuild/util.py +++ b/python/mozbuild/mozbuild/util.py @@ -29,7 +29,7 @@ from io import BytesIO, StringIO from pathlib import Path import six -from looseversion import LooseVersion as Version +from packaging.version import Version MOZBUILD_METRICS_PATH = os.path.abspath( os.path.join(__file__, "..", "..", "metrics.yaml")