Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 4 additions & 2 deletions 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 All @@ -26,7 +26,9 @@
'License :: OSI Approved :: MIT License',
]

DEPENDENCIES = []
DEPENDENCIES = [
'packaging',
]
Comment thread
DanielMicrosoft marked this conversation as resolved.
Outdated

with open('README.md', 'r', encoding='utf-8') as f:
README = f.read()
Expand Down
Loading