Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SchemaRegistry] drop 2.7/36 #22318

Merged
merged 3 commits into from
Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## 1.0.0b5 (Unreleased)
swathipil marked this conversation as resolved.
Show resolved Hide resolved

This version and all future versions will require Python 3.7+. Python 2.7 and 3.6 are no longer supported.

### Features Added

### Breaking Changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Schema Registry schema identifiers and Avro-encoded data.

## _Disclaimer_

_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_
_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_

## Getting started

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

### Authenticate the client
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:
Expand All @@ -38,7 +38,7 @@ Interaction with the Schema Registry Avro Serializer starts with an instance of
pip install azure-identity
```

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

```Bash
pip install aiohttp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

try:
from functools import lru_cache
except ImportError:
from backports.functools_lru_cache import lru_cache
from functools import lru_cache
from typing import BinaryIO, Union, TypeVar
from io import BytesIO
import avro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@
# IN THE SOFTWARE.
#
# --------------------------------------------------------------------------
try:
from functools import lru_cache
except ImportError:
from backports.functools_lru_cache import lru_cache
from functools import lru_cache
from io import BytesIO
from typing import Any, Dict, Mapping

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-e ../../../tools/azure-devtools
-e ../../../tools/azure-sdk-tools
-e ../../identity/azure-identity
aiohttp>=3.0; python_version >= '3.5'
aiohttp>=3.0
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Several Schema Registry Avro Serializer Python SDK samples are available to you
* Receive `EventData` from Event Hubs and deserialize the received bytes.

## Prerequisites
- Python 2.7, 3.6 or later.
- Python 3.7 or later.
- **Microsoft Azure Subscription:** To use Azure services, including Azure Schema Registry, 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://account.windowsazure.com/Home/Index).

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
]
install_packages = [
'azure-schemaregistry>=1.0.0,<2.0.0',
'avro==1.10.0',
'backports.functools-lru-cache >= 1.6.4; python_version == "2.7"'
'avro==1.10.0'
]

setup(
Expand All @@ -58,16 +57,14 @@
classifiers=[
"Development Status :: 4 - Beta",
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'License :: OSI Approved :: MIT License',
],
python_requires=">=3.7",
zip_safe=False,
packages=find_packages(exclude=exclude_packages),
install_requires=install_packages
Expand Down

This file was deleted.

4 changes: 3 additions & 1 deletion sdk/schemaregistry/azure-schemaregistry/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.1 (Unreleased)
## 1.1.0 (Unreleased)

This version and all future versions will require Python 3.7+. Python 2.7 and 3.6 are no longer supported.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the only change for the release? If so, there's no need to release.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good, just will update the version and leave this note for now. Not planning on releasing


### Features Added

Expand Down
6 changes: 3 additions & 3 deletions sdk/schemaregistry/azure-schemaregistry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ schema identifiers rather than full schemas.

## _Disclaimer_

_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_
_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_

## Getting started

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

### Authenticate the client

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

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

```Bash
pip install aiohttp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
#
# --------------------------------------------------------------------------

VERSION = "1.0.1"
VERSION = "1.1.0"
17 changes: 0 additions & 17 deletions sdk/schemaregistry/azure-schemaregistry/conftest.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
-e ../../../tools/azure-sdk-tools
-e ../../core/azure-core
-e ../../identity/azure-identity
aiohttp>=3.0; python_version >= '3.5'
aiohttp>=3.0
4 changes: 2 additions & 2 deletions sdk/schemaregistry/azure-schemaregistry/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ urlFragment: schemaregistry-samples

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

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:

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

## Prerequisites
- Python 2.7, 3.6 or later.
- Python 3.7 or later.
- **Microsoft Azure Subscription:** To use Azure services, including Azure Schema Registry, 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://account.windowsazure.com/Home/Index).

Expand Down
2 changes: 0 additions & 2 deletions sdk/schemaregistry/azure-schemaregistry/setup.cfg

This file was deleted.

11 changes: 3 additions & 8 deletions sdk/schemaregistry/azure-schemaregistry/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,18 @@
classifiers=[
"Development Status :: 5 - Production/Stable",
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'License :: OSI Approved :: MIT License',
],
python_requires=">=3.7",
zip_safe=False,
packages=find_packages(exclude=exclude_packages),
install_requires=[
'msrest>=0.6.21',
'azure-core<2.0.0,>=1.20.0'
],
extras_require={
":python_version<'3.0'": ['azure-nspkg']
}
]
)
1 change: 0 additions & 1 deletion shared_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ isodate>=0.6.0
avro==1.10.0
pyjwt>=1.7.1
chardet<5,>=3.0.2
backports.functools-lru-cache >= 1.6.4; python_version == "2.7"
#override azure-search-documents typing-extensions>=3.7.4.3
#override azure azure-keyvault~=1.0
#override azure-mgmt-core azure-core<2.0.0,>=1.15.0
Expand Down