Skip to content

Commit acfa416

Browse files
scbeddVinothini Dharmaraj
authored andcommitted
update the utilized twine version to one that handles new importlib-metadata
1 parent 2b136d6 commit acfa416

File tree

6 files changed

+42
-7
lines changed

6 files changed

+42
-7
lines changed

eng/pipelines/templates/steps/build-package-artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ steps:
115115
CIBW_BUILD_VERBOSITY: 3
116116
117117
- script: |
118-
pip install twine==4.0.2
118+
pip install -r eng/release_requirements.txt
119119
twine check $(Build.ArtifactStagingDirectory)/**/*.whl
120120
twine check $(Build.ArtifactStagingDirectory)/**/*.tar.gz
121121
displayName: 'Verify Readme'

eng/release_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
twine==4.0.2; python_version >= '3.6'
1+
twine==5.1.1
22
tools/azure-sdk-tools

sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,7 @@ def update_transcription(
988988
self,
989989
*,
990990
locale: str,
991+
operation_context: Optional[str] = None,
991992
speech_recognition_model_endpoint_id: Optional[str] = None,
992993
**kwargs
993994
) -> None:
@@ -997,13 +998,16 @@ def update_transcription(
997998
:paramtype locale: str
998999
:keyword speech_recognition_model_endpoint_id: Endpoint where the custom model was deployed.
9991000
:paramtype speech_recognition_model_endpoint_id: str
1001+
:keyword operation_context: The value to identify context of the operation.
1002+
:paramtype operation_context: str
10001003
:return: None
10011004
:rtype: None
10021005
:raises ~azure.core.exceptions.HttpResponseError:
10031006
"""
10041007

10051008
update_transcription_request = UpdateTranscriptionRequest(
10061009
locale=locale,
1010+
operation_context=operation_context,
10071011
speech_recognition_model_endpoint_id=speech_recognition_model_endpoint_id,
10081012
**kwargs
10091013
)
@@ -1121,6 +1125,7 @@ def stop_media_streaming(
11211125
self,
11221126
*,
11231127
operation_callback_url: Optional[str] = None,
1128+
operation_context: Optional[str] = None,
11241129
**kwargs
11251130
) -> None:
11261131
"""Stops media streaming in the call.
@@ -1130,12 +1135,15 @@ def stop_media_streaming(
11301135
This setup is per-action. If this is not set, the default callback URL set by
11311136
CreateCall/AnswerCall will be used.
11321137
:paramtype operation_callback_url: str or None
1138+
:keyword operation_context: (Optional) Value that can be used to track this call and its associated events.
1139+
:paramtype operation_context: str or None
11331140
:return: None
11341141
:rtype: None
11351142
:raises ~azure.core.exceptions.HttpResponseError: If there's an HTTP response error.
11361143
"""
11371144
stop_media_streaming_request=StopMediaStreamingRequest(
1138-
operation_callback_uri=operation_callback_url
1145+
operation_callback_uri=operation_callback_url,
1146+
operation_context=operation_context
11391147
)
11401148
self._call_media_client.stop_media_streaming(
11411149
self._call_connection_id,

sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_models.py

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4349,22 +4349,30 @@ class StopMediaStreamingRequest(_serialization.Model):
43494349
This setup is per-action. If this is not set, the default callback URI set by
43504350
CreateCall/AnswerCall will be used.
43514351
:vartype operation_callback_uri: str
4352+
:ivar operation_context: The value to identify context of the operation.
4353+
:vartype operation_context: str
43524354
"""
43534355

43544356
_attribute_map = {
43554357
"operation_callback_uri": {"key": "operationCallbackUri", "type": "str"},
4358+
"operation_context": {"key": "operationContext", "type": "str"},
43564359
}
43574360

4358-
def __init__(self, *, operation_callback_uri: Optional[str] = None, **kwargs: Any) -> None:
4361+
def __init__(
4362+
self, *, operation_callback_uri: Optional[str] = None, operation_context: Optional[str] = None, **kwargs: Any
4363+
) -> None:
43594364
"""
43604365
:keyword operation_callback_uri: Set a callback URI that overrides the default callback URI set
43614366
by CreateCall/AnswerCall for this operation.
43624367
This setup is per-action. If this is not set, the default callback URI set by
43634368
CreateCall/AnswerCall will be used.
43644369
:paramtype operation_callback_uri: str
4370+
:keyword operation_context: The value to identify context of the operation.
4371+
:paramtype operation_context: str
43654372
"""
43664373
super().__init__(**kwargs)
43674374
self.operation_callback_uri = operation_callback_uri
4375+
self.operation_context = operation_context
43684376

43694377

43704378
class StopTranscriptionRequest(_serialization.Model):
@@ -4986,6 +4994,8 @@ class UpdateTranscriptionRequest(_serialization.Model):
49864994
:ivar speech_recognition_model_endpoint_id: Sets Endpoint id where the custom model was
49874995
deployed.
49884996
:vartype speech_recognition_model_endpoint_id: str
4997+
:ivar operation_context: The value to identify context of the operation.
4998+
:vartype operation_context: str
49894999
"""
49905000

49915001
_validation = {
@@ -4995,18 +5005,27 @@ class UpdateTranscriptionRequest(_serialization.Model):
49955005
_attribute_map = {
49965006
"locale": {"key": "locale", "type": "str"},
49975007
"speech_recognition_model_endpoint_id": {"key": "speechRecognitionModelEndpointId", "type": "str"},
5008+
"operation_context": {"key": "operationContext", "type": "str"},
49985009
}
49995010

50005011
def __init__(
5001-
self, *, locale: str, speech_recognition_model_endpoint_id: Optional[str] = None, **kwargs: Any
5012+
self,
5013+
*,
5014+
locale: str,
5015+
speech_recognition_model_endpoint_id: Optional[str] = None,
5016+
operation_context: Optional[str] = None,
5017+
**kwargs: Any
50025018
) -> None:
50035019
"""
50045020
:keyword locale: Sets new locale for transcription. Required.
50055021
:paramtype locale: str
50065022
:keyword speech_recognition_model_endpoint_id: Sets Endpoint id where the custom model was
50075023
deployed.
50085024
:paramtype speech_recognition_model_endpoint_id: str
5025+
:keyword operation_context: The value to identify context of the operation.
5026+
:paramtype operation_context: str
50095027
"""
50105028
super().__init__(**kwargs)
50115029
self.locale = locale
50125030
self.speech_recognition_model_endpoint_id = speech_recognition_model_endpoint_id
5031+
self.operation_context = operation_context

sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,13 +990,16 @@ async def update_transcription(
990990
self,
991991
*,
992992
locale: str,
993+
operation_context: Optional[str] = None,
993994
speech_recognition_model_endpoint_id: Optional[str] = None,
994995
**kwargs
995996
) -> None:
996997
"""API to change transcription language.
997998
998999
:keyword locale: Defines new locale for transcription.
9991000
:paramtype locale: str
1001+
:keyword operation_context: The value to identify context of the operation.
1002+
:paramtype operation_context: str
10001003
:keyword speech_recognition_model_endpoint_id: Endpoint where the custom model was deployed.
10011004
:paramtype speech_recognition_model_endpoint_id: str
10021005
:return: None
@@ -1005,6 +1008,7 @@ async def update_transcription(
10051008
"""
10061009
update_transcription_request = UpdateTranscriptionRequest(
10071010
locale=locale,
1011+
operation_context=operation_context,
10081012
speech_recognition_model_endpoint_id=speech_recognition_model_endpoint_id,
10091013
**kwargs
10101014
)
@@ -1121,6 +1125,7 @@ async def stop_media_streaming(
11211125
self,
11221126
*,
11231127
operation_callback_url: Optional[str] = None,
1128+
operation_context: Optional[str] = None,
11241129
**kwargs
11251130
)->None:
11261131
"""Stops media streaming in the call.
@@ -1130,12 +1135,15 @@ async def stop_media_streaming(
11301135
This setup is per-action. If this is not set, the default callback URL set by
11311136
CreateCall/AnswerCall will be used.
11321137
:paramtype operation_callback_url: str or None
1138+
:keyword operation_context: (Optional) Value that can be used to track this call and its associated events.
1139+
:paramtype operation_context: str or None
11331140
:return: None
11341141
:rtype: None
11351142
:raises ~azure.core.exceptions.HttpResponseError: If there's an HTTP response error.
11361143
"""
11371144
stop_media_streaming_request=StopMediaStreamingRequest(
1138-
operation_callback_uri=operation_callback_url
1145+
operation_callback_uri=operation_callback_url,
1146+
operation_context=operation_context
11391147
)
11401148
self._call_media_client.stop_media_streaming(
11411149
self._call_connection_id,

sdk/communication/azure-communication-callautomation/swagger/SWAGGER.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ autorest SWAGGER.md
1919

2020
```yaml
2121
tag: package-2024-06-15-preview
22-
require: https://github.com/Azure/azure-rest-api-specs/blob/d1296700aa6cd650970e9891dd58eef5698327fd/specification/communication/data-plane/CallAutomation/readme.md
22+
require: https://github.com/Azure/azure-rest-api-specs/blob/0117e474a03d0b5b4cdd3b713105ae17196c18ce/specification/communication/data-plane/CallAutomation/readme.md
2323
output-folder: ../azure/communication/callautomation/_generated
2424
models-mode: msrest
2525
namespace: azure.communication.callautomation

0 commit comments

Comments
 (0)