Skip to content

Commit af40372

Browse files
authored
[EventHub] drop python 2.7/3.6 (#22319)
* drop 2.7/3.6 * checkpointstoreblobs * bump versions
1 parent 1594062 commit af40372

File tree

20 files changed

+32
-61
lines changed

20 files changed

+32
-61
lines changed

sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.1.5 (Unreleased)
3+
## 1.2.0 (Unreleased)
4+
5+
This version and all future versions will require Python 3.7+. Python 2.7 and 3.6 are no longer supported.
46

57
### Bugs Fixed
68

sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Please note that this is an async library, for sync version of the Azure EventHu
99

1010
## _Disclaimer_
1111

12-
_Azure SDK Python packages support for Python 2.7 is ending 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
12+
_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_
1313

1414
## Getting started
1515

1616
### Prerequisites
1717

18-
- Python 3.6 or later.
18+
- Python 3.7 or later.
1919
- **Microsoft Azure Subscription:** To use Azure services, including Azure Event Hubs, you'll need a subscription. If you do not have an existing Azure account, you may sign up for a free trial or use your MSDN subscriber benefits when you [create an account](https://azure.microsoft.com/).
2020

2121
- **Event Hubs namespace with an Event Hub:** To interact with Azure Event Hubs, you'll also need to have a namespace and Event Hub available. If you are not familiar with creating Azure resources, you may wish to follow the step-by-step guide for [creating an Event Hub using the Azure portal](https://docs.microsoft.com/azure/event-hubs/event-hubs-create). There, you can also find detailed instructions for using the Azure CLI, Azure PowerShell, or Azure Resource Manager (ARM) templates to create an Event Hub.

sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/azure/eventhub/extensions/checkpointstoreblobaio/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Licensed under the MIT License.
44
# ------------------------------------
55

6-
VERSION = "1.1.4"
6+
VERSION = "1.2.0"

sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/samples/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ These sample programs show how to use the async Python client libraries for Azur
1818
| [receive_events_using_checkpoint_store_storage_api_version_async.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/samples/receive_events_using_checkpoint_store_storage_api_version_async.py) | Demonstrates how to use a specific Azure Storage Blobs API version with BlobCheckpointStore. |
1919

2020
## Prerequisites
21-
- Python2.7, Python 3.6 or later.
21+
- Python 3.7 or later.
2222
- **Microsoft Azure Subscription:** To use Azure services, including Azure Event Hubs, you'll need a subscription. If you do not have an existing Azure account, you may sign up for a free trial or use your MSDN subscriber benefits when you [create an account](https://azure.microsoft.com/).
2323

2424
- **Event Hubs namespace with an Event Hub:** To interact with Azure Event Hubs, you'll also need to have a namespace and Event Hub available. If you are not familiar with creating Azure resources, you may wish to follow the step-by-step guide for [creating an Event Hub using the Azure portal](https://docs.microsoft.com/azure/event-hubs/event-hubs-create). There, you can also find detailed instructions for using the Azure CLI, Azure PowerShell, or Azure Resource Manager (ARM) templates to create an Event Hub.

sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/setup.cfg

-2
This file was deleted.

sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/setup.py

+3-11
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@
5555
classifiers=[
5656
"Development Status :: 5 - Production/Stable",
5757
'Programming Language :: Python',
58-
'Programming Language :: Python :: 3',
59-
'Programming Language :: Python :: 3.6',
58+
'Programming Language :: Python :: 3 :: Only',
6059
'Programming Language :: Python :: 3.7',
6160
'Programming Language :: Python :: 3.8',
6261
'Programming Language :: Python :: 3.9',
@@ -65,7 +64,7 @@
6564
],
6665
zip_safe=False,
6766
packages=find_packages(exclude=exclude_packages),
68-
python_requires=">=3.6",
67+
python_requires=">=3.7",
6968
install_requires=[
7069
# dependencies for the vendored storage blob
7170
"azure-core<2.0.0,>=1.20.1",
@@ -74,12 +73,5 @@
7473
# end of dependencies for the vendored storage blob
7574
'azure-eventhub<6.0.0,>=5.0.0',
7675
'aiohttp<4.0,>=3.0',
77-
],
78-
extras_require={
79-
# dependencies for the vendored storage blob
80-
":python_version<'3.0'": ['futures'],
81-
":python_version<'3.4'": ['enum34>=1.0.4'],
82-
":python_version<'3.5'": ["typing"]
83-
# end of dependencies for the vendored storage blob
84-
},
76+
]
8577
)

sdk/eventhub/azure-eventhub-checkpointstoreblob/CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.1.5 (Unreleased)
3+
## 1.2.0 (Unreleased)
4+
5+
This version and all future versions will require Python 3.7+. Python 2.7 and 3.6 are no longer supported.
46

57
### Bugs Fixed
68

sdk/eventhub/azure-eventhub-checkpointstoreblob/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Please note that this is a sync library, for async version of the Azure EventHub
99

