From 142283561992a9cc56a997d4c9e7922d62925347 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 6 Aug 2025 10:25:44 +0800 Subject: [PATCH 1/2] bump http-client-python-version --- packages/autorest.python/package.json | 2 +- packages/typespec-python/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index 0dedec00684..777326a600a 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/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4MDYwNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.14.2.tgz", + "@typespec/http-client-python": "~0.15.0", "@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 a8dc693ebbf..dc742e08c50 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -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/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4MDYwNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.14.2.tgz", + "@typespec/http-client-python": "~0.15.0", "fs-extra": "~11.2.0" }, "devDependencies": { From 92095ab1b1ceb392d931ab1c7fb8bdd84c4a3ee9 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 6 Aug 2025 10:28:16 +0800 Subject: [PATCH 2/2] add changelog --- ...ython-add-pyproject-toml-2025-6-21-14-58-56.md | 8 -------- .../generation_subdir-2025-7-5-11-32-14.md | 7 ------- .../generation_subdir-2025-7-5-11-32-25.md | 7 ------- .../changes/test-2025-08-05-2025-7-5-11-26-35.md | 8 -------- packages/autorest.python/CHANGELOG.md | 15 +++++++++++++++ packages/autorest.python/package.json | 2 +- packages/typespec-python/CHANGELOG.md | 12 ++++++++++++ packages/typespec-python/package.json | 2 +- pnpm-lock.yaml | 15 +++++++-------- 9 files changed, 36 insertions(+), 40 deletions(-) delete mode 100644 .chronus/changes/auto-swathipil-http-client-python-add-pyproject-toml-2025-6-21-14-58-56.md delete mode 100644 .chronus/changes/generation_subdir-2025-7-5-11-32-14.md delete mode 100644 .chronus/changes/generation_subdir-2025-7-5-11-32-25.md delete mode 100644 .chronus/changes/test-2025-08-05-2025-7-5-11-26-35.md diff --git a/.chronus/changes/auto-swathipil-http-client-python-add-pyproject-toml-2025-6-21-14-58-56.md b/.chronus/changes/auto-swathipil-http-client-python-add-pyproject-toml-2025-6-21-14-58-56.md deleted file mode 100644 index 0975d74ba7d..00000000000 --- a/.chronus/changes/auto-swathipil-http-client-python-add-pyproject-toml-2025-6-21-14-58-56.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -changeKind: feature -packages: - - "@autorest/python" - - "@azure-tools/typespec-python" ---- - -Add pyproject.toml generation by default \ No newline at end of file diff --git a/.chronus/changes/generation_subdir-2025-7-5-11-32-14.md b/.chronus/changes/generation_subdir-2025-7-5-11-32-14.md deleted file mode 100644 index 75b8fba4c5e..00000000000 --- a/.chronus/changes/generation_subdir-2025-7-5-11-32-14.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: dependencies -packages: - - "@autorest/python" ---- - -Bump `http-client-python` dep \ No newline at end of file diff --git a/.chronus/changes/generation_subdir-2025-7-5-11-32-25.md b/.chronus/changes/generation_subdir-2025-7-5-11-32-25.md deleted file mode 100644 index 638b8bff3e4..00000000000 --- a/.chronus/changes/generation_subdir-2025-7-5-11-32-25.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: feature -packages: - - "@azure-tools/typespec-python" ---- - -Add support for `generation-subdir` \ No newline at end of file diff --git a/.chronus/changes/test-2025-08-05-2025-7-5-11-26-35.md b/.chronus/changes/test-2025-08-05-2025-7-5-11-26-35.md deleted file mode 100644 index 3bee3a52d3f..00000000000 --- a/.chronus/changes/test-2025-08-05-2025-7-5-11-26-35.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -changeKind: fix -packages: - - "@autorest/python" - - "@azure-tools/typespec-python" ---- - -Don't hardcode `emit-cross-language-definition-file` as `true` for azure generations \ No newline at end of file diff --git a/packages/autorest.python/CHANGELOG.md b/packages/autorest.python/CHANGELOG.md index 7c8b8e2c9ca..b0dc4e607d7 100644 --- a/packages/autorest.python/CHANGELOG.md +++ b/packages/autorest.python/CHANGELOG.md @@ -1,5 +1,20 @@ # Release +## 6.38.0 + +### Features + +- [#3131](https://github.com/Azure/autorest.python/pull/3131) Add pyproject.toml generation by default + +### Bump dependencies + +- [#3156](https://github.com/Azure/autorest.python/pull/3156) Bump `http-client-python` dep + +### Bug Fixes + +- [#3157](https://github.com/Azure/autorest.python/pull/3157) Don't hardcode `emit-cross-language-definition-file` as `true` for azure generations + + ## 6.37.2 ### Bug Fixes diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index 777326a600a..a8b278fdcb6 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -1,6 +1,6 @@ { "name": "@autorest/python", - "version": "6.37.2", + "version": "6.38.0", "description": "The Python extension for generators in AutoRest.", "scripts": { "start": "node ./scripts/run-python3.js ./scripts/start.py", diff --git a/packages/typespec-python/CHANGELOG.md b/packages/typespec-python/CHANGELOG.md index 1b804d37bd7..30f1af4001e 100644 --- a/packages/typespec-python/CHANGELOG.md +++ b/packages/typespec-python/CHANGELOG.md @@ -1,5 +1,17 @@ # Release +## 0.48.0 + +### Features + +- [#3131](https://github.com/Azure/autorest.python/pull/3131) Add pyproject.toml generation by default +- [#3156](https://github.com/Azure/autorest.python/pull/3156) Add support for `generation-subdir` + +### Bug Fixes + +- [#3157](https://github.com/Azure/autorest.python/pull/3157) Don't hardcode `emit-cross-language-definition-file` as `true` for azure generations + + ## 0.47.2 ### Bug Fixes diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index dc742e08c50..6d0d7ca6b87 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -1,6 +1,6 @@ { "name": "@azure-tools/typespec-python", - "version": "0.47.2", + "version": "0.48.0", "author": "Microsoft Corporation", "description": "TypeSpec emitter for Python SDKs", "homepage": "https://github.com/Azure/autorest.python", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cff07d2980f..008b26483e7 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/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4MDYwNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.14.2.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4MDYwNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.14.2.tgz(iurth4uuk4s6znzuuc7ncenk2q) + specifier: ~0.15.0 + version: 0.15.0(iurth4uuk4s6znzuuc7ncenk2q) 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/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4MDYwNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.14.2.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4MDYwNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.14.2.tgz(iurth4uuk4s6znzuuc7ncenk2q) + specifier: ~0.15.0 + version: 0.15.0(iurth4uuk4s6znzuuc7ncenk2q) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1668,9 +1668,8 @@ packages: peerDependencies: '@typespec/compiler': ^1.2.1 - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4MDYwNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.14.2.tgz': - resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4MDYwNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.14.2.tgz} - version: 0.14.2 + '@typespec/http-client-python@0.15.0': + resolution: {integrity: sha512-lnyg7bgzxdILhUV+HJGbKuRDphZipe7jJYfvFoklq0eapAFmgwf4gp/XMnnrFLs/++3QZ9QFVIyuqzMPW8yG+Q==} engines: {node: '>=20.0.0'} peerDependencies: '@azure-tools/typespec-autorest': '>=0.58.0 <1.0.0' @@ -6422,7 +6421,7 @@ snapshots: dependencies: '@typespec/compiler': 1.2.1(@types/node@22.13.17) - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTE4MDYwNC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.14.2.tgz(iurth4uuk4s6znzuuc7ncenk2q)': + '@typespec/http-client-python@0.15.0(iurth4uuk4s6znzuuc7ncenk2q)': dependencies: '@azure-tools/typespec-autorest': 0.58.0(vddu6w2yloigenmssnpyjivoim) '@azure-tools/typespec-azure-core': 0.58.0(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))))(@typespec/rest@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/http@1.2.1(@typespec/compiler@1.2.1(@types/node@22.13.17))(@typespec/streams@0.72.1(@typespec/compiler@1.2.1(@types/node@22.13.17)))))