From caa81b895a5d70c0d3378140e72f838766ffb237 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Thu, 22 Jan 2026 01:12:55 +0000 Subject: [PATCH 1/4] Update dependencies --- packages/autorest.python/package.json | 2 +- packages/typespec-python/package.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index feb8b7e9a4..0ac36ecf60 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -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/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3Mjk2OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.24.1.tgz", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index 68435d49cb..08fb07e04d 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -61,13 +61,13 @@ "@azure-tools/typespec-azure-resource-manager": ">=0.64.0 <1.0.0", "@azure-tools/typespec-autorest": ">=0.64.0 <1.0.0", "@azure-tools/typespec-azure-rulesets": ">=0.64.0 <1.0.0", - "@azure-tools/typespec-client-generator-core": ">=0.64.1 <1.0.0" + "@azure-tools/typespec-client-generator-core": ">=0.64.2 <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/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3Mjk2OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.24.1.tgz", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz", "fs-extra": "~11.2.0" }, "devDependencies": { @@ -85,8 +85,8 @@ "@azure-tools/typespec-azure-core": "~0.64.0", "@azure-tools/typespec-azure-rulesets": "~0.64.0", "@azure-tools/typespec-autorest": "~0.64.0", - "@azure-tools/typespec-client-generator-core": "~0.64.1", - "@azure-tools/azure-http-specs": "0.1.0-alpha.35", + "@azure-tools/typespec-client-generator-core": "~0.64.2", + "@azure-tools/azure-http-specs": "0.1.0-alpha.36", "@typespec/http-specs": "0.1.0-alpha.32-dev.1", "@typespec/spector": "0.1.0-alpha.22", "@typespec/spec-api": "0.1.0-alpha.12", From 3f2069022cd33d357831ab5577e8e8ea0b0578c2 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Thu, 22 Jan 2026 01:13:55 +0000 Subject: [PATCH 2/4] Update dependencies (2026-01-22 01:13:55) --- .../test_model_base_xml_serialization.py | 92 ++++++------------- pnpm-lock.yaml | 56 +++++------ 2 files changed, 58 insertions(+), 90 deletions(-) diff --git a/packages/typespec-python/test/generic_mock_api_tests/unittests/test_model_base_xml_serialization.py b/packages/typespec-python/test/generic_mock_api_tests/unittests/test_model_base_xml_serialization.py index 78912e305b..12011df99b 100644 --- a/packages/typespec-python/test/generic_mock_api_tests/unittests/test_model_base_xml_serialization.py +++ b/packages/typespec-python/test/generic_mock_api_tests/unittests/test_model_base_xml_serialization.py @@ -523,12 +523,10 @@ def __init__(self, *args, **kwargs): class TestXmlSerialization: def test_basic(self): """Test an ultra basic XML.""" - basic_xml = ET.fromstring( - """ + basic_xml = ET.fromstring(""" 37 - """ - ) + """) class XmlModel(Model): age: int = rest_field(xml={"name": "Age"}) @@ -544,12 +542,8 @@ def __init__(self, *args, **kwargs): def test_basic_unicode(self): """Test a XML with unicode.""" - basic_xml = ET.fromstring( - """ - """.encode( - "utf-8" - ) - ) + basic_xml = ET.fromstring(""" + """.encode("utf-8")) class XmlModel(Model): language: str = rest_field(xml={"name": "language", "attribute": True}) @@ -589,13 +583,11 @@ def __init__(self, *args, **kwargs): def test_type_basic(self): """Test basic types.""" - basic_xml = ET.fromstring( - """ + basic_xml = ET.fromstring(""" 37 true - """ - ) + """) class XmlModel(Model): age: int = rest_field(name="age", xml={"name": "Age"}) @@ -611,10 +603,8 @@ def __init__(self, *args, **kwargs): def test_basic_text(self): """Test a XML with unicode.""" - basic_xml = ET.fromstring( - """ - I am text""" - ) + basic_xml = ET.fromstring(""" + I am text""") class XmlModel(Model): language: str = rest_field(name="language", xml={"name": "language", "attribute": True}) @@ -630,15 +620,13 @@ def __init__(self, *args, **kwargs): def test_dict_type(self): """Test dict type.""" - basic_xml = ET.fromstring( - """ + basic_xml = ET.fromstring(""" value1 value2 - """ - ) + """) class XmlModel(Model): metadata: Dict[str, str] = rest_field(name="Metadata", xml={"name": "Metadata"}) @@ -658,8 +646,7 @@ def __init__(self, *args, **kwargs): def test_additional_properties(self): """Test additional properties.""" - basic_xml = ET.fromstring( - """ + basic_xml = ET.fromstring(""" test text @@ -672,8 +659,7 @@ def test_additional_properties(self): a b - """ - ) + """) class XmlModel(Model): name: str = rest_field(name="name", xml={"name": "Name"}) @@ -696,15 +682,13 @@ def __init__(self, *args, **kwargs): def test_list_wrapped_basic_types(self): """Test XML list and wrap, items is basic type and there is no itemsName.""" - basic_xml = ET.fromstring( - """ + basic_xml = ET.fromstring(""" granny fuji - """ - ) + """) class AppleBarrel(Model): good_apples: List[str] = rest_field(name="GoodApples", xml={"name": "GoodApples"}) @@ -720,13 +704,11 @@ def __init__(self, *args, **kwargs): def test_list_not_wrapped_basic_types(self): """Test XML list and no wrap, items is basic type and there is no itemsName.""" - basic_xml = ET.fromstring( - """ + basic_xml = ET.fromstring(""" granny fuji - """ - ) + """) class AppleBarrel(Model): good_apples: List[str] = rest_field(name="GoodApples", xml={"name": "GoodApples", "unwrapped": True}) @@ -742,15 +724,13 @@ def __init__(self, *args, **kwargs): def test_list_wrapped_basic_types_items_name(self): """Test XML list and wrap, items is basic type and itemsName.""" - basic_xml = ET.fromstring( - """ + basic_xml = ET.fromstring(""" granny fuji - """ - ) + """) class AppleBarrel(Model): good_apples: List[str] = rest_field(name="GoodApples", xml={"name": "GoodApples", "itemsName": "string"}) @@ -766,13 +746,11 @@ def __init__(self, *args, **kwargs): def test_list_not_wrapped_basic_types_items_name(self): """Test XML list and no wrap, items is basic type and itemsName.""" - basic_xml = ET.fromstring( - """ + basic_xml = ET.fromstring(""" granny fuji - """ - ) + """) class AppleBarrel(Model): good_apples: List[str] = rest_field( @@ -791,15 +769,13 @@ def __init__(self, *args, **kwargs): def test_list_wrapped_complex_types(self): """Test XML list and wrap, items is ref.""" - basic_xml = ET.fromstring( - """ + basic_xml = ET.fromstring(""" - """ - ) + """) class Apple(Model): name: str = rest_field(name="name", xml={"name": "name", "attribute": True}) @@ -824,13 +800,11 @@ def __init__(self, *args, **kwargs): def test_list_not_wrapped_complex_types(self): """Test XML list and wrap, items is ref.""" - basic_xml = ET.fromstring( - """ + basic_xml = ET.fromstring(""" - """ - ) + """) class Apple(Model): name: str = rest_field(name="name", xml={"name": "name", "attribute": True}) @@ -852,13 +826,11 @@ def __init__(self, *args, **kwargs): def test_two_complex_same_type(self): """Two different attribute are same type""" - basic_xml = ET.fromstring( - """ + basic_xml = ET.fromstring(""" - """ - ) + """) class Apple(Model): name: str = rest_field(name="name", xml={"name": "name", "attribute": True}) @@ -883,12 +855,10 @@ def __init__(self, *args, **kwargs): def test_basic_namespace(self): """Test an ultra basic XML.""" - basic_xml = ET.fromstring( - """ + basic_xml = ET.fromstring(""" 37 - """ - ) + """) class XmlModel(Model): age: int = rest_field( @@ -912,8 +882,7 @@ def __init__(self, *args, **kwargs): def test_complex_namespace(self): """Test recursive namespace.""" - basic_xml = ET.fromstring( - """ + basic_xml = ET.fromstring(""" lmazuel @@ -926,8 +895,7 @@ def test_complex_namespace(self): 12 - """ - ) + """) class QueueDescriptionResponseAuthor(Model): name: str = rest_field(name="name", xml={"ns": "http://www.w3.org/2005/Atom"}) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7083315edb..0688616269 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,8 +60,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3Mjk2OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.24.1.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3Mjk2OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.24.1.tgz(b7kju2kdalb6htbnfimb5jihti) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz(fpysnt7f3pgbk22mjttakmvqoq) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -82,8 +82,8 @@ importers: packages/typespec-python: dependencies: '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3Mjk2OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.24.1.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3Mjk2OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.24.1.tgz(b7kju2kdalb6htbnfimb5jihti) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz(fpysnt7f3pgbk22mjttakmvqoq) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -98,11 +98,11 @@ importers: version: 4.19.3 devDependencies: '@azure-tools/azure-http-specs': - specifier: 0.1.0-alpha.35 - version: 0.1.0-alpha.35(76dotbmzpfj2ua2zbinupv72ei) + specifier: 0.1.0-alpha.36 + version: 0.1.0-alpha.36(76dotbmzpfj2ua2zbinupv72ei) '@azure-tools/typespec-autorest': specifier: ~0.64.0 - version: 0.64.0(e7zqujppjhxxhi2vffxj66uj3a) + version: 0.64.0(gpbco6yp7cse7qghgptwfjj7r4) '@azure-tools/typespec-azure-core': specifier: ~0.64.0 version: 0.64.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))(@typespec/rest@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))) @@ -111,10 +111,10 @@ importers: version: 0.64.0(musqkchxaiwlrfknjzwcx7owku) '@azure-tools/typespec-azure-rulesets': specifier: ~0.64.0 - version: 0.64.0(@azure-tools/typespec-azure-core@0.64.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))(@typespec/rest@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))))(@azure-tools/typespec-azure-resource-manager@0.64.0(musqkchxaiwlrfknjzwcx7owku))(@azure-tools/typespec-client-generator-core@0.64.1(7qbtfjmv7njzcmhkwsmpv6cgrq))(@typespec/compiler@1.8.0(@types/node@24.1.0)) + version: 0.64.0(@azure-tools/typespec-azure-core@0.64.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))(@typespec/rest@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))))(@azure-tools/typespec-azure-resource-manager@0.64.0(musqkchxaiwlrfknjzwcx7owku))(@azure-tools/typespec-client-generator-core@0.64.2(7qbtfjmv7njzcmhkwsmpv6cgrq))(@typespec/compiler@1.8.0(@types/node@24.1.0)) '@azure-tools/typespec-client-generator-core': - specifier: ~0.64.1 - version: 0.64.1(7qbtfjmv7njzcmhkwsmpv6cgrq) + specifier: ~0.64.2 + version: 0.64.2(7qbtfjmv7njzcmhkwsmpv6cgrq) '@types/fs-extra': specifier: 11.0.4 version: 11.0.4 @@ -209,8 +209,8 @@ packages: resolution: {integrity: sha512-T21naRb6JDdjjn2s/zwr9iCIv/9jviL/PRtiWAhi+3UA2WKH2wrId2VqJa4uVD7iEV8BLkuGgFmMkaMBG26hFw==} engines: {node: '>=12.0.0'} - '@azure-tools/azure-http-specs@0.1.0-alpha.35': - resolution: {integrity: sha512-ECvGts/kO4+5vpDVwZayk3RGhzsX5Ouwctjhv16Gd/jmKY6S9voGWqR23IfD9QjrsLCyoUVwljIZQrOfqv4HwQ==} + '@azure-tools/azure-http-specs@0.1.0-alpha.36': + resolution: {integrity: sha512-tn6qiiTA+ToLmOqj4CSJNAbeuSUj6hIRiXzDhR8b7jilFLnXQ2MYKnJNnjL2O/CDd0utWUqg/2kNlQitSLnxmA==} engines: {node: '>=20.0.0'} peerDependencies: '@azure-tools/typespec-azure-core': ^0.64.0 @@ -265,8 +265,8 @@ packages: '@azure-tools/typespec-client-generator-core': ^0.64.0 '@typespec/compiler': ^1.8.0 - '@azure-tools/typespec-client-generator-core@0.64.1': - resolution: {integrity: sha512-u1iWLergQmNG/0Wk3wVjCj/Q9cxUlxLGnLhd0hr3H1Wy1xvg7mLRaH+a62J//wvUZYBQsz1XGnm2QnksAzAdzg==} + '@azure-tools/typespec-client-generator-core@0.64.2': + resolution: {integrity: sha512-1y5YNnMWQXQjjinmAINP9BpV8U5KBdgw/sqFZbtaoJ/gOQynG8TR1xQGgVbkg/sfiMlTYSiL8ru1efO7vHVuMA==} engines: {node: '>=20.0.0'} peerDependencies: '@azure-tools/typespec-azure-core': ^0.64.0 @@ -1698,16 +1698,16 @@ packages: peerDependencies: '@typespec/compiler': ^1.8.0 - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3Mjk2OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.24.1.tgz': - resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3Mjk2OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.24.1.tgz} - version: 0.24.1 + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz': + resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz} + version: 0.25.0 engines: {node: '>=20.0.0'} peerDependencies: '@azure-tools/typespec-autorest': '>=0.64.0 <1.0.0' '@azure-tools/typespec-azure-core': '>=0.64.0 <1.0.0' '@azure-tools/typespec-azure-resource-manager': '>=0.64.0 <1.0.0' '@azure-tools/typespec-azure-rulesets': '>=0.64.0 <1.0.0' - '@azure-tools/typespec-client-generator-core': '>=0.64.1 <1.0.0' + '@azure-tools/typespec-client-generator-core': '>=0.64.2 <1.0.0' '@typespec/compiler': ^1.8.0 '@typespec/events': '>=0.78.0 <1.0.0' '@typespec/http': ^1.8.0 @@ -4909,7 +4909,7 @@ snapshots: command-exists: 1.2.9 semver: 7.6.3 - '@azure-tools/azure-http-specs@0.1.0-alpha.35(76dotbmzpfj2ua2zbinupv72ei)': + '@azure-tools/azure-http-specs@0.1.0-alpha.36(76dotbmzpfj2ua2zbinupv72ei)': dependencies: '@azure-tools/typespec-azure-core': 0.64.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))(@typespec/rest@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))) '@typespec/compiler': 1.8.0(@types/node@24.1.0) @@ -4924,11 +4924,11 @@ snapshots: - '@typespec/streams' - supports-color - '@azure-tools/typespec-autorest@0.64.0(e7zqujppjhxxhi2vffxj66uj3a)': + '@azure-tools/typespec-autorest@0.64.0(gpbco6yp7cse7qghgptwfjj7r4)': dependencies: '@azure-tools/typespec-azure-core': 0.64.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))(@typespec/rest@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))) '@azure-tools/typespec-azure-resource-manager': 0.64.0(musqkchxaiwlrfknjzwcx7owku) - '@azure-tools/typespec-client-generator-core': 0.64.1(7qbtfjmv7njzcmhkwsmpv6cgrq) + '@azure-tools/typespec-client-generator-core': 0.64.2(7qbtfjmv7njzcmhkwsmpv6cgrq) '@typespec/compiler': 1.8.0(@types/node@24.1.0) '@typespec/http': 1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))) '@typespec/openapi': 1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0)))) @@ -4954,14 +4954,14 @@ snapshots: change-case: 5.4.4 pluralize: 8.0.0 - '@azure-tools/typespec-azure-rulesets@0.64.0(@azure-tools/typespec-azure-core@0.64.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))(@typespec/rest@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))))(@azure-tools/typespec-azure-resource-manager@0.64.0(musqkchxaiwlrfknjzwcx7owku))(@azure-tools/typespec-client-generator-core@0.64.1(7qbtfjmv7njzcmhkwsmpv6cgrq))(@typespec/compiler@1.8.0(@types/node@24.1.0))': + '@azure-tools/typespec-azure-rulesets@0.64.0(@azure-tools/typespec-azure-core@0.64.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))(@typespec/rest@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))))(@azure-tools/typespec-azure-resource-manager@0.64.0(musqkchxaiwlrfknjzwcx7owku))(@azure-tools/typespec-client-generator-core@0.64.2(7qbtfjmv7njzcmhkwsmpv6cgrq))(@typespec/compiler@1.8.0(@types/node@24.1.0))': dependencies: '@azure-tools/typespec-azure-core': 0.64.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))(@typespec/rest@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))) '@azure-tools/typespec-azure-resource-manager': 0.64.0(musqkchxaiwlrfknjzwcx7owku) - '@azure-tools/typespec-client-generator-core': 0.64.1(7qbtfjmv7njzcmhkwsmpv6cgrq) + '@azure-tools/typespec-client-generator-core': 0.64.2(7qbtfjmv7njzcmhkwsmpv6cgrq) '@typespec/compiler': 1.8.0(@types/node@24.1.0) - '@azure-tools/typespec-client-generator-core@0.64.1(7qbtfjmv7njzcmhkwsmpv6cgrq)': + '@azure-tools/typespec-client-generator-core@0.64.2(7qbtfjmv7njzcmhkwsmpv6cgrq)': dependencies: '@azure-tools/typespec-azure-core': 0.64.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))(@typespec/rest@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))) '@typespec/compiler': 1.8.0(@types/node@24.1.0) @@ -6510,13 +6510,13 @@ snapshots: dependencies: '@typespec/compiler': 1.8.0(@types/node@24.1.0) - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3Mjk2OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.24.1.tgz(b7kju2kdalb6htbnfimb5jihti)': + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz(fpysnt7f3pgbk22mjttakmvqoq)': dependencies: - '@azure-tools/typespec-autorest': 0.64.0(e7zqujppjhxxhi2vffxj66uj3a) + '@azure-tools/typespec-autorest': 0.64.0(gpbco6yp7cse7qghgptwfjj7r4) '@azure-tools/typespec-azure-core': 0.64.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))(@typespec/rest@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))) '@azure-tools/typespec-azure-resource-manager': 0.64.0(musqkchxaiwlrfknjzwcx7owku) - '@azure-tools/typespec-azure-rulesets': 0.64.0(@azure-tools/typespec-azure-core@0.64.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))(@typespec/rest@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))))(@azure-tools/typespec-azure-resource-manager@0.64.0(musqkchxaiwlrfknjzwcx7owku))(@azure-tools/typespec-client-generator-core@0.64.1(7qbtfjmv7njzcmhkwsmpv6cgrq))(@typespec/compiler@1.8.0(@types/node@24.1.0)) - '@azure-tools/typespec-client-generator-core': 0.64.1(7qbtfjmv7njzcmhkwsmpv6cgrq) + '@azure-tools/typespec-azure-rulesets': 0.64.0(@azure-tools/typespec-azure-core@0.64.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))(@typespec/rest@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))))(@azure-tools/typespec-azure-resource-manager@0.64.0(musqkchxaiwlrfknjzwcx7owku))(@azure-tools/typespec-client-generator-core@0.64.2(7qbtfjmv7njzcmhkwsmpv6cgrq))(@typespec/compiler@1.8.0(@types/node@24.1.0)) + '@azure-tools/typespec-client-generator-core': 0.64.2(7qbtfjmv7njzcmhkwsmpv6cgrq) '@typespec/compiler': 1.8.0(@types/node@24.1.0) '@typespec/events': 0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0)) '@typespec/http': 1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))) From ad08726b586e2959a104306925a55227ba6fab25 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Thu, 22 Jan 2026 01:34:22 +0000 Subject: [PATCH 3/4] Regenerate for autorest.python (2026-01-22 01:34:22) --- .../test_model_base_xml_serialization.py | 92 +++++++++++++------ 1 file changed, 62 insertions(+), 30 deletions(-) diff --git a/packages/typespec-python/test/generic_mock_api_tests/unittests/test_model_base_xml_serialization.py b/packages/typespec-python/test/generic_mock_api_tests/unittests/test_model_base_xml_serialization.py index 12011df99b..78912e305b 100644 --- a/packages/typespec-python/test/generic_mock_api_tests/unittests/test_model_base_xml_serialization.py +++ b/packages/typespec-python/test/generic_mock_api_tests/unittests/test_model_base_xml_serialization.py @@ -523,10 +523,12 @@ def __init__(self, *args, **kwargs): class TestXmlSerialization: def test_basic(self): """Test an ultra basic XML.""" - basic_xml = ET.fromstring(""" + basic_xml = ET.fromstring( + """ 37 - """) + """ + ) class XmlModel(Model): age: int = rest_field(xml={"name": "Age"}) @@ -542,8 +544,12 @@ def __init__(self, *args, **kwargs): def test_basic_unicode(self): """Test a XML with unicode.""" - basic_xml = ET.fromstring(""" - """.encode("utf-8")) + basic_xml = ET.fromstring( + """ + """.encode( + "utf-8" + ) + ) class XmlModel(Model): language: str = rest_field(xml={"name": "language", "attribute": True}) @@ -583,11 +589,13 @@ def __init__(self, *args, **kwargs): def test_type_basic(self): """Test basic types.""" - basic_xml = ET.fromstring(""" + basic_xml = ET.fromstring( + """ 37 true - """) + """ + ) class XmlModel(Model): age: int = rest_field(name="age", xml={"name": "Age"}) @@ -603,8 +611,10 @@ def __init__(self, *args, **kwargs): def test_basic_text(self): """Test a XML with unicode.""" - basic_xml = ET.fromstring(""" - I am text""") + basic_xml = ET.fromstring( + """ + I am text""" + ) class XmlModel(Model): language: str = rest_field(name="language", xml={"name": "language", "attribute": True}) @@ -620,13 +630,15 @@ def __init__(self, *args, **kwargs): def test_dict_type(self): """Test dict type.""" - basic_xml = ET.fromstring(""" + basic_xml = ET.fromstring( + """ value1 value2 - """) + """ + ) class XmlModel(Model): metadata: Dict[str, str] = rest_field(name="Metadata", xml={"name": "Metadata"}) @@ -646,7 +658,8 @@ def __init__(self, *args, **kwargs): def test_additional_properties(self): """Test additional properties.""" - basic_xml = ET.fromstring(""" + basic_xml = ET.fromstring( + """ test text @@ -659,7 +672,8 @@ def test_additional_properties(self): a b - """) + """ + ) class XmlModel(Model): name: str = rest_field(name="name", xml={"name": "Name"}) @@ -682,13 +696,15 @@ def __init__(self, *args, **kwargs): def test_list_wrapped_basic_types(self): """Test XML list and wrap, items is basic type and there is no itemsName.""" - basic_xml = ET.fromstring(""" + basic_xml = ET.fromstring( + """ granny fuji - """) + """ + ) class AppleBarrel(Model): good_apples: List[str] = rest_field(name="GoodApples", xml={"name": "GoodApples"}) @@ -704,11 +720,13 @@ def __init__(self, *args, **kwargs): def test_list_not_wrapped_basic_types(self): """Test XML list and no wrap, items is basic type and there is no itemsName.""" - basic_xml = ET.fromstring(""" + basic_xml = ET.fromstring( + """ granny fuji - """) + """ + ) class AppleBarrel(Model): good_apples: List[str] = rest_field(name="GoodApples", xml={"name": "GoodApples", "unwrapped": True}) @@ -724,13 +742,15 @@ def __init__(self, *args, **kwargs): def test_list_wrapped_basic_types_items_name(self): """Test XML list and wrap, items is basic type and itemsName.""" - basic_xml = ET.fromstring(""" + basic_xml = ET.fromstring( + """ granny fuji - """) + """ + ) class AppleBarrel(Model): good_apples: List[str] = rest_field(name="GoodApples", xml={"name": "GoodApples", "itemsName": "string"}) @@ -746,11 +766,13 @@ def __init__(self, *args, **kwargs): def test_list_not_wrapped_basic_types_items_name(self): """Test XML list and no wrap, items is basic type and itemsName.""" - basic_xml = ET.fromstring(""" + basic_xml = ET.fromstring( + """ granny fuji - """) + """ + ) class AppleBarrel(Model): good_apples: List[str] = rest_field( @@ -769,13 +791,15 @@ def __init__(self, *args, **kwargs): def test_list_wrapped_complex_types(self): """Test XML list and wrap, items is ref.""" - basic_xml = ET.fromstring(""" + basic_xml = ET.fromstring( + """ - """) + """ + ) class Apple(Model): name: str = rest_field(name="name", xml={"name": "name", "attribute": True}) @@ -800,11 +824,13 @@ def __init__(self, *args, **kwargs): def test_list_not_wrapped_complex_types(self): """Test XML list and wrap, items is ref.""" - basic_xml = ET.fromstring(""" + basic_xml = ET.fromstring( + """ - """) + """ + ) class Apple(Model): name: str = rest_field(name="name", xml={"name": "name", "attribute": True}) @@ -826,11 +852,13 @@ def __init__(self, *args, **kwargs): def test_two_complex_same_type(self): """Two different attribute are same type""" - basic_xml = ET.fromstring(""" + basic_xml = ET.fromstring( + """ - """) + """ + ) class Apple(Model): name: str = rest_field(name="name", xml={"name": "name", "attribute": True}) @@ -855,10 +883,12 @@ def __init__(self, *args, **kwargs): def test_basic_namespace(self): """Test an ultra basic XML.""" - basic_xml = ET.fromstring(""" + basic_xml = ET.fromstring( + """ 37 - """) + """ + ) class XmlModel(Model): age: int = rest_field( @@ -882,7 +912,8 @@ def __init__(self, *args, **kwargs): def test_complex_namespace(self): """Test recursive namespace.""" - basic_xml = ET.fromstring(""" + basic_xml = ET.fromstring( + """ lmazuel @@ -895,7 +926,8 @@ def test_complex_namespace(self): 12 - """) + """ + ) class QueueDescriptionResponseAuthor(Model): name: str = rest_field(name="name", xml={"ns": "http://www.w3.org/2005/Atom"}) From ef23d909bf52a39d6f588eba88ce482e556a7a1f Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Thu, 22 Jan 2026 15:25:32 +0800 Subject: [PATCH 4/4] bump version --- ...add-test-case-http-client-2026-0-19-7-35-17.md | 8 -------- ...t-case-http-client-python-2026-0-15-4-53-44.md | 8 -------- .../python-fix-nightly-2026-0-20-15-4-26.md | 8 -------- packages/autorest.python/CHANGELOG.md | 11 +++++++++++ packages/autorest.python/package.json | 6 +++--- packages/typespec-python/CHANGELOG.md | 11 +++++++++++ packages/typespec-python/package.json | 6 +++--- pnpm-lock.yaml | 15 +++++++-------- 8 files changed, 35 insertions(+), 38 deletions(-) delete mode 100644 .chronus/changes/copilot-add-test-case-http-client-2026-0-19-7-35-17.md delete mode 100644 .chronus/changes/copilot-add-test-case-http-client-python-2026-0-15-4-53-44.md delete mode 100644 .chronus/changes/python-fix-nightly-2026-0-20-15-4-26.md diff --git a/.chronus/changes/copilot-add-test-case-http-client-2026-0-19-7-35-17.md b/.chronus/changes/copilot-add-test-case-http-client-2026-0-19-7-35-17.md deleted file mode 100644 index 08a2fcd328..0000000000 --- a/.chronus/changes/copilot-add-test-case-http-client-2026-0-19-7-35-17.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -changeKind: feature -packages: - - "@autorest/python" - - "@azure-tools/typespec-python" ---- - -Support enum type for array encode \ No newline at end of file diff --git a/.chronus/changes/copilot-add-test-case-http-client-python-2026-0-15-4-53-44.md b/.chronus/changes/copilot-add-test-case-http-client-python-2026-0-15-4-53-44.md deleted file mode 100644 index c2f9218c34..0000000000 --- a/.chronus/changes/copilot-add-test-case-http-client-python-2026-0-15-4-53-44.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -changeKind: internal -packages: - - "@autorest/python" - - "@azure-tools/typespec-python" ---- - -Add test case \ No newline at end of file diff --git a/.chronus/changes/python-fix-nightly-2026-0-20-15-4-26.md b/.chronus/changes/python-fix-nightly-2026-0-20-15-4-26.md deleted file mode 100644 index db0a37c1b4..0000000000 --- a/.chronus/changes/python-fix-nightly-2026-0-20-15-4-26.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -changeKind: fix -packages: - - "@autorest/python" - - "@azure-tools/typespec-python" ---- - -support "apiVersions" of TCGC metadata \ No newline at end of file diff --git a/packages/autorest.python/CHANGELOG.md b/packages/autorest.python/CHANGELOG.md index 1b26dd09fa..6eebf1a7b9 100644 --- a/packages/autorest.python/CHANGELOG.md +++ b/packages/autorest.python/CHANGELOG.md @@ -1,5 +1,16 @@ # Release +## 6.47.0 + +### Features + +- [#3302](https://github.com/Azure/autorest.python/pull/3302) Support enum type for array encode + +### Bug Fixes + +- [#3304](https://github.com/Azure/autorest.python/pull/3304) support "apiVersions" of TCGC metadata + + ## 6.46.1 ### Bug Fixes diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index 0ac36ecf60..6d766f627d 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -1,6 +1,6 @@ { "name": "@autorest/python", - "version": "6.46.1", + "version": "6.47.0", "description": "The Python extension for generators in AutoRest.", "scripts": { "start": "node ./scripts/run-python3.js ./scripts/start.py", @@ -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/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz", + "@typespec/http-client-python": "~0.25.0", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" @@ -47,4 +47,4 @@ "requirements.txt", "generator/" ] -} \ No newline at end of file +} diff --git a/packages/typespec-python/CHANGELOG.md b/packages/typespec-python/CHANGELOG.md index 1d8a7c49a9..501afe8162 100644 --- a/packages/typespec-python/CHANGELOG.md +++ b/packages/typespec-python/CHANGELOG.md @@ -1,5 +1,16 @@ # Release +## 0.58.0 + +### Features + +- [#3302](https://github.com/Azure/autorest.python/pull/3302) Support enum type for array encode + +### Bug Fixes + +- [#3304](https://github.com/Azure/autorest.python/pull/3304) support "apiVersions" of TCGC metadata + + ## 0.57.1 ### Bug Fixes diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index 08fb07e04d..7af7e2653c 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -1,6 +1,6 @@ { "name": "@azure-tools/typespec-python", - "version": "0.57.1", + "version": "0.58.0", "author": "Microsoft Corporation", "description": "TypeSpec emitter for Python SDKs", "homepage": "https://github.com/Azure/autorest.python", @@ -67,7 +67,7 @@ "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/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz", + "@typespec/http-client-python": "~0.25.0", "fs-extra": "~11.2.0" }, "devDependencies": { @@ -103,4 +103,4 @@ "chalk": "5.3.0", "@types/fs-extra": "11.0.4" } -} \ No newline at end of file +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0688616269..e22cb01c89 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,8 +60,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz(fpysnt7f3pgbk22mjttakmvqoq) + specifier: ~0.25.0 + version: 0.25.0(fpysnt7f3pgbk22mjttakmvqoq) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -82,8 +82,8 @@ importers: packages/typespec-python: dependencies: '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz(fpysnt7f3pgbk22mjttakmvqoq) + specifier: ~0.25.0 + version: 0.25.0(fpysnt7f3pgbk22mjttakmvqoq) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1698,9 +1698,8 @@ packages: peerDependencies: '@typespec/compiler': ^1.8.0 - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz': - resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz} - version: 0.25.0 + '@typespec/http-client-python@0.25.0': + resolution: {integrity: sha512-W8Iw/Z95JQsliUM10DYXmz3SsRNoikizm4HIF5mEe8mzB25RxG+OxeAFD84JrZPBa7e60HWo5Hys4yiz1efCHA==} engines: {node: '>=20.0.0'} peerDependencies: '@azure-tools/typespec-autorest': '>=0.64.0 <1.0.0' @@ -6510,7 +6509,7 @@ snapshots: dependencies: '@typespec/compiler': 1.8.0(@types/node@24.1.0) - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTc3ODk2Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.25.0.tgz(fpysnt7f3pgbk22mjttakmvqoq)': + '@typespec/http-client-python@0.25.0(fpysnt7f3pgbk22mjttakmvqoq)': dependencies: '@azure-tools/typespec-autorest': 0.64.0(gpbco6yp7cse7qghgptwfjj7r4) '@azure-tools/typespec-azure-core': 0.64.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))))(@typespec/rest@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/http@1.8.0(@typespec/compiler@1.8.0(@types/node@24.1.0))(@typespec/streams@0.78.0(@typespec/compiler@1.8.0(@types/node@24.1.0)))))