Skip to content

Commit f51a22e

Browse files
authored
[python] bump typespec (#3260)
* Update dependencies * Add changelog .chronus/changes/auto-microsoft-publish-bump-dep-11-13-2025-10-13-10-24-32.md * Update dependencies (2025-11-13 02:56:36) * Regenerate for typespec-python (2025-11-13 03:01:47) --------- Co-authored-by: AutoPrFromHttpClientPython <AutoPrFromHttpClientPython>
1 parent 556f362 commit f51a22e

File tree

62 files changed

+9273
-410
lines changed

Some content is hidden

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

62 files changed

+9273
-410
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
changeKind: dependencies
3+
packages:
4+
- "@autorest/python"
5+
- "@azure-tools/typespec-python"
6+
---
7+
8+
Bump typespec dependency

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/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTU0NjIzOS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.20.2.tgz",
32+
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTU2NjE3My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.20.2.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: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -48,48 +48,48 @@
4848
"generator/**"
4949
],
5050
"peerDependencies": {
51-
"@typespec/compiler": "^1.5.0",
52-
"@typespec/http": "^1.5.0",
53-
"@typespec/rest": ">=0.75.0 <1.0.0",
54-
"@typespec/versioning": ">=0.75.0 <1.0.0",
55-
"@typespec/openapi": "^1.5.0",
56-
"@typespec/events": ">=0.75.0 <1.0.0",
57-
"@typespec/sse": ">=0.75.0 <1.0.0",
58-
"@typespec/streams": ">=0.75.0 <1.0.0",
59-
"@typespec/xml": ">=0.75.0 <1.0.0",
60-
"@azure-tools/typespec-azure-core": ">=0.61.0 <1.0.0",
61-
"@azure-tools/typespec-azure-resource-manager": ">=0.61.0 <1.0.0",
62-
"@azure-tools/typespec-autorest": ">=0.61.0 <1.0.0",
63-
"@azure-tools/typespec-azure-rulesets": ">=0.61.0 <1.0.0",
64-
"@azure-tools/typespec-client-generator-core": ">=0.61.0 <1.0.0"
51+
"@typespec/compiler": "^1.6.0",
52+
"@typespec/http": "^1.6.0",
53+
"@typespec/rest": ">=0.76.0 <1.0.0",
54+
"@typespec/versioning": ">=0.76.0 <1.0.0",
55+
"@typespec/openapi": "^1.6.0",
56+
"@typespec/events": ">=0.76.0 <1.0.0",
57+
"@typespec/sse": ">=0.76.0 <1.0.0",
58+
"@typespec/streams": ">=0.76.0 <1.0.0",
59+
"@typespec/xml": ">=0.76.0 <1.0.0",
60+
"@azure-tools/typespec-azure-core": ">=0.62.0 <1.0.0",
61+
"@azure-tools/typespec-azure-resource-manager": ">=0.62.0 <1.0.0",
62+
"@azure-tools/typespec-autorest": ">=0.62.0 <1.0.0",
63+
"@azure-tools/typespec-azure-rulesets": ">=0.62.0 <1.0.0",
64+
"@azure-tools/typespec-client-generator-core": ">=0.62.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": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTU0NjIzOS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.20.2.tgz",
70+
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTU2NjE3My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.20.2.tgz",
7171
"fs-extra": "~11.2.0"
7272
},
7373
"devDependencies": {
74-
"@typespec/compiler": "^1.5.0",
75-
"@typespec/http": "^1.5.0",
76-
"@typespec/rest": "~0.75.0",
77-
"@typespec/versioning": "~0.75.0",
78-
"@typespec/openapi": "^1.5.0",
79-
"@typespec/events": "~0.75.0",
80-
"@typespec/sse": "~0.75.0",
81-
"@typespec/streams": "~0.75.0",
74+
"@typespec/compiler": "^1.6.0",
75+
"@typespec/http": "^1.6.0",
76+
"@typespec/rest": "~0.76.0",
77+
"@typespec/versioning": "~0.76.0",
78+
"@typespec/openapi": "^1.6.0",
79+
"@typespec/events": "~0.76.0",
80+
"@typespec/sse": "~0.76.0",
81+
"@typespec/streams": "~0.76.0",
8282
"@typespec/tspd": "~0.70.0",
83-
"@typespec/xml": "~0.75.0",
84-
"@azure-tools/typespec-azure-resource-manager": "~0.61.0",
85-
"@azure-tools/typespec-azure-core": "~0.61.0",
86-
"@azure-tools/typespec-azure-rulesets": "~0.61.0",
87-
"@azure-tools/typespec-autorest": "~0.61.0",
88-
"@azure-tools/typespec-client-generator-core": "~0.61.0",
89-
"@azure-tools/azure-http-specs": "0.1.0-alpha.31",
90-
"@typespec/http-specs": "0.1.0-alpha.27",
91-
"@typespec/spector": "0.1.0-alpha.19",
92-
"@typespec/spec-api": "0.1.0-alpha.9",
83+
"@typespec/xml": "~0.76.0",
84+
"@azure-tools/typespec-azure-resource-manager": "~0.62.0",
85+
"@azure-tools/typespec-azure-core": "~0.62.0",
86+
"@azure-tools/typespec-azure-rulesets": "~0.62.0",
87+
"@azure-tools/typespec-autorest": "~0.62.0",
88+
"@azure-tools/typespec-client-generator-core": "~0.62.0",
89+
"@azure-tools/azure-http-specs": "0.1.0-alpha.32",
90+
"@typespec/http-specs": "0.1.0-alpha.28",
91+
"@typespec/spector": "0.1.0-alpha.20",
92+
"@typespec/spec-api": "0.1.0-alpha.10",
9393
"@types/js-yaml": "~4.0.5",
9494
"@types/node": "~24.1.0",
9595
"@types/yargs": "~17.0.33",
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: 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/nextlinkverb/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
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Specs Azure Clientgenerator Core Nextlinkverb 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-nextlinkverb
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 Nextlinkverb 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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"CrossLanguagePackageId": "_Specs_.Azure.ClientGenerator.Core.NextLinkVerb",
3+
"CrossLanguageDefinitionId": {
4+
"specs.azure.clientgenerator.core.nextlinkverb.models.Test": "_Specs_.Azure.ClientGenerator.Core.NextLinkVerb.Test",
5+
"specs.azure.clientgenerator.core.nextlinkverb.NextLinkVerbClient.list_items": "_Specs_.Azure.ClientGenerator.Core.NextLinkVerb.listItems",
6+
"specs.azure.clientgenerator.core.nextlinkverb.aio.NextLinkVerbClient.list_items": "_Specs_.Azure.ClientGenerator.Core.NextLinkVerb.listItems"
7+
}
8+
}
Lines changed: 3 additions & 0 deletions
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
Lines changed: 37 additions & 0 deletions
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+
nextlinkverb_subscription_id = os.environ.get(
25+
"NEXTLINKVERB_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000"
26+
)
27+
nextlinkverb_tenant_id = os.environ.get("NEXTLINKVERB_TENANT_ID", "00000000-0000-0000-0000-000000000000")
28+
nextlinkverb_client_id = os.environ.get("NEXTLINKVERB_CLIENT_ID", "00000000-0000-0000-0000-000000000000")
29+
nextlinkverb_client_secret = os.environ.get("NEXTLINKVERB_CLIENT_SECRET", "00000000-0000-0000-0000-000000000000")
30+
add_general_regex_sanitizer(regex=nextlinkverb_subscription_id, value="00000000-0000-0000-0000-000000000000")
31+
add_general_regex_sanitizer(regex=nextlinkverb_tenant_id, value="00000000-0000-0000-0000-000000000000")
32+
add_general_regex_sanitizer(regex=nextlinkverb_client_id, value="00000000-0000-0000-0000-000000000000")
33+
add_general_regex_sanitizer(regex=nextlinkverb_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)