1010
## _Disclaimer_
1111

12-
_Azure SDK Python packages support for Python 2.7 is ending 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
12+
_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_
1313

1414
## Getting started
1515

1616
### Prerequisites
1717

18-
- Python2.7, Python 3.6 or later.
18+
- Python 3.7 or later.
1919
- **Microsoft Azure Subscription:** To use Azure services, including Azure Event Hubs, you'll need a subscription. If you do not have an existing Azure account, you may sign up for a free trial or use your MSDN subscriber benefits when you [create an account](https://azure.microsoft.com/).
2020

2121
- **Event Hubs namespace with an Event Hub:** To interact with Azure Event Hubs, you'll also need to have a namespace and Event Hub available. If you are not familiar with creating Azure resources, you may wish to follow the step-by-step guide for [creating an Event Hub using the Azure portal](https://docs.microsoft.com/azure/event-hubs/event-hubs-create). There, you can also find detailed instructions for using the Azure CLI, Azure PowerShell, or Azure Resource Manager (ARM) templates to create an Event Hub.

sdk/eventhub/azure-eventhub-checkpointstoreblob/azure/eventhub/extensions/checkpointstoreblob/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Licensed under the MIT License.
44
# ------------------------------------
55

6-
VERSION = "1.1.4"
6+
VERSION = "1.2.0"

sdk/eventhub/azure-eventhub-checkpointstoreblob/samples/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ These sample programs show how to use the sync Python client libraries for Azure
1818
| [receive_events_using_checkpoint_store_storage_api_version.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub-checkpointstoreblob/samples/receive_events_using_checkpoint_store_storage_api_version.py) | Demonstrates how to use a specific Azure Storage Blobs API version with BlobCheckpointStore. |
1919

2020
## Prerequisites
21-
- Python2.7, Python 3.6 or later.
21+
- Python 3.7 or later.
2222
- **Microsoft Azure Subscription:** To use Azure services, including Azure Event Hubs, you'll need a subscription. If you do not have an existing Azure account, you may sign up for a free trial or use your MSDN subscriber benefits when you [create an account](https://azure.microsoft.com/).
2323

2424
- **Event Hubs namespace with an Event Hub:** To interact with Azure Event Hubs, you'll also need to have a namespace and Event Hub available. If you are not familiar with creating Azure resources, you may wish to follow the step-by-step guide for [creating an Event Hub using the Azure portal](https://docs.microsoft.com/azure/event-hubs/event-hubs-create). There, you can also find detailed instructions for using the Azure CLI, Azure PowerShell, or Azure Resource Manager (ARM) templates to create an Event Hub.

sdk/eventhub/azure-eventhub-checkpointstoreblob/setup.cfg

-2
This file was deleted.

sdk/eventhub/azure-eventhub-checkpointstoreblob/setup.py

+3-12
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,14 @@
5555
classifiers=[
5656
"Development Status :: 5 - Production/Stable",
5757
'Programming Language :: Python',
58-
'Programming Language :: Python :: 2',
59-
'Programming Language :: Python :: 2.7',
60-
'Programming Language :: Python :: 3',
61-
'Programming Language :: Python :: 3.6',
58+
'Programming Language :: Python :: 3 :: Only',
6259
'Programming Language :: Python :: 3.7',
6360
'Programming Language :: Python :: 3.8',
6461
'Programming Language :: Python :: 3.9',
6562
'Programming Language :: Python :: 3.10',
6663
'License :: OSI Approved :: MIT License',
6764
],
65+
python_requires=">=3.7",
6866
zip_safe=False,
6967
packages=find_packages(exclude=exclude_packages),
7068
install_requires=[
@@ -74,12 +72,5 @@
7472
"cryptography>=2.1.4",
7573
# end of dependencies for the vendored storage blob
7674
'azure-eventhub<6.0.0,>=5.0.0',
77-
],
78-
extras_require={
79-
# dependencies for the vendored storage blob
80-
":python_version<'3.0'": ['futures'],
81-
":python_version<'3.4'": ['enum34>=1.0.4'],
82-
":python_version<'3.5'": ["typing"]
83-
# end of dependencies for the vendored storage blob
84-
},
75+
]
8576
)

sdk/eventhub/azure-eventhub/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## 5.7.0 (Unreleased)
44

5+
This version and all future versions will require Python 3.7+. Python 2.7 and 3.6 are no longer supported.
6+
57
### Features Added
68

79
- Added support for fixed (linear) retry backoff:

sdk/eventhub/azure-eventhub/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ The Azure Event Hubs client library allows for publishing and consuming of Azure
1717

1818
## _Disclaimer_
1919

20-
_Azure SDK Python packages support for Python 2.7 is ending 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
20+
_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_
2121

2222
## Getting started
2323

2424
### Prerequisites
2525

