Bump dependency "@typespec/http-client-python" and release new versions for Azure/autorest.python repo. Use when user wants to bump, update, or upgrade the @typespec/http-client-python dependency, create a release PR, or publish new versions of autorest.python and typespec-python packages.
Bump the "@typespec/http-client-python" dependency and create a release PR for the Azure/autorest.python repository.
Before starting, verify that npm-check-updates is available:
npx npm-check-updates --version
If the command fails or prompts for installation, install it globally:
npm install -g npm-check-updates
Navigate to the root folder of "Azure/autorest.python" repo.
If BASE_BRANCH is "main":
git reset HEAD && git checkout . && git checkout origin/main && git pull origin main && git checkout -b publish/release-{{CURRENT_DATE}}
If BASE_BRANCH is not "main":
git reset HEAD && git checkout . && git fetch origin {{BASE_BRANCH}} && git checkout {{BASE_BRANCH}}
Get the latest VERSION of "@typespec/http-client-python" from npm:
npm view @typespec/http-client-python version
Update the version of "@typespec/http-client-python" to ~{{VERSION}} in both files:
packages/autorest.python/package.jsonpackages/typespec-python/package.jsonSkip Steps 3, 4, and 5 if BASE_BRANCH is not "main".
Run npm-check-updates for packages/typespec-python/package.json:
npx npm-check-updates -u --filter @typespec/*,@azure-tools/* --packageFile packages/typespec-python/package.json
Update peerDependencies in packages/typespec-python/package.json:
">=0.a.b <1.0.0": Update only the 0.a.b portion, keep the range format unchanged"^1.a.b": Update to the latest versionVerify devDependencies versions for specs in packages/typespec-python/package.json:
@typespec/http-specs and @azure-tools/azure-http-specspackage.json is newer than the updated value, keep the original versionx.y.z-alpha.N-dev.M (e.g., 0.1.0-alpha.37-dev.3).Example:
@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.@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).@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.@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).Run the change version command:
pnpm change version
Verify at least 4 files are changed:
packages/autorest.python/package.jsonpackages/autorest.python/CHANGELOG.mdpackages/typespec-python/package.jsonpackages/typespec-python/CHANGELOG.mdThe version tool calculates the next version but may choose patch instead of minor incorrectly.
git diff to inspect updated CHANGELOG.md filespackages/autorest.python/package.jsonpackages/autorest.python/CHANGELOG.mdpackages/typespec-python/package.jsonpackages/typespec-python/CHANGELOG.mdpnpm install && pnpm build && git add -u
git commit -m "bump version"
git push origin HEAD
If no existing PR exists for the current branch, create a new pull request targeting the BASE_BRANCH.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer