Skip to content

Commit

Permalink
[QnA][CLU] Release prep (#21518)
Browse files Browse the repository at this point in the history
* Added release date

* Bump core version

* Fix async samples

* Bug in setup.py
  • Loading branch information
annatisch authored Nov 2, 2021
1 parent c249012 commit 05c8dc8
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Release History

## 1.0.0b1 (unreleased)
## 1.0.0b1 (2021-11-03)

### Features Added
* Initial release
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def sample_analyze_conversation_app_language_parm_async():
import os
from azure.core.credentials import AzureKeyCredential

from azure.ai.language.conversations import ConversationAnalysisClient
from azure.ai.language.conversations.aio import ConversationAnalysisClient
from azure.ai.language.conversations.models import ConversationAnalysisOptions

# get secrets
Expand All @@ -48,7 +48,7 @@ async def sample_analyze_conversation_app_language_parm_async():
# analyze quey
client = ConversationAnalysisClient(conv_endpoint, AzureKeyCredential(conv_key))
async with client:
result = client.analyze_conversations(
result = await client.analyze_conversations(
input,
project_name=conv_project,
deployment_name='production'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def sample_analyze_orchestration_app_conversation_response_async():
import os
from azure.core.credentials import AzureKeyCredential

from azure.ai.language.conversations import ConversationAnalysisClient
from azure.ai.language.conversations.aio import ConversationAnalysisClient
from azure.ai.language.conversations.models import ConversationAnalysisOptions

# get secrets
Expand All @@ -47,7 +47,7 @@ async def sample_analyze_orchestration_app_conversation_response_async():
# analyze query
client = ConversationAnalysisClient(conv_endpoint, AzureKeyCredential(conv_key))
async with client:
result = client.analyze_conversations(
result = await client.analyze_conversations(
input,
project_name=orchestration_project,
deployment_name='production',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def sample_analyze_orchestration_app_luis_response_async():
import os
from azure.core.credentials import AzureKeyCredential

from azure.ai.language.conversations import ConversationAnalysisClient
from azure.ai.language.conversations.aio import ConversationAnalysisClient
from azure.ai.language.conversations.models import ConversationAnalysisOptions

# get secrets
Expand All @@ -47,7 +47,7 @@ async def sample_analyze_orchestration_app_luis_response_async():
# analyze query
client = ConversationAnalysisClient(conv_endpoint, AzureKeyCredential(conv_key))
async with client:
result = client.analyze_conversations(
result = await client.analyze_conversations(
input,
project_name=orchestration_project,
deployment_name='production',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def sample_analyze_orchestration_app_qna_response_async():
import os
from azure.core.credentials import AzureKeyCredential

from azure.ai.language.conversations import ConversationAnalysisClient
from azure.ai.language.conversations.aio import ConversationAnalysisClient
from azure.ai.language.conversations.models import ConversationAnalysisOptions

# get secrets
Expand All @@ -47,7 +47,7 @@ async def sample_analyze_orchestration_app_qna_response_async():
# analyze query
client = ConversationAnalysisClient(conv_endpoint, AzureKeyCredential(conv_key))
async with client:
result = client.analyze_conversations(
result = await client.analyze_conversations(
input,
project_name=orchestration_project,
deployment_name='production',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,15 @@
packages=find_packages(exclude=[
'tests',
# Exclude packages that will be covered by PEP420 or nspkg
# This means any folder structure that only consists of a __init__.py.
# For example, for storage, this would mean adding 'azure.storage'
# in addition to the default 'azure' that is seen here.
'azure',
'azure.ai',
'azure.ai.language',
]),
install_requires=[
"azure-core<2.0.0,>=1.19.0",
"azure-core<2.0.0,>=1.19.1",
"msrest>=0.6.21",
'azure-common~=1.1',
'six>=1.11.0',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Release History

## 1.0.0 (Unreleased)
## 1.0.0 (2021-11-03)

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
'azure.ai.language',
]),
install_requires=[
'azure-core<2.0.0,>=1.19.0',
'azure-core<2.0.0,>=1.19.1',
'msrest>=0.6.21',
],
extras_require={
Expand Down
4 changes: 2 additions & 2 deletions shared_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ backports.functools-lru-cache >= 1.6.4; python_version == "2.7"
#override azure-keyvault-secrets azure-core<2.0.0,>=1.7.0
#override azure-ai-textanalytics msrest>=0.6.21
#override azure-ai-textanalytics azure-core<2.0.0,>=1.19.1
#override azure-ai-language-questionanswering azure-core<2.0.0,>=1.19.0
#override azure-ai-language-questionanswering azure-core<2.0.0,>=1.19.1
#override azure-ai-language-questionanswering msrest>=0.6.21
#override azure-search-documents azure-core<2.0.0,>=1.19.0
#override azure-ai-formrecognizer msrest>=0.6.21
Expand Down Expand Up @@ -353,7 +353,7 @@ opentelemetry-sdk<2.0.0,>=1.5.0,!=1.10a0
#override azure-mgmt-azurearcdata msrest>=0.6.21
#override azure-mgmt-servicelinker msrest>=0.6.21
#override azure-mgmt-fluidrelay msrest>=0.6.21
#override azure-ai-language-conversations azure-core<2.0.0,>=1.19.0
#override azure-ai-language-conversations azure-core<2.0.0,>=1.19.1
#override azure-ai-language-conversations msrest>=0.6.21
#override azure-mgmt-dataprotection msrest>=0.6.21
#override azure-mgmt-chaos msrest>=0.6.21

0 comments on commit 05c8dc8

Please sign in to comment.