Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions .chronus/changes/fix_pygen_check-2025-8-2-14-53-5.md

This file was deleted.

12 changes: 12 additions & 0 deletions packages/autorest.python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Release

## 6.40.0

### Bump dependencies

- [#3190](https://github.com/Azure/autorest.python/pull/3190) Bump dependencies on `http-client-python`
- [#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

### Bug Fixes

- [#3194](https://github.com/Azure/autorest.python/pull/3194) Fix dependencies of pyproject.toml for ARM SDK


## 6.39.0

### Deprecations
Expand Down
6 changes: 3 additions & 3 deletions packages/autorest.python/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autorest/python",
"version": "6.39.0",
"version": "6.40.0",
"description": "The Python extension for generators in AutoRest.",
"scripts": {
"start": "node ./scripts/run-python3.js ./scripts/start.py",
Expand Down Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
"dependencies": {
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTMxMjQzOS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.16.0.tgz",
"@typespec/http-client-python": "~0.17.0",
"@autorest/system-requirements": "~1.0.2",
"fs-extra": "~11.2.0",
"tsx": "~4.19.1"
Expand All @@ -47,4 +47,4 @@
"requirements.txt",
"generator/"
]
}
}
16 changes: 16 additions & 0 deletions packages/typespec-python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Release

## 0.50.0

### Features

- [#3169](https://github.com/Azure/autorest.python/pull/3169) DPG model supports multi-layer discriminator.

### Bump dependencies

- [#3190](https://github.com/Azure/autorest.python/pull/3190) Bump dependencies on `http-client-python`
- [#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

### Bug Fixes

- [#3194](https://github.com/Azure/autorest.python/pull/3194) Fix dependencies of pyproject.toml for ARM SDK


## 0.49.0

### Features
Expand Down
70 changes: 35 additions & 35 deletions packages/typespec-python/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure-tools/typespec-python",
"version": "0.49.0",
"version": "0.50.0",
"author": "Microsoft Corporation",
"description": "TypeSpec emitter for Python SDKs",
"homepage": "https://github.com/Azure/autorest.python",
Expand Down Expand Up @@ -48,48 +48,48 @@
"generator/**"
],
"peerDependencies": {
"@typespec/compiler": "^1.3.0",
"@typespec/http": "^1.3.0",
"@typespec/rest": ">=0.73.0 <1.0.0",
"@typespec/versioning": ">=0.73.0 <1.0.0",
"@typespec/openapi": "^1.3.0",
"@typespec/events": ">=0.73.0 <1.0.0",
"@typespec/sse": ">=0.73.0 <1.0.0",
"@typespec/streams": ">=0.73.0 <1.0.0",
"@typespec/xml": ">=0.73.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.59.0 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.59.2 <1.0.0",
"@azure-tools/typespec-autorest": ">=0.59.1 <1.0.0",
"@azure-tools/typespec-azure-rulesets": ">=0.59.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.59.1 <1.0.0"
"@typespec/compiler": "^1.4.0",
"@typespec/http": "^1.4.0",
"@typespec/rest": ">=0.74.0 <1.0.0",
"@typespec/versioning": ">=0.74.0 <1.0.0",
"@typespec/openapi": "^1.4.0",
"@typespec/events": ">=0.74.0 <1.0.0",
"@typespec/sse": ">=0.74.0 <1.0.0",
"@typespec/streams": ">=0.74.0 <1.0.0",
"@typespec/xml": ">=0.74.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.60.0 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.60.0 <1.0.0",
"@azure-tools/typespec-autorest": ">=0.60.0 <1.0.0",
"@azure-tools/typespec-azure-rulesets": ">=0.60.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.60.0 <1.0.0"
},
"dependencies": {
"js-yaml": "~4.1.0",
"semver": "~7.6.2",
"tsx": "~4.19.1",
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTMxMjQzOS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.16.0.tgz",
"@typespec/http-client-python": "~0.17.0",
"fs-extra": "~11.2.0"
},
"devDependencies": {
"@typespec/compiler": "^1.3.0",
"@typespec/http": "^1.3.0",
"@typespec/rest": "~0.73.0",
"@typespec/versioning": "~0.73.0",
"@typespec/openapi": "^1.3.0",
"@typespec/events": "~0.73.0",
"@typespec/sse": "~0.73.0",
"@typespec/streams": "~0.73.0",
"@typespec/compiler": "^1.4.0",
"@typespec/http": "^1.4.0",
"@typespec/rest": "~0.74.0",
"@typespec/versioning": "~0.74.0",
"@typespec/openapi": "^1.4.0",
"@typespec/events": "~0.74.0",
"@typespec/sse": "~0.74.0",
"@typespec/streams": "~0.74.0",
"@typespec/tspd": "~0.70.0",
"@typespec/xml": "~0.73.0",
"@azure-tools/typespec-azure-resource-manager": "~0.59.2",
"@azure-tools/typespec-azure-core": "~0.59.0",
"@azure-tools/typespec-azure-rulesets": "~0.59.0",
"@azure-tools/typespec-autorest": "~0.59.1",
"@azure-tools/typespec-client-generator-core": "~0.59.1",
"@azure-tools/azure-http-specs": "0.1.0-alpha.27",
"@typespec/http-specs": "0.1.0-alpha.25",
"@typespec/spector": "0.1.0-alpha.17",
"@typespec/spec-api": "0.1.0-alpha.8",
"@typespec/xml": "~0.74.0",
"@azure-tools/typespec-azure-resource-manager": "~0.60.0",
"@azure-tools/typespec-azure-core": "~0.60.0",
"@azure-tools/typespec-azure-rulesets": "~0.60.0",
"@azure-tools/typespec-autorest": "~0.60.0",
"@azure-tools/typespec-client-generator-core": "~0.60.0",
"@azure-tools/azure-http-specs": "0.1.0-alpha.28",
"@typespec/http-specs": "0.1.0-alpha.26",
"@typespec/spector": "0.1.0-alpha.18",
"@typespec/spec-api": "0.1.0-alpha.9",
"@types/js-yaml": "~4.0.5",
"@types/node": "~24.1.0",
"@types/yargs": "~17.0.33",
Expand All @@ -103,4 +103,4 @@
"chalk": "5.3.0",
"@types/fs-extra": "11.0.4"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"CrossLanguagePackageId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation",
"CrossLanguageDefinitionId": {
"specs.azure.clientgenerator.core.clientlocation.models.Blob": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveMethodParameterToClient.Blob",
"specs.azure.clientgenerator.core.clientlocation.operations.ArchiveOperationsOperations.archive_product": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveToNewSubClient.ProductOperations.archiveProduct",
"specs.azure.clientgenerator.core.clientlocation.aio.operations.ArchiveOperationsOperations.archive_product": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveToNewSubClient.ProductOperations.archiveProduct",
"specs.azure.clientgenerator.core.clientlocation.ClientLocationClient.get_health_status": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveToRootClient.ResourceOperations.getHealthStatus",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import pytest
from devtools_testutils import recorded_by_proxy
from testpreparer import ClientLocationClientTestBase, LocationPreparer


@pytest.mark.skip("you may need to update the auto-generated test case before run it")
class TestLocationMoveMethodParameterToClientOperations(ClientLocationClientTestBase):
@LocationPreparer()
@recorded_by_proxy
def test_move_method_parameter_to_client_blob_operations_get_blob(self, location_endpoint):
client = self.create_client(endpoint=location_endpoint)
response = client.move_method_parameter_to_client.blob_operations.get_blob(
storage_account="str",
container="str",
blob="str",
)

# please add some check logic here by yourself
# ...
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import pytest
from devtools_testutils.aio import recorded_by_proxy_async
from testpreparer import LocationPreparer
from testpreparer_async import ClientLocationClientTestBaseAsync


@pytest.mark.skip("you may need to update the auto-generated test case before run it")
class TestLocationMoveMethodParameterToClientOperationsAsync(ClientLocationClientTestBaseAsync):
@LocationPreparer()
@recorded_by_proxy_async
async def test_move_method_parameter_to_client_blob_operations_get_blob(self, location_endpoint):
client = self.create_async_client(endpoint=location_endpoint)
response = await client.move_method_parameter_to_client.blob_operations.get_blob(
storage_account="str",
container="str",
blob="str",
)

# please add some check logic here by yourself
# ...
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from ._utils.serialization import Deserializer, Serializer
from .operations import (
ArchiveOperationsOperations,
MoveMethodParameterToClientOperations,
MoveToExistingSubClientOperations,
MoveToNewSubClientOperations,
MoveToRootClientOperations,
Expand All @@ -37,6 +38,9 @@ class ClientLocationClient(_ClientLocationClientOperationsMixin): # pylint: dis
:ivar move_to_root_client: MoveToRootClientOperations operations
:vartype move_to_root_client:
specs.azure.clientgenerator.core.clientlocation.operations.MoveToRootClientOperations
:ivar move_method_parameter_to_client: MoveMethodParameterToClientOperations operations
:vartype move_method_parameter_to_client:
specs.azure.clientgenerator.core.clientlocation.operations.MoveMethodParameterToClientOperations
:ivar archive_operations: ArchiveOperationsOperations operations
:vartype archive_operations:
specs.azure.clientgenerator.core.clientlocation.operations.ArchiveOperationsOperations
Expand Down Expand Up @@ -81,6 +85,9 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
self.move_to_root_client = MoveToRootClientOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.move_method_parameter_to_client = MoveMethodParameterToClientOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.archive_operations = ArchiveOperationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from ._configuration import ClientLocationClientConfiguration
from .operations import (
ArchiveOperationsOperations,
MoveMethodParameterToClientOperations,
MoveToExistingSubClientOperations,
MoveToNewSubClientOperations,
MoveToRootClientOperations,
Expand All @@ -37,6 +38,9 @@ class ClientLocationClient(_ClientLocationClientOperationsMixin): # pylint: dis
:ivar move_to_root_client: MoveToRootClientOperations operations
:vartype move_to_root_client:
specs.azure.clientgenerator.core.clientlocation.aio.operations.MoveToRootClientOperations
:ivar move_method_parameter_to_client: MoveMethodParameterToClientOperations operations
:vartype move_method_parameter_to_client:
specs.azure.clientgenerator.core.clientlocation.aio.operations.MoveMethodParameterToClientOperations
:ivar archive_operations: ArchiveOperationsOperations operations
:vartype archive_operations:
specs.azure.clientgenerator.core.clientlocation.aio.operations.ArchiveOperationsOperations
Expand Down Expand Up @@ -81,6 +85,9 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
self.move_to_root_client = MoveToRootClientOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.move_method_parameter_to_client = MoveMethodParameterToClientOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.archive_operations = ArchiveOperationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from ._operations import MoveToExistingSubClientOperations # type: ignore
from ._operations import MoveToNewSubClientOperations # type: ignore
from ._operations import MoveToRootClientOperations # type: ignore
from ._operations import MoveMethodParameterToClientOperations # type: ignore
from ._operations import ArchiveOperationsOperations # type: ignore
from ._operations import _ClientLocationClientOperationsMixin # type: ignore # pylint: disable=unused-import

Expand All @@ -26,6 +27,7 @@
"MoveToExistingSubClientOperations",
"MoveToNewSubClientOperations",
"MoveToRootClientOperations",
"MoveMethodParameterToClientOperations",
"ArchiveOperationsOperations",
]
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
Expand Down
Loading
Loading