Skip to content

Commit 3aa619e

Browse files
authored
[SchemaRegistry] drop 2.7/36 (Azure#22318)
* drop 2.7/36 * version * drop 2.7/3.6
1 parent af40372 commit 3aa619e

File tree

18 files changed

+25
-73
lines changed

18 files changed

+25
-73
lines changed

sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## 1.0.0b5 (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
### Breaking Changes

sdk/schemaregistry/azure-schemaregistry-avroserializer/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Schema Registry schema identifiers and Avro-encoded data.
88

99
## _Disclaimer_
1010

11-
_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_
11+
_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_
1212

1313
## Getting started
1414

@@ -24,7 +24,7 @@ pip install azure-schemaregistry-avroserializer azure-identity
2424
To use this package, you must have:
2525
* Azure subscription - [Create a free account][azure_sub]
2626
* [Azure Schema Registry][schemaregistry_service]
27-
* Python 2.7, 3.6 or later - [Install Python][python]
27+
* Python 3.7 or later - [Install Python][python]
2828

2929
### Authenticate the client
3030
Interaction with the Schema Registry Avro Serializer starts with an instance of AvroSerializer class, which takes the schema group name and the [Schema Registry Client][schemaregistry_client] class. The client constructor takes the Event Hubs fully qualified namespace and and Azure Active Directory credential:
@@ -38,7 +38,7 @@ Interaction with the Schema Registry Avro Serializer starts with an instance of
3838
pip install azure-identity
3939
```
4040

41-
* 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/):
41+
* Additionally, to use the async API, you must first install an async transport, such as [aiohttp](https://pypi.org/project/aiohttp/):
4242

4343
```Bash
4444
pip install aiohttp

sdk/schemaregistry/azure-schemaregistry-avroserializer/azure/schemaregistry/serializer/avroserializer/_apache_avro_serializer.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
55

6-
try:
7-
from functools import lru_cache
8-
except ImportError:
9-
from backports.functools_lru_cache import lru_cache
6+
from functools import lru_cache
107
from typing import BinaryIO, Union, TypeVar
118
from io import BytesIO
129
import avro

sdk/schemaregistry/azure-schemaregistry-avroserializer/azure/schemaregistry/serializer/avroserializer/_schema_registry_avro_serializer.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@
2323
# IN THE SOFTWARE.
2424
#
2525
# --------------------------------------------------------------------------
26-
try:
27-
from functools import lru_cache
28-
except ImportError:
29-
from backports.functools_lru_cache import lru_cache
26+
from functools import lru_cache
3027
from io import BytesIO
3128
from typing import Any, Dict, Mapping
3229

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-e ../../../tools/azure-devtools
22
-e ../../../tools/azure-sdk-tools
33
-e ../../identity/azure-identity
4-
aiohttp>=3.0; python_version >= '3.5'
4+
aiohttp>=3.0

sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Several Schema Registry Avro Serializer Python SDK samples are available to you
2323
* Receive `EventData` from Event Hubs and deserialize the received bytes.
2424

2525
## Prerequisites
26-
- Python 2.7, 3.6 or later.
26+
- Python 3.7 or later.
2727
- **Microsoft Azure Subscription:** To use Azure services, including Azure Schema Registry, 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

sdk/schemaregistry/azure-schemaregistry-avroserializer/setup.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

sdk/schemaregistry/azure-schemaregistry-avroserializer/setup.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
]
4242
install_packages = [
4343
'azure-schemaregistry>=1.0.0,<2.0.0',
44-
'avro==1.10.0',
45-
'backports.functools-lru-cache >= 1.6.4; python_version == "2.7"'
44+
'avro==1.10.0'
4645
]
4746

4847
setup(
@@ -58,16 +57,14 @@
5857
classifiers=[
5958
"Development Status :: 4 - Beta",
6059
'Programming Language :: Python',
61-
'Programming Language :: Python :: 2',
62-
'Programming Language :: Python :: 2.7',
63-
'Programming Language :: Python :: 3',
64-
'Programming Language :: Python :: 3.6',
60+
'Programming Language :: Python :: 3 :: Only',
6561
'Programming Language :: Python :: 3.7',
6662
'Programming Language :: Python :: 3.8',
6763
'Programming Language :: Python :: 3.9',
6864
'Programming Language :: Python :: 3.10',
6965
'License :: OSI Approved :: MIT License',
7066
],
67+
python_requires=">=3.7",
7168
zip_safe=False,
7269
packages=find_packages(exclude=exclude_packages),
7370
install_requires=install_packages

sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/conftest.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

sdk/schemaregistry/azure-schemaregistry/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.1 (Unreleased)
3+
## 1.1.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
### Features Added
68

0 commit comments

Comments
 (0)