Skip to content

Commit 0c77b81

Browse files
authored
[Publish][python] Bump tsp 1.2.1 (#3128)
* update for override test case * Update dependencies * sync with typespec repo * Update dependencies (2025-07-16 05:45:50) * Regenerate for typespec-python (2025-07-16 05:50:53) * add test and changelog * update changelog --------- Co-authored-by: AutoPrFromHttpClientPython <AutoPrFromHttpClientPython>
1 parent 8f5f0bd commit 0c77b81

86 files changed

Lines changed: 8144 additions & 372 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.chronus/changes/add-test-cases-2025-7-4-8-26-0.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.chronus/changes/copilot-fix-3122-2025-6-4-2-11-57.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

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.37.0
4+
5+
### Bump dependencies
6+
7+
- [#3128](https://github.com/Azure/autorest.python/pull/3128) Bump typespec
8+
9+
310
## 6.36.0
411

512
### Features

packages/autorest.python/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@autorest/python",
3-
"version": "6.36.0",
3+
"version": "6.37.0",
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.13.0",
32+
"@typespec/http-client-python": "~0.14.0",
3333
"@autorest/system-requirements": "~1.0.2",
3434
"fs-extra": "~11.2.0",
3535
"tsx": "~4.19.1"
@@ -47,4 +47,4 @@
4747
"requirements.txt",
4848
"generator/"
4949
]
50-
}
50+
}

packages/typespec-python/CHANGELOG.md

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

