Skip to content

Commit 2b69993

Browse files
authored
[python] Avoid duplicated delete operation for autorest emitter (#3257)
* update regenerate * add changelog * Update dependencies * Update dependencies (2025-11-03 04:01:47) * update version --------- Co-authored-by: AutoPrFromHttpClientPython <AutoPrFromHttpClientPython>
1 parent a2d2725 commit 2b69993

6 files changed

Lines changed: 29 additions & 11 deletions

File tree

packages/autorest.python/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Release
22

3+
## 6.42.1
4+
5+
### Bug Fixes
6+
7+
- [#3257](https://github.com/Azure/autorest.python/pull/3257) add flag for clear output folder and set default to false
8+
9+
310
## 6.42.0
411

512
### Features

packages/autorest.python/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@autorest/python",
3-
"version": "6.42.0",
3+
"version": "6.42.1",
44
"description": "The Python extension for generators in AutoRest.",
55
"scripts": {
66
"start": "node ./scripts/run-python3.js ./scripts/start.py",
@@ -29,7 +29,7 @@
2929
},
3030
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
3131
"dependencies": {
32-
"@typespec/http-client-python": "~0.20.0",
32+
"@typespec/http-client-python": "~0.20.2",
3333
"@autorest/system-requirements": "~1.0.2",
3434
"fs-extra": "~11.2.0",
3535
"tsx": "~4.19.1"

packages/typespec-python/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Release
22

3+
## 0.53.1
4+
5+
### Bug Fixes
6+
7+
- [#3257](https://github.com/Azure/autorest.python/pull/3257) add flag for clear output folder and set default to false
8+
9+
310
## 0.53.0
411

512
### Features

packages/typespec-python/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-python",
3-
"version": "0.53.0",
3+
"version": "0.53.1",
44
"author": "Microsoft Corporation",
55
"description": "TypeSpec emitter for Python SDKs",
66
"homepage": "https://github.com/Azure/autorest.python",
@@ -67,7 +67,7 @@
6767
"js-yaml": "~4.1.0",
6868
"semver": "~7.6.2",
6969
"tsx": "~4.19.1",
70-
"@typespec/http-client-python": "~0.20.0",
70+
"@typespec/http-client-python": "~0.20.2",
7171
"fs-extra": "~11.2.0"
7272
},
7373
"devDependencies": {

packages/typespec-python/scripts/eng/regenerate.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ const EMITTER_OPTIONS: Record<string, Record<string, string> | Record<string, st
146146
"package-mode": "azure-dataplane",
147147
"package-pprint-name": "ResiliencySrvDriven2",
148148
},
149+
"authentication/api-key": {
150+
"clear-output-folder": "true",
151+
},
149152
"authentication/http/custom": {
150153
"package-name": "authentication-http-custom",
151154
"namespace": "authentication.http.custom",
@@ -207,6 +210,7 @@ const EMITTER_OPTIONS: Record<string, Record<string, string> | Record<string, st
207210
"package-name": "generation-subdir",
208211
"namespace": "generation.subdir",
209212
"generation-subdir": "_generated",
213+
"clear-output-folder": "true",
210214
},
211215
],
212216
"type/model/usage": {

pnpm-lock.yaml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)