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.

This file was deleted.

This file was deleted.

This file was deleted.

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.50.0

### Features

- [#3368](https://github.com/Azure/autorest.python/pull/3368) Remove enum value padding because we generate our enum value names with upper case so there is no need

### Bug Fixes

- [#3368](https://github.com/Azure/autorest.python/pull/3368) Return empty list instead of None for non-optional unwrapped XML list fields during deserialization
- [#3373](https://github.com/Azure/autorest.python/pull/3373) Remove includeRootSlash client option logic, which should be handled at the TypeSpec core level


## 6.49.2

### Bug Fixes
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.49.2",
"version": "6.50.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/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTk3OTY3NS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.27.2.tgz",
"@typespec/http-client-python": "~0.28.0",
"@autorest/system-requirements": "~1.0.2",
"fs-extra": "~11.2.0",
"tsx": "^4.21.0"
Expand All @@ -47,4 +47,4 @@
"requirements.txt",
"generator/"
]
}
}
12 changes: 12 additions & 0 deletions packages/typespec-python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Release

## 0.61.0

### Features

- [#3368](https://github.com/Azure/autorest.python/pull/3368) Remove enum value padding because we generate our enum value names with upper case so there is no need

### Bug Fixes

- [#3368](https://github.com/Azure/autorest.python/pull/3368) Return empty list instead of None for non-optional unwrapped XML list fields during deserialization
- [#3373](https://github.com/Azure/autorest.python/pull/3373) Remove includeRootSlash client option logic, which should be handled at the TypeSpec core level


## 0.60.2

### Bug Fixes
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.60.2",
"version": "0.61.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.9.0",
"@typespec/http": "^1.9.0",
"@typespec/rest": ">=0.79.0 <1.0.0",
"@typespec/versioning": ">=0.79.0 <1.0.0",
"@typespec/openapi": "^1.9.0",
"@typespec/events": ">=0.79.0 <1.0.0",
"@typespec/sse": ">=0.79.0 <1.0.0",
"@typespec/streams": ">=0.79.0 <1.0.0",
"@typespec/xml": ">=0.79.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.65.0 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.65.0 <1.0.0",
"@azure-tools/typespec-autorest": ">=0.65.0 <1.0.0",
"@azure-tools/typespec-azure-rulesets": ">=0.65.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.65.3 <1.0.0"
"@typespec/compiler": "^1.10.0",
"@typespec/http": "^1.10.0",
"@typespec/rest": ">=0.80.0 <1.0.0",
"@typespec/versioning": ">=0.80.0 <1.0.0",
"@typespec/openapi": "^1.10.0",
"@typespec/events": ">=0.80.0 <1.0.0",
"@typespec/sse": ">=0.80.0 <1.0.0",
"@typespec/streams": ">=0.80.0 <1.0.0",
"@typespec/xml": ">=0.80.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.66.0 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.66.0 <1.0.0",
"@azure-tools/typespec-autorest": ">=0.66.0 <1.0.0",
"@azure-tools/typespec-azure-rulesets": ">=0.65.1 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.66.1 <1.0.0"
},
"dependencies": {
"js-yaml": "~4.1.0",
"semver": "~7.6.2",
"tsx": "^4.21.0",
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTk3OTY3NS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.27.2.tgz",
"@typespec/http-client-python": "~0.28.0",
"fs-extra": "~11.2.0"
},
"devDependencies": {
"@typespec/compiler": "^1.9.0",
"@typespec/http": "^1.9.0",
"@typespec/rest": "~0.79.0",
"@typespec/versioning": "~0.79.0",
"@typespec/openapi": "^1.9.0",
"@typespec/events": "~0.79.0",
"@typespec/sse": "~0.79.0",
"@typespec/streams": "~0.79.0",
"@typespec/compiler": "^1.10.0",
"@typespec/http": "^1.10.0",
"@typespec/rest": "~0.80.0",
"@typespec/versioning": "~0.80.0",
"@typespec/openapi": "^1.10.0",
"@typespec/events": "~0.80.0",
"@typespec/sse": "~0.80.0",
"@typespec/streams": "~0.80.0",
"@typespec/tspd": "~0.74.0",
"@typespec/xml": "~0.79.0",
"@azure-tools/typespec-azure-resource-manager": "~0.65.0",
"@azure-tools/typespec-azure-core": "~0.65.0",
"@azure-tools/typespec-azure-rulesets": "~0.65.0",
"@azure-tools/typespec-autorest": "~0.65.0",
"@azure-tools/typespec-client-generator-core": "~0.65.3",
"@azure-tools/azure-http-specs": "0.1.0-alpha.38-dev.6",
"@typespec/http-specs": "0.1.0-alpha.33-dev.2",
"@typespec/spector": "0.1.0-alpha.23",
"@typespec/spec-api": "0.1.0-alpha.12",
"@typespec/xml": "~0.80.0",
"@azure-tools/typespec-azure-resource-manager": "~0.66.0",
"@azure-tools/typespec-azure-core": "~0.66.0",
"@azure-tools/typespec-azure-rulesets": "~0.65.1",
"@azure-tools/typespec-autorest": "~0.66.0",
"@azure-tools/typespec-client-generator-core": "~0.66.1",
"@azure-tools/azure-http-specs": "0.1.0-alpha.38",
"@typespec/http-specs": "0.1.0-alpha.34",
"@typespec/spector": "0.1.0-alpha.24",
"@typespec/spec-api": "0.1.0-alpha.13",
"@types/js-yaml": "~4.0.5",
"@types/node": "~25.0.2",
"@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
Expand Up @@ -37,6 +37,7 @@
"specialwords.models.WhileModel": "SpecialWords.Models.while",
"specialwords.models.WithModel": "SpecialWords.Models.with",
"specialwords.models.YieldModel": "SpecialWords.Models.yield",
"specialwords.models.ExtensibleString": "SpecialWords.ExtensibleStrings.ExtensibleString",
"specialwords.operations.ModelsOperations.with_and": "SpecialWords.Models.withAnd",
"specialwords.aio.operations.ModelsOperations.with_and": "SpecialWords.Models.withAnd",
"specialwords.operations.ModelsOperations.with_as": "SpecialWords.Models.withAs",
Expand Down Expand Up @@ -109,6 +110,8 @@
"specialwords.aio.operations.ModelPropertiesOperations.dict_methods": "SpecialWords.ModelProperties.dictMethods",
"specialwords.operations.ModelPropertiesOperations.with_list": "SpecialWords.ModelProperties.withList",
"specialwords.aio.operations.ModelPropertiesOperations.with_list": "SpecialWords.ModelProperties.withList",
"specialwords.operations.ExtensibleStringsOperations.put_extensible_string_value": "SpecialWords.ExtensibleStrings.putExtensibleStringValue",
"specialwords.aio.operations.ExtensibleStringsOperations.put_extensible_string_value": "SpecialWords.ExtensibleStrings.putExtensibleStringValue",
"specialwords.operations.Operations.and_method": "SpecialWords.Operations.and",
"specialwords.aio.operations.Operations.and_method": "SpecialWords.Operations.and",
"specialwords.operations.Operations.as_method": "SpecialWords.Operations.as",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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 SpecialWordsClientTestBase, SpecialWordsPreparer


@pytest.mark.skip("you may need to update the auto-generated test case before run it")
class TestSpecialWordsExtensibleStringsOperations(SpecialWordsClientTestBase):
@SpecialWordsPreparer()
@recorded_by_proxy
def test_extensible_strings_put_extensible_string_value(self, specialwords_endpoint):
client = self.create_client(endpoint=specialwords_endpoint)
response = client.extensible_strings.put_extensible_string_value(
body="str",
content_type="str",
)

# please add some check logic here by yourself
# ...
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.aio import recorded_by_proxy_async
from testpreparer import SpecialWordsPreparer
from testpreparer_async import SpecialWordsClientTestBaseAsync


@pytest.mark.skip("you may need to update the auto-generated test case before run it")
class TestSpecialWordsExtensibleStringsOperationsAsync(SpecialWordsClientTestBaseAsync):
@SpecialWordsPreparer()
@recorded_by_proxy_async
async def test_extensible_strings_put_extensible_string_value(self, specialwords_endpoint):
client = self.create_async_client(endpoint=specialwords_endpoint)
response = await client.extensible_strings.put_extensible_string_value(
body="str",
content_type="str",
)

# please add some check logic here by yourself
# ...
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@

from ._configuration import SpecialWordsClientConfiguration
from ._utils.serialization import Deserializer, Serializer
from .operations import ModelPropertiesOperations, ModelsOperations, Operations, ParametersOperations
from .operations import (
ExtensibleStringsOperations,
ModelPropertiesOperations,
ModelsOperations,
Operations,
ParametersOperations,
)


class SpecialWordsClient: # pylint: disable=client-accepts-api-version-keyword
Expand Down Expand Up @@ -66,6 +72,8 @@ class SpecialWordsClient: # pylint: disable=client-accepts-api-version-keyword
:vartype models: specialwords.operations.ModelsOperations
:ivar model_properties: ModelPropertiesOperations operations
:vartype model_properties: specialwords.operations.ModelPropertiesOperations
:ivar extensible_strings: ExtensibleStringsOperations operations
:vartype extensible_strings: specialwords.operations.ExtensibleStringsOperations
:ivar operations: Operations operations
:vartype operations: specialwords.operations.Operations
:ivar parameters: ParametersOperations operations
Expand Down Expand Up @@ -106,6 +114,9 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
self.model_properties = ModelPropertiesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.extensible_strings = ExtensibleStringsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.parameters = ParametersOperations(self._client, self._config, self._serialize, self._deserialize)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@

from .._utils.serialization import Deserializer, Serializer
from ._configuration import SpecialWordsClientConfiguration
from .operations import ModelPropertiesOperations, ModelsOperations, Operations, ParametersOperations
from .operations import (
ExtensibleStringsOperations,
ModelPropertiesOperations,
ModelsOperations,
Operations,
ParametersOperations,
)


class SpecialWordsClient: # pylint: disable=client-accepts-api-version-keyword
Expand Down Expand Up @@ -66,6 +72,8 @@ class SpecialWordsClient: # pylint: disable=client-accepts-api-version-keyword
:vartype models: specialwords.aio.operations.ModelsOperations
:ivar model_properties: ModelPropertiesOperations operations
:vartype model_properties: specialwords.aio.operations.ModelPropertiesOperations
:ivar extensible_strings: ExtensibleStringsOperations operations
:vartype extensible_strings: specialwords.aio.operations.ExtensibleStringsOperations
:ivar operations: Operations operations
:vartype operations: specialwords.aio.operations.Operations
:ivar parameters: ParametersOperations operations
Expand Down Expand Up @@ -106,6 +114,9 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
self.model_properties = ModelPropertiesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.extensible_strings = ExtensibleStringsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.parameters = ParametersOperations(self._client, self._config, self._serialize, self._deserialize)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from ._operations import ModelsOperations # type: ignore
from ._operations import ModelPropertiesOperations # type: ignore
from ._operations import ExtensibleStringsOperations # type: ignore
from ._operations import Operations # type: ignore
from ._operations import ParametersOperations # type: ignore

Expand All @@ -24,6 +25,7 @@
__all__ = [
"ModelsOperations",
"ModelPropertiesOperations",
"ExtensibleStringsOperations",
"Operations",
"ParametersOperations",
]
Expand Down
Loading
Loading