Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/bastion/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/bastion/azext_bastion/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")


Expand Down
1 change: 1 addition & 0 deletions src/bastion/azext_bastion/tests/latest/test_bastion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion src/bastion/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading