diff --git a/.chronus/changes/HEAD-2025-0-23-15-44-58.md b/.chronus/changes/HEAD-2025-0-23-15-44-58.md deleted file mode 100644 index bca145530fb..00000000000 --- a/.chronus/changes/HEAD-2025-0-23-15-44-58.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: internal -packages: - - "@autorest/python" ---- - -pylint bump \ No newline at end of file diff --git a/.chronus/changes/HEAD-2025-0-23-15-45-7.md b/.chronus/changes/HEAD-2025-0-23-15-45-7.md deleted file mode 100644 index 30e2f62dd6b..00000000000 --- a/.chronus/changes/HEAD-2025-0-23-15-45-7.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: internal -packages: - - "@azure-tools/typespec-python" ---- - -pylint bump \ No newline at end of file diff --git a/packages/autorest.python/CHANGELOG.md b/packages/autorest.python/CHANGELOG.md index b063be129e3..dd300337ac3 100644 --- a/packages/autorest.python/CHANGELOG.md +++ b/packages/autorest.python/CHANGELOG.md @@ -1,5 +1,9 @@ # Release +## 6.28.3 + +No changes, version bump only. + ## 6.28.2 diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index 72b15adbfea..a4d3c9cde1c 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -1,6 +1,6 @@ { "name": "@autorest/python", - "version": "6.28.2", + "version": "6.28.3", "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": "~0.6.9", + "@typespec/http-client-python": "~0.6.10", "@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 15791e7891d..b0718dd9bd2 100644 --- a/packages/typespec-python/CHANGELOG.md +++ b/packages/typespec-python/CHANGELOG.md @@ -1,5 +1,9 @@ # Release +## 0.38.3 + +- [#3038](https://github.com/Azure/autorest.python/pull/3038) Fix crash when value of `--package-pprint-name` contains space + ## 0.38.2 ### Bug Fixes diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index 3d6cf29e5e6..25339a8708e 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -1,6 +1,6 @@ { "name": "@azure-tools/typespec-python", - "version": "0.38.2", + "version": "0.38.3", "author": "Microsoft Corporation", "description": "TypeSpec emitter for Python SDKs", "homepage": "https://github.com/Azure/autorest.python", @@ -60,7 +60,7 @@ "js-yaml": "~4.1.0", "semver": "~7.6.2", "tsx": "~4.19.1", - "@typespec/http-client-python": "~0.6.9", + "@typespec/http-client-python": "~0.6.10", "fs-extra": "~11.2.0" }, "devDependencies": { @@ -75,7 +75,7 @@ "@azure-tools/typespec-autorest": "~0.50.0", "@azure-tools/typespec-client-generator-core": "~0.50.2", "@azure-tools/azure-http-specs": "0.1.0-alpha.5", - "@typespec/http-specs": "0.1.0-alpha.7", + "@typespec/http-specs": "0.1.0-alpha.8", "@types/js-yaml": "~4.0.5", "@types/node": "~22.5.4", "@types/yargs": "~17.0.33", @@ -89,4 +89,4 @@ "chalk": "5.3.0", "@types/fs-extra": "11.0.4" } -} \ No newline at end of file +} diff --git a/packages/typespec-python/scripts/eng/regenerate.ts b/packages/typespec-python/scripts/eng/regenerate.ts index e525dc9ff8d..e43dedf3b37 100644 --- a/packages/typespec-python/scripts/eng/regenerate.ts +++ b/packages/typespec-python/scripts/eng/regenerate.ts @@ -32,6 +32,7 @@ const EMITTER_OPTIONS: Record | Record { - return `--option @azure-tools/typespec-python.${k}=${v}`; + return `--option @azure-tools/typespec-python.${k}=${typeof v === "string" && v.indexOf(" ") > -1 ? `"${v}"` : v}`; }); emitterConfigs.push({ optionsStr: configs.join(" "), diff --git a/packages/typespec-python/test/azure/generated/authentication-http-custom/README.md b/packages/typespec-python/test/azure/generated/authentication-http-custom/README.md index 9b3062642be..293fb16a01f 100644 --- a/packages/typespec-python/test/azure/generated/authentication-http-custom/README.md +++ b/packages/typespec-python/test/azure/generated/authentication-http-custom/README.md @@ -1,6 +1,6 @@ -# Authentication Http Custom client library for Python +# Authentication Http Custom Service client library for Python ## Getting started @@ -15,7 +15,7 @@ python -m pip install authentication-http-custom - Python 3.8 or later is required to use this package. - You need an [Azure subscription][azure_sub] to use this package. -- An existing Authentication Http Custom instance. +- An existing Authentication Http Custom Service instance. ## Contributing diff --git a/packages/typespec-python/test/azure/generated/authentication-http-custom/setup.py b/packages/typespec-python/test/azure/generated/authentication-http-custom/setup.py index 759dbb04636..4fab1b452fb 100644 --- a/packages/typespec-python/test/azure/generated/authentication-http-custom/setup.py +++ b/packages/typespec-python/test/azure/generated/authentication-http-custom/setup.py @@ -13,7 +13,7 @@ PACKAGE_NAME = "authentication-http-custom" -PACKAGE_PPRINT_NAME = "Authentication Http Custom" +PACKAGE_PPRINT_NAME = "Authentication Http Custom Service" # a-b-c => a/b/c package_folder_path = PACKAGE_NAME.replace("-", "/") diff --git a/packages/typespec-python/test/unbranded/generated/authentication-http-custom/setup.py b/packages/typespec-python/test/unbranded/generated/authentication-http-custom/setup.py index 8c728f9a540..e98cb77b42b 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-http-custom/setup.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-http-custom/setup.py @@ -13,7 +13,7 @@ PACKAGE_NAME = "authentication-http-custom" -PACKAGE_PPRINT_NAME = "Authentication Http Custom" +PACKAGE_PPRINT_NAME = "Authentication Http Custom Service" # a-b-c => a/b/c package_folder_path = PACKAGE_NAME.replace("-", "/") diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 453a601695e..9cf99a69cb0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -57,8 +57,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: ~0.6.9 - version: 0.6.9(6gdwtcj6sqvu3zk5kjo6g4na54) + specifier: ~0.6.10 + version: 0.6.10(6gdwtcj6sqvu3zk5kjo6g4na54) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -79,8 +79,8 @@ importers: packages/typespec-python: dependencies: '@typespec/http-client-python': - specifier: ~0.6.9 - version: 0.6.9(6gdwtcj6sqvu3zk5kjo6g4na54) + specifier: ~0.6.10 + version: 0.6.10(6gdwtcj6sqvu3zk5kjo6g4na54) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -134,8 +134,8 @@ importers: specifier: ~0.64.0 version: 0.64.0(@typespec/compiler@0.64.0) '@typespec/http-specs': - specifier: 0.1.0-alpha.7 - version: 0.1.0-alpha.7(@typespec/compiler@0.64.0)(@typespec/http@0.64.0(@typespec/compiler@0.64.0))(@typespec/rest@0.64.0(@typespec/compiler@0.64.0)(@typespec/http@0.64.0(@typespec/compiler@0.64.0)))(@typespec/versioning@0.64.0(@typespec/compiler@0.64.0))(@typespec/xml@0.59.0(@typespec/compiler@0.64.0)) + specifier: 0.1.0-alpha.8 + version: 0.1.0-alpha.8(@typespec/compiler@0.64.0)(@typespec/http@0.64.0(@typespec/compiler@0.64.0))(@typespec/rest@0.64.0(@typespec/compiler@0.64.0)(@typespec/http@0.64.0(@typespec/compiler@0.64.0)))(@typespec/versioning@0.64.0(@typespec/compiler@0.64.0))(@typespec/xml@0.59.0(@typespec/compiler@0.64.0)) '@typespec/openapi': specifier: ~0.64.0 version: 0.64.0(@typespec/compiler@0.64.0)(@typespec/http@0.64.0(@typespec/compiler@0.64.0)) @@ -1388,8 +1388,8 @@ packages: engines: {node: '>=18.0.0'} hasBin: true - '@typespec/http-client-python@0.6.9': - resolution: {integrity: sha512-77n+Hcx6iMqmK/6hgN+cLUwtO3yV2gnwR/AFaLP7R8w7zjtjZm5KnaASSQKgnSSwf0DLO7/xqNTHzFweoOJFng==} + '@typespec/http-client-python@0.6.10': + resolution: {integrity: sha512-LSZbb4F853X8CwqgVGxIIgltmhSYsJhgtWQtRO5drtEA5MpTekchGyC5eljsFzk8+pHw7/KzBxz9NdCCkD0CuQ==} engines: {node: '>=18.0.0'} peerDependencies: '@azure-tools/typespec-autorest': '>=0.50.0 <1.0.0' @@ -1403,8 +1403,8 @@ packages: '@typespec/rest': '>=0.64.0 <1.0.0' '@typespec/versioning': '>=0.64.0 <1.0.0' - '@typespec/http-specs@0.1.0-alpha.7': - resolution: {integrity: sha512-FvaWiGcWPzAzPrxpZ+gkJAue99GY1mC3BSU2j1Ujy7ikECGcuQTHLwmi9xjKzS4EdZe8ZggSx6bFHm74yxtNdQ==} + '@typespec/http-specs@0.1.0-alpha.8': + resolution: {integrity: sha512-1BJfxDDYe8IoRBD2eNizG4nKfscn5G4HVHqveVHHKajUPyhTjQ97IG+BQAIrGAEBJLupQzv5hVCeA1VCgzP1qA==} engines: {node: '>=16.0.0'} peerDependencies: '@typespec/compiler': ~0.64.0 @@ -5438,7 +5438,7 @@ snapshots: yaml: 2.5.1 yargs: 17.7.2 - '@typespec/http-client-python@0.6.9(6gdwtcj6sqvu3zk5kjo6g4na54)': + '@typespec/http-client-python@0.6.10(6gdwtcj6sqvu3zk5kjo6g4na54)': dependencies: '@azure-tools/typespec-autorest': 0.50.0(ammezjnwgu4cizwmocq7itwhje) '@azure-tools/typespec-azure-core': 0.50.0(@typespec/compiler@0.64.0)(@typespec/http@0.64.0(@typespec/compiler@0.64.0))(@typespec/rest@0.64.0(@typespec/compiler@0.64.0)(@typespec/http@0.64.0(@typespec/compiler@0.64.0))) @@ -5458,7 +5458,7 @@ snapshots: - bufferutil - utf-8-validate - '@typespec/http-specs@0.1.0-alpha.7(@typespec/compiler@0.64.0)(@typespec/http@0.64.0(@typespec/compiler@0.64.0))(@typespec/rest@0.64.0(@typespec/compiler@0.64.0)(@typespec/http@0.64.0(@typespec/compiler@0.64.0)))(@typespec/versioning@0.64.0(@typespec/compiler@0.64.0))(@typespec/xml@0.59.0(@typespec/compiler@0.64.0))': + '@typespec/http-specs@0.1.0-alpha.8(@typespec/compiler@0.64.0)(@typespec/http@0.64.0(@typespec/compiler@0.64.0))(@typespec/rest@0.64.0(@typespec/compiler@0.64.0)(@typespec/http@0.64.0(@typespec/compiler@0.64.0)))(@typespec/versioning@0.64.0(@typespec/compiler@0.64.0))(@typespec/xml@0.59.0(@typespec/compiler@0.64.0))': dependencies: '@typespec/compiler': 0.64.0 '@typespec/http': 0.64.0(@typespec/compiler@0.64.0)