From a46afe52b5b280dacaf855867878954672a3881c Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Wed, 21 Jul 2021 17:42:29 -0700 Subject: [PATCH] remove support for python 3.5 --- sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md | 2 ++ sdk/textanalytics/azure-ai-textanalytics/README.md | 4 ++-- sdk/textanalytics/azure-ai-textanalytics/dev_requirements.txt | 2 +- sdk/textanalytics/azure-ai-textanalytics/samples/README.md | 4 ++-- sdk/textanalytics/azure-ai-textanalytics/setup.py | 3 +-- sdk/textanalytics/azure-ai-textanalytics/tests/conftest.py | 4 ++-- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md b/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md index 4f7569ec7277..20e8b3e79bbf 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md +++ b/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md @@ -10,6 +10,8 @@ ### Other Changes +- Python 3.5 is no longer supported. + ## 5.1.0 (2021-07-07) This version of the SDK defaults to the latest supported API version, which currently is `v3.1`. diff --git a/sdk/textanalytics/azure-ai-textanalytics/README.md b/sdk/textanalytics/azure-ai-textanalytics/README.md index d70c0f54160e..357748d53fe1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/README.md +++ b/sdk/textanalytics/azure-ai-textanalytics/README.md @@ -17,7 +17,7 @@ Text Analytics is a cloud-based service that provides advanced natural language ### Prerequisites -- Python 2.7, or 3.5 or later is required to use this package. +- Python 2.7, or 3.6 or later is required to use this package. - You must have an [Azure subscription][azure_subscription] and a [Cognitive Services or Text Analytics resource][ta_or_cs_resource] to use this package. @@ -622,7 +622,7 @@ result = text_analytics_client.analyze_sentiment(documents, logging_enable=True) These code samples show common scenario operations with the Azure Text Analytics client library. The async versions of the samples (the python sample files appended with `_async`) show asynchronous operations -with Text Analytics and require Python 3.5 or later. +with Text Analytics and require Python 3.6 or later. Authenticate the client with a Cognitive Services/Text Analytics API key or a token credential from [azure-identity][azure_identity]: diff --git a/sdk/textanalytics/azure-ai-textanalytics/dev_requirements.txt b/sdk/textanalytics/azure-ai-textanalytics/dev_requirements.txt index 2e614298d253..14c22d011727 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/dev_requirements.txt +++ b/sdk/textanalytics/azure-ai-textanalytics/dev_requirements.txt @@ -2,4 +2,4 @@ -e ../../../tools/azure-devtools ../../core/azure-core -e ../../identity/azure-identity -aiohttp>=3.0; python_version >= '3.5' +aiohttp>=3.0; python_version >= '3.6' diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/README.md b/sdk/textanalytics/azure-ai-textanalytics/samples/README.md index 161ecef42a5d..032badd4cc71 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/README.md +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/README.md @@ -12,7 +12,7 @@ urlFragment: textanalytics-samples # Samples for Azure Text Analytics client library for Python These code samples show common scenario operations with the Azure Text Analytics client library. -The async versions of the samples require Python 3.5 or later. +The async versions of the samples require Python 3.6 or later. You can authenticate your client with a Cognitive Services/Text Analytics API key or through Azure Active Directory with a token credential from [azure-identity][azure_identity]: * See [sample_authentication.py][sample_authentication] and [sample_authentication_async.py][sample_authentication_async] for how to authenticate in the above cases. @@ -32,7 +32,7 @@ These sample programs show common scenarios for the Text Analytics client's offe |[sample_analyze_actions.py][analyze_sample] and [sample_analyze_actions_async.py][analyze_sample_async]|Run multiple analyses together in a single request| ## Prerequisites -* Python 2.7, or 3.5 or later is required to use this package (3.5 or later if using asyncio) +* Python 2.7, or 3.6 or later is required to use this package (3.6 or later if using asyncio) * You must have an [Azure subscription][azure_subscription] and an [Azure Text Analytics account][azure_text_analytics_account] to run these samples. diff --git a/sdk/textanalytics/azure-ai-textanalytics/setup.py b/sdk/textanalytics/azure-ai-textanalytics/setup.py index c51ed43678ad..0e99e4b17a6e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/setup.py +++ b/sdk/textanalytics/azure-ai-textanalytics/setup.py @@ -60,12 +60,11 @@ author_email='azpysdkhelp@microsoft.com', url='https://github.com/Azure/azure-sdk-for-python', classifiers=[ - "Development Status :: 5 - Production/Stable", + "Development Status :: 4 - Beta", 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/conftest.py b/sdk/textanalytics/azure-ai-textanalytics/tests/conftest.py index 479956d2d7bf..1dbbd9b3a5ed 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/conftest.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/conftest.py @@ -8,7 +8,7 @@ import sys -# Ignore async tests for Python < 3.5 +# Ignore async tests for Python < 3.6 collect_ignore_glob = [] -if sys.version_info < (3, 5): +if sys.version_info < (3, 6): collect_ignore_glob.append("*_async.py")