Skip to content

Commit e8aaa68

Browse files
authored
[python] Fix nightly build (#3336)
* Add emitter options for type/file spec * Update client-initialization emitter options to support default, individually, and individuallyParent sub-specs * Update dependencies * Add changelog * Update dependencies (2026-02-09 03:18:57) * Regenerate for typespec-python (2026-02-09 03:24:15) * Sync hand-written test cases from TypeSpec PR #9604 - Update client-initialization tests to use .default sub-package imports - Add multipart file upload tests (azure + unbranded, sync + async) - Add new type/file test files (generic_mock_api_tests) - Update requirements.txt with new generated package entries * Update dependencies * Update dependencies (2026-02-09 04:47:12) * Regenerate for autorest.python (2026-02-09 05:07:00) * Delete .chronus/changes/python-nightly-fix-2026-1-6-9-19-9.md * update * Sync test changes from microsoft/typespec#9604 * Update dependencies * Update dependencies (2026-02-09 06:07:55) * Regenerate for autorest.python (2026-02-09 06:27:31) * update --------- Co-authored-by: AutoPrFromHttpClientPython <AutoPrFromHttpClientPython>
1 parent 5f790eb commit e8aaa68

184 files changed

Lines changed: 25629 additions & 31 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.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
changeKind: internal
3+
packages:
4+
- "@autorest/python"
5+
- "@azure-tools/typespec-python"
6+
---
7+
8+
Add test case

packages/autorest.python/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
3131
"dependencies": {
32-
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTg0MjUxOC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.27.0.tgz",
32+
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTg1MzAwNi9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.27.0.tgz",
3333
"@autorest/system-requirements": "~1.0.2",
3434
"fs-extra": "~11.2.0",
3535
"tsx": "~4.19.1"

packages/typespec-python/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTg0MjUxOC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.27.0.tgz",
70+
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTg1MzAwNi9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.27.0.tgz",
7171
"fs-extra": "~11.2.0"
7272
},
7373
"devDependencies": {
@@ -86,8 +86,8 @@
8686
"@azure-tools/typespec-azure-rulesets": "~0.64.0",
8787
"@azure-tools/typespec-autorest": "~0.64.1",
8888
"@azure-tools/typespec-client-generator-core": "~0.64.6",
89-
"@azure-tools/azure-http-specs": "0.1.0-alpha.37-dev.1",
90-
"@typespec/http-specs": "0.1.0-alpha.32-dev.5",
89+
"@azure-tools/azure-http-specs": "0.1.0-alpha.37-dev.3",
90+
"@typespec/http-specs": "0.1.0-alpha.32-dev.6",
9191
"@typespec/spector": "0.1.0-alpha.22",
9292
"@typespec/spec-api": "0.1.0-alpha.12",
9393
"@types/js-yaml": "~4.0.5",

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

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interface TspCommand {
2020
}
2121

2222
// Add this near the top with other constants
23-
const SKIP_SPECS: string[] = [];
23+
const SKIP_SPECS: string[] = ["type/file"];
2424

2525
const AZURE_EMITTER_OPTIONS: Record<string, Record<string, string> | Record<string, string>[]> = {
2626
"azure/client-generator-core/access": {
@@ -32,8 +32,14 @@ const AZURE_EMITTER_OPTIONS: Record<string, Record<string, string> | Record<stri
3232
"azure/client-generator-core/api-version": {
3333
namespace: "specs.azure.clientgenerator.core.apiversion",
3434
},
35-
"azure/client-generator-core/client-initialization": {
36-
namespace: "specs.azure.clientgenerator.core.clientinitialization",
35+
"azure/client-generator-core/client-initialization/default": {
36+
namespace: "specs.azure.clientgenerator.core.clientinitialization.default",
37+
},
38+
"azure/client-generator-core/client-initialization/individually": {
39+
namespace: "specs.azure.clientgenerator.core.clientinitialization.individually",
40+
},
41+
"azure/client-generator-core/client-initialization/individuallyParent": {
42+
namespace: "specs.azure.clientgenerator.core.clientinitialization.individuallyparent",
3743
},
3844
"azure/client-generator-core/client-location": {
3945
namespace: "specs.azure.clientgenerator.core.clientlocation",
@@ -280,6 +286,10 @@ const EMITTER_OPTIONS: Record<string, Record<string, string> | Record<string, st
280286
"package-name": "client-structure-twooperationgroup",
281287
"namespace": "client.structure.twooperationgroup",
282288
},
289+
"type/file": {
290+
"package-name": "typetest-file",
291+
"namespace": "typetest.file",
292+
},
283293
"documentation": {
284294
"package-name": "specs-documentation",
285295
"namespace": "specs.documentation",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Release History
2+
3+
## 1.0.0b1 (1970-01-01)
4+
5+
### Other Changes
6+
7+
- 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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
include *.md
2+
include LICENSE
3+
include specs/azure/clientgenerator/core/clientinitialization/default/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
10+
include specs/azure/clientgenerator/core/clientinitialization/__init__.py
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Specs Azure Clientgenerator Core Clientinitialization Default client library for Python
2+
<!-- write necessary description of service -->
3+
4+
## Getting started
5+
6+
### Install the package
7+
8+
```bash
9+
python -m pip install specs-azure-clientgenerator-core-clientinitialization-default
10+
```
11+
12+
#### Prequisites
13+
14+
- Python 3.9 or later is required to use this package.
15+
- You need an [Azure subscription][azure_sub] to use this package.
16+
- An existing Specs Azure Clientgenerator Core Clientinitialization Default instance.
17+
18+
19+
## Contributing
20+
21+
This project welcomes contributions and suggestions. Most contributions require
22+
you to agree to a Contributor License Agreement (CLA) declaring that you have
23+
the right to, and actually do, grant us the rights to use your contribution.
24+
For details, visit https://cla.microsoft.com.
25+
26+
When you submit a pull request, a CLA-bot will automatically determine whether
27+
you need to provide a CLA and decorate the PR appropriately (e.g., label,
28+
comment). Simply follow the instructions provided by the bot. You will only
29+
need to do this once across all repos using our CLA.
30+
31+
This project has adopted the
32+
[Microsoft Open Source Code of Conduct][code_of_conduct]. For more information,
33+
see the Code of Conduct FAQ or contact opencode@microsoft.com with any
34+
additional questions or comments.
35+
36+
<!-- LINKS -->
37+
[code_of_conduct]: https://opensource.microsoft.com/codeofconduct/
38+
[authenticate_with_token]: https://docs.microsoft.com/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-an-authentication-token
39+
[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#credentials
40+
[azure_identity_pip]: https://pypi.org/project/azure-identity/
41+
[default_azure_credential]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#defaultazurecredential
42+
[pip]: https://pypi.org/project/pip/
43+
[azure_sub]: https://azure.microsoft.com/free/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"CrossLanguagePackageId": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient",
3+
"CrossLanguageDefinitionId": {
4+
"specs.azure.clientgenerator.core.clientinitialization.default.models.BlobProperties": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.BlobProperties",
5+
"specs.azure.clientgenerator.core.clientinitialization.default.models.Input": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.Input",
6+
"specs.azure.clientgenerator.core.clientinitialization.default.models.WithBodyRequest": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.withBody.Request.anonymous",
7+
"specs.azure.clientgenerator.core.clientinitialization.default.HeaderParamClient.with_query": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.HeaderParam.withQuery",
8+
"specs.azure.clientgenerator.core.clientinitialization.default.aio.HeaderParamClient.with_query": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.HeaderParam.withQuery",
9+
"specs.azure.clientgenerator.core.clientinitialization.default.HeaderParamClient.with_body": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.HeaderParam.withBody",
10+
"specs.azure.clientgenerator.core.clientinitialization.default.aio.HeaderParamClient.with_body": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.HeaderParam.withBody",
11+
"specs.azure.clientgenerator.core.clientinitialization.default.MultipleParamsClient.with_query": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.MultipleParams.withQuery",
12+
"specs.azure.clientgenerator.core.clientinitialization.default.aio.MultipleParamsClient.with_query": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.MultipleParams.withQuery",
13+
"specs.azure.clientgenerator.core.clientinitialization.default.MultipleParamsClient.with_body": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.MultipleParams.withBody",
14+
"specs.azure.clientgenerator.core.clientinitialization.default.aio.MultipleParamsClient.with_body": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.MultipleParams.withBody",
15+
"specs.azure.clientgenerator.core.clientinitialization.default.MixedParamsClient.with_query": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.MixedParams.withQuery",
16+
"specs.azure.clientgenerator.core.clientinitialization.default.aio.MixedParamsClient.with_query": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.MixedParams.withQuery",
17+
"specs.azure.clientgenerator.core.clientinitialization.default.MixedParamsClient.with_body": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.MixedParams.withBody",
18+
"specs.azure.clientgenerator.core.clientinitialization.default.aio.MixedParamsClient.with_body": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.MixedParams.withBody",
19+
"specs.azure.clientgenerator.core.clientinitialization.default.PathParamClient.with_query": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.PathParam.withQuery",
20+
"specs.azure.clientgenerator.core.clientinitialization.default.aio.PathParamClient.with_query": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.PathParam.withQuery",
21+
"specs.azure.clientgenerator.core.clientinitialization.default.PathParamClient.get_standalone": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.PathParam.getStandalone",
22+
"specs.azure.clientgenerator.core.clientinitialization.default.aio.PathParamClient.get_standalone": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.PathParam.getStandalone",
23+
"specs.azure.clientgenerator.core.clientinitialization.default.PathParamClient.delete_standalone": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.PathParam.deleteStandalone",
24+
"specs.azure.clientgenerator.core.clientinitialization.default.aio.PathParamClient.delete_standalone": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.PathParam.deleteStandalone",
25+
"specs.azure.clientgenerator.core.clientinitialization.default.ParamAliasClient.with_aliased_name": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.ParamAlias.withAliasedName",
26+
"specs.azure.clientgenerator.core.clientinitialization.default.aio.ParamAliasClient.with_aliased_name": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.ParamAlias.withAliasedName",
27+
"specs.azure.clientgenerator.core.clientinitialization.default.ParamAliasClient.with_original_name": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.ParamAlias.withOriginalName",
28+
"specs.azure.clientgenerator.core.clientinitialization.default.aio.ParamAliasClient.with_original_name": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.ParamAlias.withOriginalName",
29+
"specs.azure.clientgenerator.core.clientinitialization.default.QueryParamClient.with_query": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.QueryParam.withQuery",
30+
"specs.azure.clientgenerator.core.clientinitialization.default.aio.QueryParamClient.with_query": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.QueryParam.withQuery",
31+
"specs.azure.clientgenerator.core.clientinitialization.default.QueryParamClient.get_standalone": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.QueryParam.getStandalone",
32+
"specs.azure.clientgenerator.core.clientinitialization.default.aio.QueryParamClient.get_standalone": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.QueryParam.getStandalone",
33+
"specs.azure.clientgenerator.core.clientinitialization.default.QueryParamClient.delete_standalone": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.QueryParam.deleteStandalone",
34+
"specs.azure.clientgenerator.core.clientinitialization.default.aio.QueryParamClient.delete_standalone": "_Specs_.Azure.ClientGenerator.Core.ClientInitialization.DefaultClient.QueryParam.deleteStandalone"
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-e ../../../eng/tools/azure-sdk-tools
2+
../../core/azure-core
3+
aiohttp

0 commit comments

Comments
 (0)