Skip to content

Commit 816024f

Browse files
author
iscai-msft
committed
Merge branch 'main' of https://github.com/Azure/autorest.python into auto-iscai-msft-python/internalOnlyModels
2 parents 791f5ca + 325f142 commit 816024f

88 files changed

Lines changed: 10489 additions & 342 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.chronus/changes/auto-iscai-msft-python-msrestDatetimeImportReadonly-2025-8-2-14-47-46.md

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

.chronus/changes/auto-microsoft-fix-pyproject-2025-8-3-14-46-10.md

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

.chronus/changes/auto-microsoft-python-multi-layer-discriminator-2025-7-15-11-10-3.md

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

.chronus/changes/fix_pygen_check-2025-8-2-14-53-5.md

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

packages/autorest.python/CHANGELOG.md

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

3+
## 6.40.0
4+
5+
### Bump dependencies
6+
7+
- [#3190](https://github.com/Azure/autorest.python/pull/3190) Bump dependencies on `http-client-python`
8+
- [#3192](https://github.com/Azure/autorest.python/pull/3192) Bump dependency on `http-client-python` which optimizes exception handling logic when Python and package managers are available but installation fails
9+
10+
### Bug Fixes
11+
12+
- [#3194](https://github.com/Azure/autorest.python/pull/3194) Fix dependencies of pyproject.toml for ARM SDK
13+
14+
315
## 6.39.0
416

517
### Deprecations

packages/autorest.python/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@autorest/python",
3-
"version": "6.39.0",
3+
"version": "6.40.0",
44
"description": "The Python extension for generators in AutoRest.",
55
"scripts": {
66
"start": "node ./scripts/run-python3.js ./scripts/start.py",
@@ -29,7 +29,7 @@
2929
},
3030
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
3131
"dependencies": {
32-
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTMxMzc1NS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.16.0.tgz",
32+
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTMyNTk4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.17.0.tgz",
3333
"@autorest/system-requirements": "~1.0.2",
3434
"fs-extra": "~11.2.0",
3535
"tsx": "~4.19.1"
@@ -47,4 +47,4 @@
4747
"requirements.txt",
4848
"generator/"
4949
]
50-
}
50+
}

packages/typespec-python/CHANGELOG.md

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

3+
## 0.50.0
4+
5+
### Features
6+
7+
- [#3169](https://github.com/Azure/autorest.python/pull/3169) DPG model supports multi-layer discriminator.
8+
9+
### Bump dependencies
10+
11+
- [#3190](https://github.com/Azure/autorest.python/pull/3190) Bump dependencies on `http-client-python`
12+
- [#3192](https://github.com/Azure/autorest.python/pull/3192) Bump dependency on `http-client-python` which optimizes exception handling logic when Python and package managers are available but installation fails
13+
14+
### Bug Fixes
15+
16+
- [#3194](https://github.com/Azure/autorest.python/pull/3194) Fix dependencies of pyproject.toml for ARM SDK
17+
18+
319
## 0.49.0
420

521
### Features

packages/typespec-python/package.json

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-python",
3-
"version": "0.49.0",
3+
"version": "0.50.0",
44
"author": "Microsoft Corporation",
55
"description": "TypeSpec emitter for Python SDKs",
66
"homepage": "https://github.com/Azure/autorest.python",
@@ -48,48 +48,48 @@
4848
"generator/**"
4949
],
5050
"peerDependencies": {
51-
"@typespec/compiler": "^1.3.0",
52-
"@typespec/http": "^1.3.0",
53-
"@typespec/rest": ">=0.73.0 <1.0.0",
54-
"@typespec/versioning": ">=0.73.0 <1.0.0",
55-
"@typespec/openapi": "^1.3.0",
56-
"@typespec/events": ">=0.73.0 <1.0.0",
57-
"@typespec/sse": ">=0.73.0 <1.0.0",
58-
"@typespec/streams": ">=0.73.0 <1.0.0",
59-
"@typespec/xml": ">=0.73.0 <1.0.0",
60-
"@azure-tools/typespec-azure-core": ">=0.59.0 <1.0.0",
61-
"@azure-tools/typespec-azure-resource-manager": ">=0.59.2 <1.0.0",
62-
"@azure-tools/typespec-autorest": ">=0.59.1 <1.0.0",
63-
"@azure-tools/typespec-azure-rulesets": ">=0.59.0 <1.0.0",
64-
"@azure-tools/typespec-client-generator-core": ">=0.59.1 <1.0.0"
51+
"@typespec/compiler": "^1.4.0",
52+
"@typespec/http": "^1.4.0",
53+
"@typespec/rest": ">=0.74.0 <1.0.0",
54+
"@typespec/versioning": ">=0.74.0 <1.0.0",
55+
"@typespec/openapi": "^1.4.0",
56+
"@typespec/events": ">=0.74.0 <1.0.0",
57+
"@typespec/sse": ">=0.74.0 <1.0.0",
58+
"@typespec/streams": ">=0.74.0 <1.0.0",
59+
"@typespec/xml": ">=0.74.0 <1.0.0",
60+
"@azure-tools/typespec-azure-core": ">=0.60.0 <1.0.0",
61+
"@azure-tools/typespec-azure-resource-manager": ">=0.60.0 <1.0.0",
62+
"@azure-tools/typespec-autorest": ">=0.60.0 <1.0.0",
63+
"@azure-tools/typespec-azure-rulesets": ">=0.60.0 <1.0.0",
64+
"@azure-tools/typespec-client-generator-core": ">=0.60.0 <1.0.0"
6565
},
6666
"dependencies": {
6767
"js-yaml": "~4.1.0",
6868
"semver": "~7.6.2",
6969
"tsx": "~4.19.1",
70-
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTMxMzc1NS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.16.0.tgz",
70+
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTMyNTk4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.17.0.tgz",
7171
"fs-extra": "~11.2.0"
7272
},
7373
"devDependencies": {
74-
"@typespec/compiler": "^1.3.0",
75-
"@typespec/http": "^1.3.0",
76-
"@typespec/rest": "~0.73.0",
77-
"@typespec/versioning": "~0.73.0",
78-
"@typespec/openapi": "^1.3.0",
79-
"@typespec/events": "~0.73.0",
80-
"@typespec/sse": "~0.73.0",
81-
"@typespec/streams": "~0.73.0",
74+
"@typespec/compiler": "^1.4.0",
75+
"@typespec/http": "^1.4.0",
76+
"@typespec/rest": "~0.74.0",
77+
"@typespec/versioning": "~0.74.0",
78+
"@typespec/openapi": "^1.4.0",
79+
"@typespec/events": "~0.74.0",
80+
"@typespec/sse": "~0.74.0",
81+
"@typespec/streams": "~0.74.0",
8282
"@typespec/tspd": "~0.70.0",
83-
"@typespec/xml": "~0.73.0",
84-
"@azure-tools/typespec-azure-resource-manager": "~0.59.2",
85-
"@azure-tools/typespec-azure-core": "~0.59.0",
86-
"@azure-tools/typespec-azure-rulesets": "~0.59.0",
87-
"@azure-tools/typespec-autorest": "~0.59.1",
88-
"@azure-tools/typespec-client-generator-core": "~0.59.1",
89-
"@azure-tools/azure-http-specs": "0.1.0-alpha.27",
90-
"@typespec/http-specs": "0.1.0-alpha.25",
91-
"@typespec/spector": "0.1.0-alpha.17",
92-
"@typespec/spec-api": "0.1.0-alpha.8",
83+
"@typespec/xml": "~0.74.0",
84+
"@azure-tools/typespec-azure-resource-manager": "~0.60.0",
85+
"@azure-tools/typespec-azure-core": "~0.60.0",
86+
"@azure-tools/typespec-azure-rulesets": "~0.60.0",
87+
"@azure-tools/typespec-autorest": "~0.60.0",
88+
"@azure-tools/typespec-client-generator-core": "~0.60.0",
89+
"@azure-tools/azure-http-specs": "0.1.0-alpha.28",
90+
"@typespec/http-specs": "0.1.0-alpha.26",
91+
"@typespec/spector": "0.1.0-alpha.18",
92+
"@typespec/spec-api": "0.1.0-alpha.9",
9393
"@types/js-yaml": "~4.0.5",
9494
"@types/node": "~24.1.0",
9595
"@types/yargs": "~17.0.33",
@@ -103,4 +103,4 @@
103103
"chalk": "5.3.0",
104104
"@types/fs-extra": "11.0.4"
105105
}
106-
}
106+
}

packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/apiview-properties.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"CrossLanguagePackageId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation",
33
"CrossLanguageDefinitionId": {
4+
"specs.azure.clientgenerator.core.clientlocation.models.Blob": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveMethodParameterToClient.Blob",
45
"specs.azure.clientgenerator.core.clientlocation.operations.ArchiveOperationsOperations.archive_product": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveToNewSubClient.ProductOperations.archiveProduct",
56
"specs.azure.clientgenerator.core.clientlocation.aio.operations.ArchiveOperationsOperations.archive_product": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveToNewSubClient.ProductOperations.archiveProduct",
67
"specs.azure.clientgenerator.core.clientlocation.ClientLocationClient.get_health_status": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveToRootClient.ResourceOperations.getHealthStatus",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) Python Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
import pytest
9+
from devtools_testutils import recorded_by_proxy
10+
from testpreparer import ClientLocationClientTestBase, LocationPreparer
11+
12+
13+
@pytest.mark.skip("you may need to update the auto-generated test case before run it")
14+
class TestLocationMoveMethodParameterToClientOperations(ClientLocationClientTestBase):
15+
@LocationPreparer()
16+
@recorded_by_proxy
17+
def test_move_method_parameter_to_client_blob_operations_get_blob(self, location_endpoint):
18+
client = self.create_client(endpoint=location_endpoint)
19+
response = client.move_method_parameter_to_client.blob_operations.get_blob(
20+
storage_account="str",
21+
container="str",
22+
blob="str",
23+
)
24+
25+
# please add some check logic here by yourself
26+
# ...

0 commit comments

Comments
 (0)