Skip to content

Commit 3aa619e

Browse files
authored
[SchemaRegistry] drop 2.7/36 (#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

+2
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

+3-3
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

+1-4
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

+1-4
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

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

+1-1
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

-2
This file was deleted.

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

+3-6
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

-16
This file was deleted.

sdk/schemaregistry/azure-schemaregistry/CHANGELOG.md

+3-1
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

sdk/schemaregistry/azure-schemaregistry/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema identifiers rather than full schemas.
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 on 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
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

@@ -39,7 +39,7 @@ Interaction with Schema Registry starts with an instance of SchemaRegistryClient
3939
pip install azure-identity
4040
```
4141

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

4444
```Bash
4545
pip install aiohttp

sdk/schemaregistry/azure-schemaregistry/azure/schemaregistry/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
#
2525
# --------------------------------------------------------------------------
2626

27-
VERSION = "1.0.1"
27+
VERSION = "1.1.0"

sdk/schemaregistry/azure-schemaregistry/conftest.py

-17
This file was deleted.

sdk/schemaregistry/azure-schemaregistry/dev_requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
-e ../../../tools/azure-sdk-tools
33
-e ../../core/azure-core
44
-e ../../identity/azure-identity
5-
aiohttp>=3.0; python_version >= '3.5'
5+
aiohttp>=3.0

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ urlFragment: schemaregistry-samples
1212

1313
These are code samples that show common scenario operations with the Schema Registry client library.
1414
The async versions of the samples (the python sample files appended with `_async`) show asynchronous operations,
15-
and require Python 3.6 or later.
15+
and require Python 3.7 or later.
1616

1717
Several Schema Registry Python SDK samples are available to you in the SDK's GitHub repository. These samples provide example code for additional scenarios commonly encountered while working with Schema Registry:
1818

@@ -22,7 +22,7 @@ Several Schema Registry Python SDK samples are available to you in the SDK's Git
2222
* Get schema id
2323

2424
## Prerequisites
25-
- Python 2.7, 3.6 or later.
25+
- Python 3.7 or later.
2626
- **Microsoft Azure Subscription:** To use Azure services, including Azure Schema Registry, you'll need a subscription.
2727
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).
2828

sdk/schemaregistry/azure-schemaregistry/setup.cfg

-2
This file was deleted.

sdk/schemaregistry/azure-schemaregistry/setup.py

+3-8
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,18 @@
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=[
7169
'msrest>=0.6.21',
7270
'azure-core<2.0.0,>=1.20.0'
73-
],
74-
extras_require={
75-
":python_version<'3.0'": ['azure-nspkg']
76-
}
71+
]
7772
)

shared_requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ isodate>=0.6.0
129129
avro==1.10.0
130130
pyjwt>=1.7.1
131131
chardet<5,>=3.0.2
132-
backports.functools-lru-cache >= 1.6.4; python_version == "2.7"
133132
#override azure-search-documents typing-extensions>=3.7.4.3
134133
#override azure azure-keyvault~=1.0
135134
#override azure-mgmt-core azure-core<2.0.0,>=1.15.0

0 commit comments

Comments
 (0)