Skip to content

Commit e0626ef

Browse files
authored
[python] release new version (#3300)
* Update dependencies * Update dependencies * Update dependencies * Update dependencies * Update dependencies (2026-01-14 05:33:28) * Regenerate for typespec-python (2026-01-14 05:39:18) * fix ci * Update cspell.yaml * add test case * add test case * Update dependencies * Update dependencies (2026-01-14 09:52:11) * add changelog * bump version --------- Co-authored-by: AutoPrFromHttpClientPython <AutoPrFromHttpClientPython>
1 parent 1f8ef1a commit e0626ef

175 files changed

Lines changed: 23841 additions & 337 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/main-2026-0-7-16-58-11.md

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

cspell.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ words:
7979
- nihao
8080
- noprop
8181
- nspkg
82+
- noauth
8283
- nonstringenums
8384
- nonstringenumsversiontolerant
8485
- nooperations

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.46.1
4+
5+
### Bug Fixes
6+
7+
- [#3300](https://github.com/Azure/autorest.python/pull/3300) Fix clients with `NoAuth` credentials to have optional generated `credential` parameters
8+
9+
310
## 6.46.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.46.0",
3+
"version": "6.46.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.24.0",
32+
"@typespec/http-client-python": "~0.24.1",
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.57.1
4+
5+
### Bug Fixes
6+
7+
- [#3300](https://github.com/Azure/autorest.python/pull/3300) Fix clients with `NoAuth` credentials to have optional generated `credential` parameters
8+
9+
310
## 0.57.0
411

512
### Features

packages/typespec-python/package.json

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-python",
3-
"version": "0.57.0",
3+
"version": "0.57.1",
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.7.0",
52-
"@typespec/http": "^1.7.0",
53-
"@typespec/rest": ">=0.77.0 <1.0.0",
54-
"@typespec/versioning": ">=0.77.0 <1.0.0",
55-
"@typespec/openapi": "^1.7.0",
56-
"@typespec/events": ">=0.77.0 <1.0.0",
57-
"@typespec/sse": ">=0.77.0 <1.0.0",
58-
"@typespec/streams": ">=0.77.0 <1.0.0",
59-
"@typespec/xml": ">=0.77.0 <1.0.0",
60-
"@azure-tools/typespec-azure-core": ">=0.63.0 <1.0.0",
61-
"@azure-tools/typespec-azure-resource-manager": ">=0.63.0 <1.0.0",
62-
"@azure-tools/typespec-autorest": ">=0.63.0 <1.0.0",
63-
"@azure-tools/typespec-azure-rulesets": ">=0.63.0 <1.0.0",
64-
"@azure-tools/typespec-client-generator-core": ">=0.63.4 <1.0.0"
51+
"@typespec/compiler": "^1.8.0",
52+
"@typespec/http": "^1.8.0",
53+
"@typespec/rest": ">=0.78.0 <1.0.0",
54+
"@typespec/versioning": ">=0.78.0 <1.0.0",
55+
"@typespec/openapi": "^1.8.0",
56+
"@typespec/events": ">=0.78.0 <1.0.0",
57+
"@typespec/sse": ">=0.78.0 <1.0.0",
58+
"@typespec/streams": ">=0.78.0 <1.0.0",
59+
"@typespec/xml": ">=0.78.0 <1.0.0",
60+
"@azure-tools/typespec-azure-core": ">=0.64.0 <1.0.0",
61+
"@azure-tools/typespec-azure-resource-manager": ">=0.64.0 <1.0.0",
62+
"@azure-tools/typespec-autorest": ">=0.64.0 <1.0.0",
63+
"@azure-tools/typespec-azure-rulesets": ">=0.64.0 <1.0.0",
64+
"@azure-tools/typespec-client-generator-core": ">=0.64.1 <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.24.0",
70+
"@typespec/http-client-python": "~0.24.1",
7171
"fs-extra": "~11.2.0"
7272
},
7373
"devDependencies": {
74-
"@typespec/compiler": "^1.7.0",
75-
"@typespec/http": "^1.7.0",
76-
"@typespec/rest": "~0.77.0",
77-
"@typespec/versioning": "~0.77.0",
78-
"@typespec/openapi": "^1.7.0",
79-
"@typespec/events": "~0.77.0",
80-
"@typespec/sse": "~0.77.0",
81-
"@typespec/streams": "~0.77.0",
74+
"@typespec/compiler": "^1.8.0",
75+
"@typespec/http": "^1.8.0",
76+
"@typespec/rest": "~0.78.0",
77+
"@typespec/versioning": "~0.78.0",
78+
"@typespec/openapi": "^1.8.0",
79+
"@typespec/events": "~0.78.0",
80+
"@typespec/sse": "~0.78.0",
81+
"@typespec/streams": "~0.78.0",
8282
"@typespec/tspd": "~0.70.0",
83-
"@typespec/xml": "~0.77.0",
84-
"@azure-tools/typespec-azure-resource-manager": "~0.63.0",
85-
"@azure-tools/typespec-azure-core": "~0.63.0",
86-
"@azure-tools/typespec-azure-rulesets": "~0.63.0",
87-
"@azure-tools/typespec-autorest": "~0.63.0",
88-
"@azure-tools/typespec-client-generator-core": "~0.63.4",
89-
"@azure-tools/azure-http-specs": "0.1.0-alpha.35-dev.8",
90-
"@typespec/http-specs": "0.1.0-alpha.30-dev.1",
91-
"@typespec/spector": "0.1.0-alpha.21",
92-
"@typespec/spec-api": "0.1.0-alpha.11",
83+
"@typespec/xml": "~0.78.0",
84+
"@azure-tools/typespec-azure-resource-manager": "~0.64.0",
85+
"@azure-tools/typespec-azure-core": "~0.64.0",
86+
"@azure-tools/typespec-azure-rulesets": "~0.64.0",
87+
"@azure-tools/typespec-autorest": "~0.64.0",
88+
"@azure-tools/typespec-client-generator-core": "~0.64.1",
89+
"@azure-tools/azure-http-specs": "0.1.0-alpha.35",
90+
"@typespec/http-specs": "0.1.0-alpha.30",
91+
"@typespec/spector": "0.1.0-alpha.22",
92+
"@typespec/spec-api": "0.1.0-alpha.12",
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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include *.md
2+
include LICENSE
3+
include authentication/noauth/union/py.typed
4+
recursive-include tests *.py
5+
recursive-include samples *.py *.md
6+
include authentication/__init__.py
7+
include authentication/noauth/__init__.py
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Authentication Noauth Union 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 authentication-noauth-union
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 Authentication Noauth Union instance.
17+
18+
#### Create with an Azure Active Directory Credential
19+
To use an [Azure Active Directory (AAD) token credential][authenticate_with_token],
20+
provide an instance of the desired credential type obtained from the
21+
[azure-identity][azure_identity_credentials] library.
22+
23+
To authenticate with AAD, you must first [pip][pip] install [`azure-identity`][azure_identity_pip]
24+
25+
After setup, you can choose which type of [credential][azure_identity_credentials] from azure.identity to use.
26+
As an example, [DefaultAzureCredential][default_azure_credential] can be used to authenticate the client:
27+
28+
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables:
29+
`AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`
30+
31+
Use the returned token credential to authenticate the client:
32+
33+
```python
34+
>>> from authentication.noauth.union import UnionClient
35+
>>> from azure.identity import DefaultAzureCredential
36+
>>> client = UnionClient(endpoint='<endpoint>', credential=DefaultAzureCredential())
37+
```
38+
39+
## Examples
40+
41+
```python
42+
>>> from authentication.noauth.union import UnionClient
43+
>>> from azure.identity import DefaultAzureCredential
44+
>>> from azure.core.exceptions import HttpResponseError
45+
46+
>>> client = UnionClient(endpoint='<endpoint>', credential=DefaultAzureCredential())
47+
>>> try:
48+
<!-- write test code here -->
49+
except HttpResponseError as e:
50+
print('service responds error: {}'.format(e.response.json()))
51+
52+
```
53+
54+
## Contributing
55+
56+
This project welcomes contributions and suggestions. Most contributions require
57+
you to agree to a Contributor License Agreement (CLA) declaring that you have
58+
the right to, and actually do, grant us the rights to use your contribution.
59+
For details, visit https://cla.microsoft.com.
60+
61+
When you submit a pull request, a CLA-bot will automatically determine whether
62+
you need to provide a CLA and decorate the PR appropriately (e.g., label,
63+
comment). Simply follow the instructions provided by the bot. You will only
64+
need to do this once across all repos using our CLA.
65+
66+
This project has adopted the
67+
[Microsoft Open Source Code of Conduct][code_of_conduct]. For more information,
68+
see the Code of Conduct FAQ or contact opencode@microsoft.com with any
69+
additional questions or comments.
70+
71+
<!-- LINKS -->
72+
[code_of_conduct]: https://opensource.microsoft.com/codeofconduct/
73+
[authenticate_with_token]: https://docs.microsoft.com/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-an-authentication-token
74+
[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#credentials
75+
[azure_identity_pip]: https://pypi.org/project/azure-identity/
76+
[default_azure_credential]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#defaultazurecredential
77+
[pip]: https://pypi.org/project/pip/
78+
[azure_sub]: https://azure.microsoft.com/free/

0 commit comments

Comments
 (0)