Skip to content

Commit e9c1dab

Browse files
authored
[python] fix nightly build (#3288)
* Update dependencies * Add changelog .chronus/changes/auto-microsoft-copilot-add-test-case-constant-query-2025-11-19-5-18-46.md * Update dependencies (2025-12-19 05:57:36) * Regenerate for typespec-python (2025-12-19 06:03:05) * update * delete useless files --------- Co-authored-by: AutoPrFromHttpClientPython <AutoPrFromHttpClientPython>
1 parent b9c100b commit e9c1dab

File tree

267 files changed

+27632
-1674
lines changed

Some content is hidden

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

267 files changed

+27632
-1674
lines changed
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+
bump dev version of azure-http-specs to fix nightly build failure

packages/autorest.python/package.json

Lines changed: 2 additions & 2 deletions
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": "~0.23.1",
32+
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTY4NjczMS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.23.1.tgz",
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/package.json

Lines changed: 4 additions & 4 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": "~0.23.1",
70+
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTY4NjczMS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.23.1.tgz",
7171
"fs-extra": "~11.2.0"
7272
},
7373
"devDependencies": {
@@ -86,8 +86,8 @@
8686
"@azure-tools/typespec-azure-rulesets": "~0.63.0",
8787
"@azure-tools/typespec-autorest": "~0.63.0",
8888
"@azure-tools/typespec-client-generator-core": "~0.63.0",
89-
"@azure-tools/azure-http-specs": "0.1.0-alpha.33",
90-
"@typespec/http-specs": "0.1.0-alpha.29",
89+
"@azure-tools/azure-http-specs": "0.1.0-alpha.34-dev.7",
90+
"@typespec/http-specs": "0.1.0-alpha.30-dev.1",
9191
"@typespec/spector": "0.1.0-alpha.21",
9292
"@typespec/spec-api": "0.1.0-alpha.11",
9393
"@types/js-yaml": "~4.0.5",
@@ -103,4 +103,4 @@
103103
"chalk": "5.3.0",
104104
"@types/fs-extra": "11.0.4"
105105
}
106-
}
106+
}

packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/CHANGELOG.md renamed to packages/typespec-python/test/azure/generated/azure-client-generator-core-client-default-value/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
## 1.0.0b1 (1970-01-01)
44

5-
- Initial version
5+
### Other Changes
6+
7+
- Initial version

packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/LICENSE renamed to packages/typespec-python/test/azure/generated/azure-client-generator-core-client-default-value/LICENSE

File renamed without changes.

packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/MANIFEST.in renamed to packages/typespec-python/test/azure/generated/azure-client-generator-core-client-default-value/MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include *.md
22
include LICENSE
3-
include specs/azure/clientgenerator/core/clientlocation/py.typed
3+
include specs/azure/clientgenerator/core/clientdefaultvalue/py.typed
44
recursive-include tests *.py
55
recursive-include samples *.py *.md
66
include specs/__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 Clientdefaultvalue 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-clientdefaultvalue
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 Clientdefaultvalue 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 [email protected] 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/
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"CrossLanguagePackageId": "_Specs_.Azure.ClientGenerator.Core.ClientDefaultValue",
3+
"CrossLanguageDefinitionId": {
4+
"specs.azure.clientgenerator.core.clientdefaultvalue.models.ModelWithDefaultValues": "_Specs_.Azure.ClientGenerator.Core.ClientDefaultValue.ModelWithDefaultValues",
5+
"specs.azure.clientgenerator.core.clientdefaultvalue.ClientDefaultValueClient.put_model_property": "_Specs_.Azure.ClientGenerator.Core.ClientDefaultValue.putModelProperty",
6+
"specs.azure.clientgenerator.core.clientdefaultvalue.aio.ClientDefaultValueClient.put_model_property": "_Specs_.Azure.ClientGenerator.Core.ClientDefaultValue.putModelProperty",
7+
"specs.azure.clientgenerator.core.clientdefaultvalue.ClientDefaultValueClient.get_operation_parameter": "_Specs_.Azure.ClientGenerator.Core.ClientDefaultValue.getOperationParameter",
8+
"specs.azure.clientgenerator.core.clientdefaultvalue.aio.ClientDefaultValueClient.get_operation_parameter": "_Specs_.Azure.ClientGenerator.Core.ClientDefaultValue.getOperationParameter",
9+
"specs.azure.clientgenerator.core.clientdefaultvalue.ClientDefaultValueClient.get_path_parameter": "_Specs_.Azure.ClientGenerator.Core.ClientDefaultValue.getPathParameter",
10+
"specs.azure.clientgenerator.core.clientdefaultvalue.aio.ClientDefaultValueClient.get_path_parameter": "_Specs_.Azure.ClientGenerator.Core.ClientDefaultValue.getPathParameter",
11+
"specs.azure.clientgenerator.core.clientdefaultvalue.ClientDefaultValueClient.get_header_parameter": "_Specs_.Azure.ClientGenerator.Core.ClientDefaultValue.getHeaderParameter",
12+
"specs.azure.clientgenerator.core.clientdefaultvalue.aio.ClientDefaultValueClient.get_header_parameter": "_Specs_.Azure.ClientGenerator.Core.ClientDefaultValue.getHeaderParameter"
13+
}
14+
}

packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/dev_requirements.txt renamed to packages/typespec-python/test/azure/generated/azure-client-generator-core-client-default-value/dev_requirements.txt

File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) Python Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
import os
9+
import pytest
10+
from dotenv import load_dotenv
11+
from devtools_testutils import (
12+
test_proxy,
13+
add_general_regex_sanitizer,
14+
add_body_key_sanitizer,
15+
add_header_regex_sanitizer,
16+
)
17+
18+
load_dotenv()
19+
20+
21+
# For security, please avoid record sensitive identity information in recordings
22+
@pytest.fixture(scope="session", autouse=True)
23+
def add_sanitizers(test_proxy):
24+
defaultvalue_subscription_id = os.environ.get(
25+
"DEFAULTVALUE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000"
26+
)
27+
defaultvalue_tenant_id = os.environ.get("DEFAULTVALUE_TENANT_ID", "00000000-0000-0000-0000-000000000000")
28+
defaultvalue_client_id = os.environ.get("DEFAULTVALUE_CLIENT_ID", "00000000-0000-0000-0000-000000000000")
29+
defaultvalue_client_secret = os.environ.get("DEFAULTVALUE_CLIENT_SECRET", "00000000-0000-0000-0000-000000000000")
30+
add_general_regex_sanitizer(regex=defaultvalue_subscription_id, value="00000000-0000-0000-0000-000000000000")
31+
add_general_regex_sanitizer(regex=defaultvalue_tenant_id, value="00000000-0000-0000-0000-000000000000")
32+
add_general_regex_sanitizer(regex=defaultvalue_client_id, value="00000000-0000-0000-0000-000000000000")
33+
add_general_regex_sanitizer(regex=defaultvalue_client_secret, value="00000000-0000-0000-0000-000000000000")
34+
35+
add_header_regex_sanitizer(key="Set-Cookie", value="[set-cookie;]")
36+
add_header_regex_sanitizer(key="Cookie", value="cookie;")
37+
add_body_key_sanitizer(json_path="$..access_token", value="access_token")

0 commit comments

Comments
 (0)