Skip to content

Commit f0a24c4

Browse files
authored
[CognitiveLanguage] Drop 2.7 support (Azure#23983)
* Drop 2.7 support * Fixed docs url * Update changelog format * More changelog details * Updated classifiers
1 parent ba06836 commit f0a24c4

File tree

15 files changed

+49
-98
lines changed

15 files changed

+49
-98
lines changed

sdk/cognitivelanguage/azure-ai-language-conversations/CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
# Release History
22

3-
## 1.0.0b3 (2022-04-12)
3+
## 1.0.0b3 (2022-04-14)
44

55
### Features Added
66
* Entity resolutions
77
* Extra features
88

99
### Breaking Changes
10-
Input and output structures are different from previous release.
10+
* The `ConversationAnalysisOptions` model used as input to the `analyze_conversation` operation is now wrapped in a `CustomConversationalTask` which combines the analysis options with the project parameters into a single model.
11+
* The `query` within the `ConversationAnalysisOptions` is now further qualified as a `TextConversationItem` with additional properties.
12+
* The output `AnalyzeConversationResult` is now wrapped in a `CustomConversationalTaskResult` according to the input model.
13+
14+
### Other Changes
15+
* Python 2.7 is no longer supported. Please use Python version 3.6 or later.
1116

1217
## 1.0.0b1 (2021-11-03)
1318

sdk/cognitivelanguage/azure-ai-language-conversations/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ You can also use the "orchestration" project which orchestrates multiple languag
1010

1111
## _Disclaimer_
1212

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

1515

1616
## Getting started
1717

1818
### Prerequisites
1919

20-
* Python 2.7, or 3.6 or later is required to use this package.
20+
* Python 3.6 or later is required to use this package.
2121
* An [Azure subscription][azure_subscription]
2222
* An existing Text Analytics resource
2323

@@ -283,6 +283,6 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con
283283
[conversationallanguage_refdocs]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cognitivelanguage/azure-ai-language-conversations
284284
[conversationallanguage_docs]: https://docs.microsoft.com/azure/cognitive-services/language-service/conversational-language-understanding/overview
285285
[conversationallanguage_samples]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cognitivelanguage/azure-ai-language-conversations/samples/README.md
286-
[conversationanalysis_client_class]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cognitivelanguage/azure-ai-language-conversations/azure/ai/language/conversations/_conversation_analysis_client.py
286+
[conversationanalysis_client_class]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-ai-language-conversations/latest/azure.ai.language.conversations.html#azure.ai.language.conversations.ConversationAnalysisClient
287287
[azure_core_exceptions]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md
288288
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fsdk%2Ftemplate%2Fazure-template%2FREADME.png)

sdk/cognitivelanguage/azure-ai-language-conversations/dev_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
-e ../../../tools/azure-devtools
33
../../core/azure-core
44
-e ../../cognitiveservices/azure-mgmt-cognitiveservices
5-
aiohttp>=3.0; python_version >= '3.5'
5+
aiohttp>=3.0

sdk/cognitivelanguage/azure-ai-language-conversations/samples/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ urlFragment: conversationslanguageunderstanding-samples
1212
# Samples for Azure Conversational Language Understanding client library for Python
1313

1414
These code samples show common scenario operations with the Azure Conversational Language Understanding client library.
15-
The async versions of the samples require Python 3.6 or later.
1615

1716
You can authenticate your client with a Conversational Language Understanding API key:
1817

@@ -29,7 +28,7 @@ These sample programs show common scenarios for the Conversational Language Unde
2928

3029
## Prerequisites
3130

32-
- Python 2.7, or 3.6 or later is required to use this package (3.6 or later if using asyncio)
31+
- Python 3.6 or later is required to use this package.
3332
- You must have an [Azure subscription][azure_subscription] and an
3433
[Azure CLU account][azure_clu_account] to run these samples.
3534

sdk/cognitivelanguage/azure-ai-language-conversations/setup.cfg

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

sdk/cognitivelanguage/azure-ai-language-conversations/setup.py

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,6 @@
2020
# a-b-c => a.b.c
2121
namespace_name = PACKAGE_NAME.replace('-', '.')
2222

23-
# azure v0.x is not compatible with this package
24-
# azure v0.x used to have a __version__ attribute (newer versions don't)
25-
try:
26-
import azure
27-
try:
28-
ver = azure.__version__
29-
raise Exception(
30-
'This package is incompatible with azure=={}. '.format(ver) +
31-
'Uninstall it with "pip uninstall azure".'
32-
)
33-
except AttributeError:
34-
pass
35-
except ImportError:
36-
pass
3723

3824
# Version extraction inspired from 'requests'
3925
with open(os.path.join(package_folder_path, '_version.py'), 'r') as fd:
@@ -61,17 +47,17 @@
6147
url='https://github.com/Azure/azure-sdk-for-python',
6248
classifiers=[
6349
"Development Status :: 4 - Beta",
64-
'Programming Language :: Python',
65-
'Programming Language :: Python :: 2',
66-
'Programming Language :: Python :: 2.7',
67-
'Programming Language :: Python :: 3',
68-
'Programming Language :: Python :: 3.6',
69-
'Programming Language :: Python :: 3.7',
70-
'Programming Language :: Python :: 3.8',
71-
'Programming Language :: Python :: 3.9',
72-
'Programming Language :: Python :: 3.10',
73-
'License :: OSI Approved :: MIT License',
50+
"Programming Language :: Python",
51+
"Programming Language :: Python :: 3 :: Only",
52+
"Programming Language :: Python :: 3",
53+
"Programming Language :: Python :: 3.6",
54+
"Programming Language :: Python :: 3.7",
55+
"Programming Language :: Python :: 3.8",
56+
"Programming Language :: Python :: 3.9",
57+
"Programming Language :: Python :: 3.10",
58+
"License :: OSI Approved :: MIT License",
7459
],
60+
python_requires=">=3.6",
7561
zip_safe=False,
7662
packages=find_packages(exclude=[
7763
'tests',
@@ -89,10 +75,6 @@
8975
'azure-common~=1.1',
9076
'six>=1.11.0',
9177
],
92-
extras_require={
93-
":python_version<'3.0'": ['azure-ai-language-nspkg'],
94-
":python_version<'3.5'": ['typing'],
95-
},
9678
project_urls={
9779
'Bug Reports': 'https://github.com/Azure/azure-sdk-for-python/issues',
9880
'Source': 'https://github.com/Azure/azure-sdk-python',

sdk/cognitivelanguage/azure-ai-language-conversations/tests/conftest.py

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

sdk/cognitivelanguage/azure-ai-language-questionanswering/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Release History
22

3+
## 1.1.0b2 (Unreleased)
4+
5+
### Features Added
6+
7+
### Breaking Changes
8+
9+
### Bugs Fixed
10+
11+
### Other Changes
12+
* Python 2.7 is no longer supported. Please use Python version 3.6 or later.
13+
314
## 1.1.0b1 (2022-02-08)
415

516
### Features Added

sdk/cognitivelanguage/azure-ai-language-questionanswering/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ Question Answering is a cloud-based API service that lets you create a conversat
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 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

1515
### Prerequisites
1616

17-
- Python 2.7, or 3.6 or later is required to use this package.
17+
- Python 3.6 or later is required to use this package.
1818
- An [Azure subscription][azure_subscription]
1919
- An existing Question Answering resource
2020

sdk/cognitivelanguage/azure-ai-language-questionanswering/azure/ai/language/questionanswering/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.1.0b1"
9+
VERSION = "1.1.0b2"

0 commit comments

Comments
 (0)