Skip to content

Commit 390b917

Browse files
authored
[python] release new version (#3339)
* Update dependencies * Update dependencies (2026-02-11 00:53:26) * Regenerate for typespec-python (2026-02-11 00:58:47) * Update bump-and-release skill with dependency update steps and prerequisites * bump version --------- Co-authored-by: AutoPrFromHttpClientPython <AutoPrFromHttpClientPython>
1 parent 46445df commit 390b917

198 files changed

Lines changed: 977 additions & 617 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/auto-microsoft-python-nightly-fix-2026-1-9-14-33-30.md

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

.chronus/changes/python-fallback-wire-type-unknown-encode-2026-1-9-0-0-0.md

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

.chronus/changes/python-fix-nightly-2026-1-3-9-2-18.md

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

.chronus/changes/python-fix-nightly-2026-1-4-6-52-8.md

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

.github/skills/bump-and-release/SKILL.md

Lines changed: 47 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ Bump the "@typespec/http-client-python" dependency and create a release PR for t
1212
- **BASE_BRANCH**: The branch to base changes on (default: "main")
1313
- **CURRENT_DATE**: Current date in YYYY-MM-DD format (e.g., "2025-01-01")
1414

15+
## Prerequisites
16+
17+
Before starting, verify that `npm-check-updates` is available:
18+
```bash
19+
npx npm-check-updates --version
20+
```
21+
22+
If the command fails or prompts for installation, install it globally:
23+
```bash
24+
npm install -g npm-check-updates
25+
```
26+
1527
## Workflow
1628

1729
### Step 1: Prepare Branch
@@ -39,7 +51,37 @@ git reset HEAD && git checkout . && git fetch origin {{BASE_BRANCH}} && git chec
3951
- `packages/autorest.python/package.json`
4052
- `packages/typespec-python/package.json`
4153

42-
### Step 3: Run Version Tool
54+
### Steps 3–5: Update Dependencies (only if BASE_BRANCH is "main")
55+
56+
> **Skip Steps 3, 4, and 5 if BASE_BRANCH is not "main".**
57+
58+
### Step 3: Update Dependencies
59+
60+
Run npm-check-updates for `packages/typespec-python/package.json`:
61+
```bash
62+
npx npm-check-updates -u --filter @typespec/*,@azure-tools/* --packageFile packages/typespec-python/package.json
63+
```
64+
65+
### Step 4: Update peerDependencies
66+
67+
Update `peerDependencies` in `packages/typespec-python/package.json`:
68+
- If format is `">=0.a.b <1.0.0"`: Update only the `0.a.b` portion, keep the range format unchanged
69+
- If format is `"^1.a.b"`: Update to the latest version
70+
71+
### Step 5: Verify devDependencies Versions for Specs
72+
73+
Verify `devDependencies` versions for specs in `packages/typespec-python/package.json`:
74+
- Check `@typespec/http-specs` and `@azure-tools/azure-http-specs`
75+
- If the original version in `package.json` is newer than the updated value, keep the original version
76+
- Dev versions are typically in the form `x.y.z-alpha.N-dev.M` (e.g., `0.1.0-alpha.37-dev.3`).
77+
78+
Example:
79+
- Original: `@typespec/http-specs: 0.1.0-alpha.12-dev.5`, updated by step 3 to `0.1.0-alpha.11` → keep `0.1.0-alpha.12-dev.5`.
80+
- Original: `@typespec/http-specs: 0.1.0-alpha.12-dev.5`, updated by step 3 to `0.1.0-alpha.12` → keep `0.1.0-alpha.12` (step 3 works as expected).
81+
- Original: `@azure-tools/azure-http-specs: 0.1.0-alpha.12-dev.2`, updated to `0.1.0-alpha.11` → keep `0.1.0-alpha.12-dev.2`.
82+
- Original: `@azure-tools/azure-http-specs: 0.1.0-alpha.12-dev.2`, updated to `0.1.0-alpha.12` → keep `0.1.0-alpha.12` (step 3 works as expected).
83+
84+
### Step 6: Run Version Tool
4385

4486
Run the change version command:
4587
```bash
@@ -52,7 +94,7 @@ Verify at least 4 files are changed:
5294
- `packages/typespec-python/package.json`
5395
- `packages/typespec-python/CHANGELOG.md`
5496

55-
### Step 4: Check for Minor Version Bump
97+
### Step 7: Check for Minor Version Bump
5698

5799
The version tool calculates the next version but may choose patch instead of minor incorrectly.
58100

@@ -64,19 +106,19 @@ The version tool calculates the next version but may choose patch instead of min
64106
- `packages/typespec-python/package.json`
65107
- `packages/typespec-python/CHANGELOG.md`
66108

67-
### Step 5: Build and Stage
109+
### Step 8: Build and Stage
68110

69111
```bash
70112
pnpm install && pnpm build && git add -u
71113
```
72114

73-
### Step 6: Commit and Push
115+
### Step 9: Commit and Push
74116

75117
```bash
76118
git commit -m "bump version"
77119
git push origin HEAD
78120
```
79121

80-
### Step 7: Create PR
122+
### Step 10: Create PR
81123

82124
If no existing PR exists for the current branch, create a new pull request targeting the BASE_BRANCH.

packages/autorest.python/CHANGELOG.md

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

3+
## 6.49.1
4+
5+
### Bug Fixes
6+
7+
- [#3337](https://github.com/Azure/autorest.python/pull/3337) Fall back to wire type for unknown or unsupported encode
8+
- [#3330](https://github.com/Azure/autorest.python/pull/3330) Fix import for xml paging
9+
10+
311
## 6.49.0
412

513
### 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.49.0",
3+
"version": "6.49.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": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTg1ODA3NS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.27.0.tgz",
32+
"@typespec/http-client-python": "~0.27.1",
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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Release
22

3+
## 0.60.1
4+
5+
### Bug Fixes
6+
7+
- [#3337](https://github.com/Azure/autorest.python/pull/3337) Fall back to wire type for unknown or unsupported encode
8+
- [#3330](https://github.com/Azure/autorest.python/pull/3330) Fix import for xml paging
9+
10+
311
## 0.60.0
412

513
### 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.60.0",
3+
"version": "0.60.1",
44
"author": "Microsoft Corporation",
55
"description": "TypeSpec emitter for Python SDKs",
66
"homepage": "https://github.com/Azure/autorest.python",
@@ -48,47 +48,47 @@
4848
"generator/**"
4949
],
5050
"peerDependencies": {
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.1 <1.0.0",
62-
"@azure-tools/typespec-autorest": ">=0.64.1 <1.0.0",
63-
"@azure-tools/typespec-azure-rulesets": ">=0.64.0 <1.0.0",
64-
"@azure-tools/typespec-client-generator-core": ">=0.64.6 <1.0.0"
51+
"@typespec/compiler": "^1.9.0",
52+
"@typespec/http": "^1.9.0",
53+
"@typespec/rest": ">=0.79.0 <1.0.0",
54+
"@typespec/versioning": ">=0.79.0 <1.0.0",
55+
"@typespec/openapi": "^1.9.0",
56+
"@typespec/events": ">=0.79.0 <1.0.0",
57+
"@typespec/sse": ">=0.79.0 <1.0.0",
58+
"@typespec/streams": ">=0.79.0 <1.0.0",
59+
"@typespec/xml": ">=0.79.0 <1.0.0",
60+
"@azure-tools/typespec-azure-core": ">=0.65.0 <1.0.0",
61+
"@azure-tools/typespec-azure-resource-manager": ">=0.65.0 <1.0.0",
62+
"@azure-tools/typespec-autorest": ">=0.65.0 <1.0.0",
63+
"@azure-tools/typespec-azure-rulesets": ">=0.65.0 <1.0.0",
64+
"@azure-tools/typespec-client-generator-core": ">=0.65.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/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTg1ODA3NS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.27.0.tgz",
70+
"@typespec/http-client-python": "~0.27.1",
7171
"fs-extra": "~11.2.0"
7272
},
7373
"devDependencies": {
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",
74+
"@typespec/compiler": "^1.9.0",
75+
"@typespec/http": "^1.9.0",
76+
"@typespec/rest": "~0.79.0",
77+
"@typespec/versioning": "~0.79.0",
78+
"@typespec/openapi": "^1.9.0",
79+
"@typespec/events": "~0.79.0",
80+
"@typespec/sse": "~0.79.0",
81+
"@typespec/streams": "~0.79.0",
8282
"@typespec/tspd": "~0.70.0",
83-
"@typespec/xml": "~0.78.0",
84-
"@azure-tools/typespec-azure-resource-manager": "~0.64.1",
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.1",
88-
"@azure-tools/typespec-client-generator-core": "~0.64.6",
89-
"@azure-tools/azure-http-specs": "0.1.0-alpha.37-dev.3",
90-
"@typespec/http-specs": "0.1.0-alpha.32-dev.6",
91-
"@typespec/spector": "0.1.0-alpha.22",
83+
"@typespec/xml": "~0.79.0",
84+
"@azure-tools/typespec-azure-resource-manager": "~0.65.0",
85+
"@azure-tools/typespec-azure-core": "~0.65.0",
86+
"@azure-tools/typespec-azure-rulesets": "~0.65.0",
87+
"@azure-tools/typespec-autorest": "~0.65.0",
88+
"@azure-tools/typespec-client-generator-core": "~0.65.0",
89+
"@azure-tools/azure-http-specs": "0.1.0-alpha.37",
90+
"@typespec/http-specs": "0.1.0-alpha.32",
91+
"@typespec/spector": "0.1.0-alpha.23",
9292
"@typespec/spec-api": "0.1.0-alpha.12",
9393
"@types/js-yaml": "~4.0.5",
9494
"@types/node": "~24.1.0",
@@ -103,4 +103,4 @@
103103
"chalk": "5.3.0",
104104
"@types/fs-extra": "11.0.4"
105105
}
106-
}
106+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"apiVersions": {}
3+
}

0 commit comments

Comments
 (0)