26-
- Python 2.7, 3.6 or later.
26+
- Python 3.7 or later.
2727
- **Microsoft Azure Subscription:** To use Azure services, including Azure Event Hubs, you'll need a subscription.
2828
If you do not have an existing Azure account, you may sign up for a free trial or use your MSDN subscriber benefits when you [create an account](https://account.windowsazure.com/Home/Index).
2929

@@ -63,7 +63,7 @@ protocol. There are implementations of the `TokenCredential` protocol available
6363
[azure-identity package](https://pypi.org/project/azure-identity/). The host name is of the format `<yournamespace.servicebus.windows.net>`.
6464
- To use the credential types provided by `azure-identity`, please install the package:
6565
```pip install azure-identity```
66-
- Additionally, to use the async API supported on Python 3.6+, you must first install an async transport, such as [`aiohttp`](https://pypi.org/project/aiohttp/):
66+
- Additionally, to use the async API, you must first install an async transport, such as [`aiohttp`](https://pypi.org/project/aiohttp/):
6767
```pip install aiohttp```
6868
- When using Azure Active Directory, your principal must be assigned a role which allows access to Event Hubs, such as the
6969
Azure Event Hubs Data Owner role. For more information about using Azure Active Directory authorization with Event Hubs,

sdk/eventhub/azure-eventhub/conftest.py

-6
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@
2121

2222
from devtools_testutils import get_region_override
2323

24-
# Ignore async tests for Python < 3.5
2524
collect_ignore = []
26-
if sys.version_info < (3, 5):
27-
collect_ignore.append("tests/livetest/asynctests")
28-
collect_ignore.append("tests/unittest/asynctests")
29-
collect_ignore.append("features")
30-
collect_ignore.append("samples/async_samples")
3125
PARTITION_COUNT = 2
3226
CONN_STR = "Endpoint=sb://{}/;SharedAccessKeyName={};SharedAccessKey={};EntityPath={}"
3327
RES_GROUP_PREFIX = "eh-res-group"

sdk/eventhub/azure-eventhub/dev_requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
-e ../../identity/azure-identity
44
-e ../azure-mgmt-eventhub
55
-e ../../resources/azure-mgmt-resource
6-
aiohttp>=3.0; python_version >= '3.5'
6+
aiohttp>=3.0
77
-e ../../../tools/azure-devtools
88
-e ../../servicebus/azure-servicebus

sdk/eventhub/azure-eventhub/samples/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ urlFragment: eventhub-samples
1111
# Azure Event Hubs client library for Python Samples
1212

1313
These are code samples that show common scenario operations with the Azure Event Hubs client library.
14-
Both [sync version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples) and [async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples) of samples are provided, async samples require Python 3.6 or later.
14+
Both [sync version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples) and [async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples) of samples are provided, async samples require Python 3.7 or later.
1515

1616
- [client_creation.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/client_creation.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/client_creation_async.py)) - Examples to create EventHubProducerClient and EventHubConsumerClient:
1717
- From a connection string
@@ -81,7 +81,7 @@ Both [sync version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/
8181
- Receive messages and parse the body according to the body type.
8282

8383
## Prerequisites
84-
- Python 2.7, 3.6 or later.
84+
- Python 3.7 or later.
8585
- **Microsoft Azure Subscription:** To use Azure services, including Azure Event Hubs, you'll need a subscription.
8686
If you do not have an existing Azure account, you may sign up for a free trial or use your MSDN subscriber benefits when you [create an account](https://account.windowsazure.com/Home/Index).
8787

Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
azure-eventhub-checkpointstoreblob
2-
azure-eventhub-checkpointstoreblob-aio; python_version >= '3.6'
2+
azure-eventhub-checkpointstoreblob-aio

sdk/eventhub/azure-eventhub/setup.cfg

-2
This file was deleted.

sdk/eventhub/azure-eventhub/setup.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -57,24 +57,18 @@
5757
classifiers=[
5858
"Development Status :: 5 - Production/Stable",
5959
'Programming Language :: Python',
60-
'Programming Language :: Python :: 2',
61-
'Programming Language :: Python :: 2.7',
62-
'Programming Language :: Python :: 3',
63-
'Programming Language :: Python :: 3.6',
60+
'Programming Language :: Python :: 3 :: Only',
6461
'Programming Language :: Python :: 3.7',
6562
'Programming Language :: Python :: 3.8',
6663
'Programming Language :: Python :: 3.9',
6764
'Programming Language :: Python :: 3.10',
6865
'License :: OSI Approved :: MIT License',
6966
],
67+
python_requires=">=3.7",
7068
zip_safe=False,
7169
packages=find_packages(exclude=exclude_packages),
7270
install_requires=[
7371
"azure-core<2.0.0,>=1.14.0",
7472
"uamqp>=1.4.3,<2.0.0",
75-
],
76-
extras_require={
77-
":python_version<'3.0'": ['azure-nspkg'],
78-
":python_version<'3.5'": ["typing"],
79-
}
73+
]
8074
)

0 commit comments

Comments
 (0)