From 6bd884e2f0c866e0b3a0d1cea28bc6122da44f10 Mon Sep 17 00:00:00 2001 From: JJHWAN Date: Thu, 18 Aug 2022 23:05:53 +0900 Subject: [PATCH] [ServiceBus] Update Python 3.6 to 3.7 Changes with the Review was applied --- sdk/servicebus/azure-mgmt-servicebus/README.md | 1 - sdk/servicebus/azure-mgmt-servicebus/setup.py | 3 ++- sdk/servicebus/azure-servicebus/CHANGELOG.md | 2 ++ sdk/servicebus/azure-servicebus/README.md | 3 +-- .../azure-servicebus/stress/scripts/dev_requirements.txt | 2 +- .../swagger/generate_attributes_sequence_tuple.py | 4 ++-- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/sdk/servicebus/azure-mgmt-servicebus/README.md b/sdk/servicebus/azure-mgmt-servicebus/README.md index ad65c5057c5b..ae52bca54de0 100644 --- a/sdk/servicebus/azure-mgmt-servicebus/README.md +++ b/sdk/servicebus/azure-mgmt-servicebus/README.md @@ -7,7 +7,6 @@ For a more complete view of Azure libraries, see the [azure sdk python release]( ## _Disclaimer_ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_ -_Python 3.7 or later is required to use this package. For more details, please refer to [Azure SDK for Python version support policy](https://github.com/Azure/azure-sdk-for-python/wiki/Azure-SDKs-Python-version-support-policy)._ # Usage diff --git a/sdk/servicebus/azure-mgmt-servicebus/setup.py b/sdk/servicebus/azure-mgmt-servicebus/setup.py index 32ad046d1956..6788d54404f9 100644 --- a/sdk/servicebus/azure-mgmt-servicebus/setup.py +++ b/sdk/servicebus/azure-mgmt-servicebus/setup.py @@ -51,6 +51,7 @@ 'Programming Language :: Python', 'Programming Language :: Python :: 3 :: Only', 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', @@ -69,5 +70,5 @@ 'azure-common~=1.1', 'azure-mgmt-core>=1.3.0,<2.0.0', ], - python_requires=">=3.7" + python_requires=">=3.6" ) diff --git a/sdk/servicebus/azure-servicebus/CHANGELOG.md b/sdk/servicebus/azure-servicebus/CHANGELOG.md index c2b6abbce751..9efdae042d08 100644 --- a/sdk/servicebus/azure-servicebus/CHANGELOG.md +++ b/sdk/servicebus/azure-servicebus/CHANGELOG.md @@ -2,6 +2,8 @@ ## 7.8.1 (Unreleased) +This version and all future versions will require Python 3.7+. Python 3.6 is no longer supported. + ### Features Added ### Breaking Changes diff --git a/sdk/servicebus/azure-servicebus/README.md b/sdk/servicebus/azure-servicebus/README.md index b297dc5629bd..9451fca0ef2f 100644 --- a/sdk/servicebus/azure-servicebus/README.md +++ b/sdk/servicebus/azure-servicebus/README.md @@ -19,7 +19,6 @@ of this package please look at our [migration guide to move from Service Bus V0. ## _Disclaimer_ _Azure SDK Python packages support for Python 2.7 ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_ -_Python 3.7 or later is required to use this package. For more details, please refer to [Azure SDK for Python version support policy](https://github.com/Azure/azure-sdk-for-python/wiki/Azure-SDKs-Python-version-support-policy)._ ## Getting started @@ -35,7 +34,7 @@ pip install azure-servicebus To use this package, you must have: * Azure subscription - [Create a free account][azure_sub] * Azure Service Bus - [Namespace and management credentials][service_bus_namespace] -* Python 3.6 or later - [Install Python][python] +* Python 3.7 or later - [Install Python][python] If you need an Azure service bus namespace, you can create it via the [Azure Portal][azure_namespace_creation]. diff --git a/sdk/servicebus/azure-servicebus/stress/scripts/dev_requirements.txt b/sdk/servicebus/azure-servicebus/stress/scripts/dev_requirements.txt index 17dd165b2ee1..d7928a902bf4 100644 --- a/sdk/servicebus/azure-servicebus/stress/scripts/dev_requirements.txt +++ b/sdk/servicebus/azure-servicebus/stress/scripts/dev_requirements.txt @@ -1,4 +1,4 @@ -aiohttp>=3.0; python_version >= '3.7' +aiohttp>=3.0; python_version >= '3.5' opencensus-ext-azure psutil pytest diff --git a/sdk/servicebus/azure-servicebus/swagger/generate_attributes_sequence_tuple.py b/sdk/servicebus/azure-servicebus/swagger/generate_attributes_sequence_tuple.py index 0132a8aebfb8..a5a385366bd6 100644 --- a/sdk/servicebus/azure-servicebus/swagger/generate_attributes_sequence_tuple.py +++ b/sdk/servicebus/azure-servicebus/swagger/generate_attributes_sequence_tuple.py @@ -4,10 +4,10 @@ # -------------------------------------------------------------------------------------------- -# This is a tool, not a part of the SDK code. Run it with Python 3.7+. +# This is a tool, not a part of the SDK code. Run it with Python 3.6+. # # It iterates the _attribute_map of model classes and print the attributes of each class into a tuple. -# `dict` in Python 3.7+ guarantees order when iterating over the dict so the attributes tuple +# `dict` in Python 3.6+ guarantees order when iterating over the dict so the attributes tuple # has the correct order of model class attributes. # Copy the output to file azure.servicebus.management._model_workaround.py, which will convert # _attribute_map of each model class from dict to OrderedDict.