3+
## 0.47.0
4+
5+
### Features
6+
7+
- [#3128](https://github.com/Azure/autorest.python/pull/3128) Support @override to reorder operation parameters
8+
9+
### Bump dependencies
10+
11+
- [#3128](https://github.com/Azure/autorest.python/pull/3128) Bump typespec
12+
13+
314
## 0.46.0
415

516
### Features

packages/typespec-python/package.json

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-python",
3-
"version": "0.46.0",
3+
"version": "0.47.0",
44
"author": "Microsoft Corporation",
55
"description": "TypeSpec emitter for Python SDKs",
66
"homepage": "https://github.com/Azure/autorest.python",
@@ -48,48 +48,48 @@
4848
"generator/**"
4949
],
5050
"peerDependencies": {
51-
"@typespec/compiler": "^1.0.0",
52-
"@typespec/http": "^1.0.0",
53-
"@typespec/rest": ">=0.70.0 <1.0.0",
54-
"@typespec/versioning": ">=0.70.0 <1.0.0",
55-
"@typespec/openapi": "^1.0.0",
56-
"@typespec/events": ">=0.70.0 <1.0.0",
57-
"@typespec/sse": ">=0.70.0 <1.0.0",
58-
"@typespec/streams": ">=0.70.0 <1.0.0",
59-
"@typespec/xml": ">=0.70.0 <1.0.0",
60-
"@azure-tools/typespec-azure-core": ">=0.56.0 <1.0.0",
61-
"@azure-tools/typespec-azure-resource-manager": ">=0.56.0 <1.0.0",
62-
"@azure-tools/typespec-autorest": ">=0.56.0 <1.0.0",
63-
"@azure-tools/typespec-azure-rulesets": ">=0.56.0 <1.0.0",
64-
"@azure-tools/typespec-client-generator-core": ">=0.56.1 <1.0.0"
51+
"@typespec/compiler": "^1.2.1",
52+
"@typespec/http": "^1.2.1",
53+
"@typespec/rest": ">=0.72.1 <1.0.0",
54+
"@typespec/versioning": ">=0.72.1 <1.0.0",
55+
"@typespec/openapi": "^1.2.1",
56+
"@typespec/events": ">=0.72.1 <1.0.0",
57+
"@typespec/sse": ">=0.72.1 <1.0.0",
58+
"@typespec/streams": ">=0.72.1 <1.0.0",
59+
"@typespec/xml": ">=0.72.1 <1.0.0",
60+
"@azure-tools/typespec-azure-core": ">=0.58.0 <1.0.0",
61+
"@azure-tools/typespec-azure-resource-manager": ">=0.58.0 <1.0.0",
62+
"@azure-tools/typespec-autorest": ">=0.58.0 <1.0.0",
63+
"@azure-tools/typespec-azure-rulesets": ">=0.58.0 <1.0.0",
64+
"@azure-tools/typespec-client-generator-core": ">=0.58.0 <1.0.0"
6565
},
6666
"dependencies": {
6767
"js-yaml": "~4.1.0",
6868
"semver": "~7.6.2",
6969
"tsx": "~4.19.1",
70-
"@typespec/http-client-python": "~0.13.0",
70+
"@typespec/http-client-python": "~0.14.0",
7171
"fs-extra": "~11.2.0"
7272
},
7373
"devDependencies": {
74-
"@typespec/compiler": "^1.1.0",
75-
"@typespec/http": "^1.1.0",
76-
"@typespec/rest": "~0.71.0",
77-
"@typespec/versioning": "~0.71.0",
78-
"@typespec/openapi": "^1.1.0",
79-
"@typespec/events": "~0.71.0",
80-
"@typespec/sse": "~0.71.0",
81-
"@typespec/streams": "~0.71.0",
74+
"@typespec/compiler": "^1.2.1",
75+
"@typespec/http": "^1.2.1",
76+
"@typespec/rest": "~0.72.1",
77+
"@typespec/versioning": "~0.72.1",
78+
"@typespec/openapi": "^1.2.1",
79+
"@typespec/events": "~0.72.1",
80+
"@typespec/sse": "~0.72.1",
81+
"@typespec/streams": "~0.72.1",
8282
"@typespec/tspd": "~0.70.0",
83-
"@typespec/xml": "~0.71.0",
84-
"@azure-tools/typespec-azure-resource-manager": "~0.57.0",
85-
"@azure-tools/typespec-azure-core": "~0.57.0",
86-
"@azure-tools/typespec-azure-rulesets": "~0.57.0",
87-
"@azure-tools/typespec-autorest": "~0.57.0",
88-
"@azure-tools/typespec-client-generator-core": "~0.57.2",
89-
"@azure-tools/azure-http-specs": "0.1.0-alpha.20",
90-
"@typespec/http-specs": "0.1.0-alpha.23",
91-
"@typespec/spector": "0.1.0-alpha.15",
92-
"@typespec/spec-api": "0.1.0-alpha.6",
83+
"@typespec/xml": "~0.72.1",
84+
"@azure-tools/typespec-azure-resource-manager": "~0.58.0",
85+
"@azure-tools/typespec-azure-core": "~0.58.0",
86+
"@azure-tools/typespec-azure-rulesets": "~0.58.0",
87+
"@azure-tools/typespec-autorest": "~0.58.0",
88+
"@azure-tools/typespec-client-generator-core": "~0.58.0",
89+
"@azure-tools/azure-http-specs": "0.1.0-alpha.23",
90+
"@typespec/http-specs": "0.1.0-alpha.24",
91+
"@typespec/spector": "0.1.0-alpha.16",
92+
"@typespec/spec-api": "0.1.0-alpha.7",
9393
"@types/js-yaml": "~4.0.5",
9494
"@types/node": "~22.13.14",
9595
"@types/yargs": "~17.0.33",
@@ -103,4 +103,4 @@
103103
"chalk": "5.3.0",
104104
"@types/fs-extra": "11.0.4"
105105
}
106-
}
106+
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ const AZURE_EMITTER_OPTIONS: Record<string, Record<string, string> | Record<stri
4141
"azure/client-generator-core/usage": {
4242
namespace: "specs.azure.clientgenerator.core.usage",
4343
},
44+
"azure/client-generator-core/override": {
45+
namespace: "specs.azure.clientgenerator.core.override",
46+
},
4447
"azure/core/basic": {
4548
namespace: "specs.azure.core.basic",
4649
},
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Release History
2+
3+
## 1.0.0b1 (1970-01-01)
4+
5+
- Initial version
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright (c) Microsoft Corporation.
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
include *.md
2+
include LICENSE
3+
include specs/azure/clientgenerator/core/override/py.typed
4+
recursive-include tests *.py
5+
recursive-include samples *.py *.md
6+
include specs/__init__.py
7+
include specs/azure/__init__.py
8+
include specs/azure/clientgenerator/__init__.py
9+
include specs/azure/clientgenerator/core/__init__.py

0 commit comments

Comments
 (0)