Skip to content

Commit 05c8dc8

Browse files
authored
[QnA][CLU] Release prep (Azure#21518)
* Added release date * Bump core version * Fix async samples * Bug in setup.py
1 parent c249012 commit 05c8dc8

9 files changed

+18
-14
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 1.0.0b1 (unreleased)
3+
## 1.0.0b1 (2021-11-03)
44

55
### Features Added
66
* Initial release

sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_analyze_conversation_app_language_parm_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async def sample_analyze_conversation_app_language_parm_async():
3030
import os
3131
from azure.core.credentials import AzureKeyCredential
3232

33-
from azure.ai.language.conversations import ConversationAnalysisClient
33+
from azure.ai.language.conversations.aio import ConversationAnalysisClient
3434
from azure.ai.language.conversations.models import ConversationAnalysisOptions
3535

3636
# get secrets
@@ -48,7 +48,7 @@ async def sample_analyze_conversation_app_language_parm_async():
4848
# analyze quey
4949
client = ConversationAnalysisClient(conv_endpoint, AzureKeyCredential(conv_key))
5050
async with client:
51-
result = client.analyze_conversations(
51+
result = await client.analyze_conversations(
5252
input,
5353
project_name=conv_project,
5454
deployment_name='production'

sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_analyze_orchestration_app_conversation_response_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async def sample_analyze_orchestration_app_conversation_response_async():
3030
import os
3131
from azure.core.credentials import AzureKeyCredential
3232

33-
from azure.ai.language.conversations import ConversationAnalysisClient
33+
from azure.ai.language.conversations.aio import ConversationAnalysisClient
3434
from azure.ai.language.conversations.models import ConversationAnalysisOptions
3535

3636
# get secrets
@@ -47,7 +47,7 @@ async def sample_analyze_orchestration_app_conversation_response_async():
4747
# analyze query
4848
client = ConversationAnalysisClient(conv_endpoint, AzureKeyCredential(conv_key))
4949
async with client:
50-
result = client.analyze_conversations(
50+
result = await client.analyze_conversations(
5151
input,
5252
project_name=orchestration_project,
5353
deployment_name='production',

sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_analyze_orchestration_app_luis_response_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async def sample_analyze_orchestration_app_luis_response_async():
3030
import os
3131
from azure.core.credentials import AzureKeyCredential
3232

33-
from azure.ai.language.conversations import ConversationAnalysisClient
33+
from azure.ai.language.conversations.aio import ConversationAnalysisClient
3434
from azure.ai.language.conversations.models import ConversationAnalysisOptions
3535

3636
# get secrets
@@ -47,7 +47,7 @@ async def sample_analyze_orchestration_app_luis_response_async():
4747
# analyze query
4848
client = ConversationAnalysisClient(conv_endpoint, AzureKeyCredential(conv_key))
4949
async with client:
50-
result = client.analyze_conversations(
50+
result = await client.analyze_conversations(
5151
input,
5252
project_name=orchestration_project,
5353
deployment_name='production',

sdk/cognitivelanguage/azure-ai-language-conversations/samples/async/sample_analyze_orchestration_app_qna_response_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async def sample_analyze_orchestration_app_qna_response_async():
3030
import os
3131
from azure.core.credentials import AzureKeyCredential
3232

33-
from azure.ai.language.conversations import ConversationAnalysisClient
33+
from azure.ai.language.conversations.aio import ConversationAnalysisClient
3434
from azure.ai.language.conversations.models import ConversationAnalysisOptions
3535

3636
# get secrets
@@ -47,7 +47,7 @@ async def sample_analyze_orchestration_app_qna_response_async():
4747
# analyze query
4848
client = ConversationAnalysisClient(conv_endpoint, AzureKeyCredential(conv_key))
4949
async with client:
50-
result = client.analyze_conversations(
50+
result = await client.analyze_conversations(
5151
input,
5252
project_name=orchestration_project,
5353
deployment_name='production',

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,15 @@
7676
packages=find_packages(exclude=[
7777
'tests',
7878
# Exclude packages that will be covered by PEP420 or nspkg
79+
# This means any folder structure that only consists of a __init__.py.
80+
# For example, for storage, this would mean adding 'azure.storage'
81+
# in addition to the default 'azure' that is seen here.
82+
'azure',
7983
'azure.ai',
8084
'azure.ai.language',
8185
]),
8286
install_requires=[
83-
"azure-core<2.0.0,>=1.19.0",
87+
"azure-core<2.0.0,>=1.19.1",
8488
"msrest>=0.6.21",
8589
'azure-common~=1.1',
8690
'six>=1.11.0',

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

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

3-
## 1.0.0 (Unreleased)
3+
## 1.0.0 (2021-11-03)
44

55
* We are now targeting service version `2021-10-01`
66

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
'azure.ai.language',
6868
]),
6969
install_requires=[
70-
'azure-core<2.0.0,>=1.19.0',
70+
'azure-core<2.0.0,>=1.19.1',
7171
'msrest>=0.6.21',
7272
],
7373
extras_require={

shared_requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ backports.functools-lru-cache >= 1.6.4; python_version == "2.7"
151151
#override azure-keyvault-secrets azure-core<2.0.0,>=1.7.0
152152
#override azure-ai-textanalytics msrest>=0.6.21
153153
#override azure-ai-textanalytics azure-core<2.0.0,>=1.19.1
154-
#override azure-ai-language-questionanswering azure-core<2.0.0,>=1.19.0
154+
#override azure-ai-language-questionanswering azure-core<2.0.0,>=1.19.1
155155
#override azure-ai-language-questionanswering msrest>=0.6.21
156156
#override azure-search-documents azure-core<2.0.0,>=1.19.0
157157
#override azure-ai-formrecognizer msrest>=0.6.21
@@ -353,7 +353,7 @@ opentelemetry-sdk<2.0.0,>=1.5.0,!=1.10a0
353353
#override azure-mgmt-azurearcdata msrest>=0.6.21
354354
#override azure-mgmt-servicelinker msrest>=0.6.21
355355
#override azure-mgmt-fluidrelay msrest>=0.6.21
356-
#override azure-ai-language-conversations azure-core<2.0.0,>=1.19.0
356+
#override azure-ai-language-conversations azure-core<2.0.0,>=1.19.1
357357
#override azure-ai-language-conversations msrest>=0.6.21
358358
#override azure-mgmt-dataprotection msrest>=0.6.21
359359
#override azure-mgmt-chaos msrest>=0.6.21

0 commit comments

Comments
 (0)