From 276379ad0f4214cb29cc3521187fc1e7e605ce8b Mon Sep 17 00:00:00 2001 From: Jing-song Date: Mon, 4 Nov 2024 16:44:26 +0800 Subject: [PATCH 1/2] remove msrest --- src/image-copy/HISTORY.rst | 5 +++++ src/image-copy/azext_imagecopy/cli_utils.py | 2 +- src/image-copy/setup.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/image-copy/HISTORY.rst b/src/image-copy/HISTORY.rst index 8bc67753df3..ef056231d5d 100644 --- a/src/image-copy/HISTORY.rst +++ b/src/image-copy/HISTORY.rst @@ -2,6 +2,11 @@ Release History =============== + +1.0.0 +++++++ +* Remove direct call to `msrestazure` + 0.2.13 ++++++ * [BREAKING CHANGE] Deprecated non-compliant parameter name '--temporary_resource_group_name'. diff --git a/src/image-copy/azext_imagecopy/cli_utils.py b/src/image-copy/azext_imagecopy/cli_utils.py index 1d9e2d23284..3109dc15a37 100644 --- a/src/image-copy/azext_imagecopy/cli_utils.py +++ b/src/image-copy/azext_imagecopy/cli_utils.py @@ -80,7 +80,7 @@ def prepare_cli_command(cmd, output_as_json=True, tags=None, subscription=None, def get_storage_account_id_from_blob_path(blob_path, resource_group, subscription_id): - from msrestazure.tools import resource_id + from azure.mgmt.core.tools import resource_id logger.debug('Getting storage account id for blob: %s', blob_path) diff --git a/src/image-copy/setup.py b/src/image-copy/setup.py index 8ae4cdc369c..a6ab508d45d 100644 --- a/src/image-copy/setup.py +++ b/src/image-copy/setup.py @@ -8,7 +8,7 @@ from codecs import open from setuptools import setup, find_packages -VERSION = "0.2.13" +VERSION = "1.0.0" CLASSIFIERS = [ 'Development Status :: 4 - Beta', From bc4fe1e2394d246c8951ceae07f97efdcbe66078 Mon Sep 17 00:00:00 2001 From: Jing-song Date: Tue, 5 Nov 2024 15:52:39 +0800 Subject: [PATCH 2/2] update --- src/image-copy/azext_imagecopy/azext_metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image-copy/azext_imagecopy/azext_metadata.json b/src/image-copy/azext_imagecopy/azext_metadata.json index bbe67260f34..044fb106bfe 100644 --- a/src/image-copy/azext_imagecopy/azext_metadata.json +++ b/src/image-copy/azext_imagecopy/azext_metadata.json @@ -1,3 +1,3 @@ { - "azext.minCliCoreVersion": "2.0.24" + "azext.minCliCoreVersion": "2.66.0" } \ No newline at end of file