diff --git a/src/bastion/HISTORY.rst b/src/bastion/HISTORY.rst index d1e19544413..874ab220257 100644 --- a/src/bastion/HISTORY.rst +++ b/src/bastion/HISTORY.rst @@ -2,6 +2,10 @@ Release History =============== +1.4.3 +++++++ +* Replace deprecated pkg_resources with packaging for Python 3.13 compatibility + 1.4.2 ++++++ * Bug fix for tunnel. diff --git a/src/bastion/azext_bastion/custom.py b/src/bastion/azext_bastion/custom.py index 82a5fd3520e..4e2618da49b 100644 --- a/src/bastion/azext_bastion/custom.py +++ b/src/bastion/azext_bastion/custom.py @@ -104,10 +104,10 @@ def pre_operations(self): def _test_extension(extension_name): from azure.cli.core.extension import (get_extension) - from pkg_resources import parse_version + from packaging.version import Version ext = get_extension(extension_name) - if parse_version(ext.version) < parse_version(SSH_EXTENSION_VERSION): + if Version(ext.version) < Version(SSH_EXTENSION_VERSION): raise ValidationError(f"SSH Extension (version >= {SSH_EXTENSION_VERSION}) must be installed") diff --git a/src/bastion/azext_bastion/tests/latest/test_bastion.py b/src/bastion/azext_bastion/tests/latest/test_bastion.py index fb0f1829118..1c70763cacd 100644 --- a/src/bastion/azext_bastion/tests/latest/test_bastion.py +++ b/src/bastion/azext_bastion/tests/latest/test_bastion.py @@ -14,6 +14,7 @@ class BastionScenario(ScenarioTest): @AllowLargeResponse(size_kb=9999) @ResourceGroupPreparer(name_prefix="cli_test_bastion_host_", location="eastus") + @live_only() def test_bastion_host_crud(self): self.kwargs.update({ "vnet_name": self.create_random_name("vnet-", 12), diff --git a/src/bastion/setup.py b/src/bastion/setup.py index 691397dc6ad..b3d69127449 100644 --- a/src/bastion/setup.py +++ b/src/bastion/setup.py @@ -10,7 +10,7 @@ # HISTORY.rst entry. -VERSION = '1.4.2' +VERSION = '1.4.3' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers