From aaa37e4fb58b2a06675843ad54fd1cae2d0b4c05 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Wed, 21 Jul 2021 14:19:46 -0700 Subject: [PATCH 1/2] Hotfix 0.6.1 : Using a shorter version of the user agent string --- src/quantum/HISTORY.rst | 4 ++++ src/quantum/azext_quantum/__init__.py | 2 +- src/quantum/azext_quantum/_client_factory.py | 2 +- src/quantum/setup.py | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/quantum/HISTORY.rst b/src/quantum/HISTORY.rst index 4946fa5cf57..85657443ea8 100644 --- a/src/quantum/HISTORY.rst +++ b/src/quantum/HISTORY.rst @@ -3,6 +3,10 @@ Release History =============== +0.6.1 +++++++ +* [2021-07-22] Reduced the lenghth of the user agent reported by the tool. + 0.6.0 ++++++ * [2021-07-20] Version intended to work with QDK version v0.18.2106.148911 diff --git a/src/quantum/azext_quantum/__init__.py b/src/quantum/azext_quantum/__init__.py index baf1a936ddf..4476243b744 100644 --- a/src/quantum/azext_quantum/__init__.py +++ b/src/quantum/azext_quantum/__init__.py @@ -11,7 +11,7 @@ # This is the version reported by the CLI to the service when submitting requests. # This should be in sync with the extension version in 'setup.py', unless we need to # submit using a different version. -CLI_REPORTED_VERSION = "0.6.0" +CLI_REPORTED_VERSION = "0.6.1" class QuantumCommandsLoader(AzCommandsLoader): diff --git a/src/quantum/azext_quantum/_client_factory.py b/src/quantum/azext_quantum/_client_factory.py index d66877f44a0..e687dfcfdf3 100644 --- a/src/quantum/azext_quantum/_client_factory.py +++ b/src/quantum/azext_quantum/_client_factory.py @@ -33,7 +33,7 @@ def _get_data_credentials(cli_ctx, subscription_id=None): def get_appid(): - return f"azure-cli-extension/{CLI_REPORTED_VERSION}" + return f"azure-cli-ext/{CLI_REPORTED_VERSION}" # Control Plane clients diff --git a/src/quantum/setup.py b/src/quantum/setup.py index d89b9eb8e48..0aa578ccc2d 100644 --- a/src/quantum/setup.py +++ b/src/quantum/setup.py @@ -17,7 +17,7 @@ # This version should match the latest entry in HISTORY.rst # Also, when updating this, please review the version used by the extension to # submit requests, which can be found at './azext_quantum/__init__.py' -VERSION = '0.6.0' +VERSION = '0.6.1' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers From 5ae74038ca15939119ad01aacc3fcca444e94a24 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Wed, 21 Jul 2021 16:29:30 -0700 Subject: [PATCH 2/2] Using even shorter name for user agent Co-authored-by: Andres Paz --- src/quantum/azext_quantum/_client_factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quantum/azext_quantum/_client_factory.py b/src/quantum/azext_quantum/_client_factory.py index e687dfcfdf3..cdfbe9f14f9 100644 --- a/src/quantum/azext_quantum/_client_factory.py +++ b/src/quantum/azext_quantum/_client_factory.py @@ -33,7 +33,7 @@ def _get_data_credentials(cli_ctx, subscription_id=None): def get_appid(): - return f"azure-cli-ext/{CLI_REPORTED_VERSION}" + return f"az-cli-ext/{CLI_REPORTED_VERSION}" # Control Plane clients