Skip to content

Commit

Permalink
[ServiceBus] Update Python 3.6 to 3.7
Browse files Browse the repository at this point in the history
Changes with the Review was applied
  • Loading branch information
JJHWAN committed Aug 20, 2022
1 parent fd0c648 commit a8e57ee
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion sdk/servicebus/azure-mgmt-servicebus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion sdk/servicebus/azure-mgmt-servicebus/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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"
)
4 changes: 3 additions & 1 deletion sdk/servicebus/azure-servicebus/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -194,7 +196,7 @@ This version and all future versions will require Python 2.7 or Python 3.6+, Pyt

## 7.1.0 (2021-03-09)

This version will be the last version to officially support Python 3.5, future versions will require Python 2.7 or Python 3.6+.
This version will be the last version to officially support Python 3.5, future versions will require Python 2.7 or Python 3.7+.

**New Features**

Expand Down
3 changes: 1 addition & 2 deletions sdk/servicebus/azure-servicebus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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].
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
aiohttp>=3.0; python_version >= '3.7'
aiohttp>=3.0; python_version >= '3.5'
opencensus-ext-azure
psutil
pytest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a8e57ee

Please sign in to comment.