Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .chronus/changes/copilot-fix-3195-2025-8-9-14-19-15.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: internal
packages:
- "@azure-tools/typespec-python"
---

upgrade pnpm version to 10.11.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Requirements

- Node 20+
- pnpm 9+
- pnpm 10+
- Python 3.9+

## Develop
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/ci-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ steps:
inputs:
versionSpec: $(PythonVersion)

- script: npm install -g pnpm@9.5.0
displayName: Install pnpm 9.5.0
- script: npm install -g pnpm@10.11.0
displayName: Install pnpm 10.11.0

- script: npm install -g autorest
displayName: Install autorest
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ extends:
inputs:
versionSpec: 3.10

- script: npm install -g pnpm@9.5.0
displayName: Install PNPM 9.5.0
- script: npm install -g pnpm@10.11.0
displayName: Install PNPM 10.11.0

- script: pnpm install
displayName: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/sdk_regenerate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ jobs:
inputs:
versionSpec: '20.x'

- script: npm install -g pnpm@9.5.0
displayName: Install pnpm 9.5.0
- script: npm install -g pnpm@10.11.0
displayName: Install pnpm 10.11.0

- script: pnpm install
displayName: pnpm install
Expand Down
2 changes: 1 addition & 1 deletion eng/scripts/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def copy(src: Path, dest: Path) -> None:

def main(update_to_latest_typespec: bool, build_artifacts_path: Path) -> None:
# Install global dependencies
call("npm install -g pnpm@9.5.0")
call("npm install -g pnpm@10.11.0")
call("npm install -g autorest")
call("npm install -g @typespec/compiler")

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"workspaces": [
"packages/*"
],
"packageManager": "pnpm@9.5.0",
"packageManager": "pnpm@10.11.0",
"scripts": {
"preinstall": "npx only-allow pnpm",
"watch": "tsc --build ./tsconfig.ws.json --watch",
Expand Down
4 changes: 2 additions & 2 deletions packages/autorest.python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
"dependencies": {
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTMxMjQzOS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.16.0.tgz",
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTMxNjk4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.16.0.tgz",
"@autorest/system-requirements": "~1.0.2",
"fs-extra": "~11.2.0",
"tsx": "~4.19.1"
Expand All @@ -47,4 +47,4 @@
"requirements.txt",
"generator/"
]
}
}
4 changes: 2 additions & 2 deletions packages/typespec-python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"js-yaml": "~4.1.0",
"semver": "~7.6.2",
"tsx": "~4.19.1",
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTMxMjQzOS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.16.0.tgz",
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTMxNjk4My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.16.0.tgz",
"fs-extra": "~11.2.0"
},
"devDependencies": {
Expand Down Expand Up @@ -103,4 +103,4 @@
"chalk": "5.3.0",
"@types/fs-extra": "11.0.4"
}
}
}
6 changes: 6 additions & 0 deletions packages/typespec-python/scripts/eng/regenerate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,12 @@ async function regenerate(flags: RegenerateFlagsInput): Promise<void> {
return () => executeCommand(tspCommand);
});

// After upgrade to pnpm 10.x, the @typespec/http-client-python can't be installed completely with venv folder created.
// But the emitter will try to recreate venv again in runtime, so we shall not run in parallel until venv is
// installed correctly. This is just workaround solution so when we find the root cause, we can remove this line.
// NOTE: if we use `npm install`, emitter can be installed completely so maybe it is pnpm's bug.
await tasks[0]();

// Run tasks with a concurrency limit
await runTaskPool(tasks, 30);
}
Expand Down
Loading
Loading