HTTP Client Python Bump and Release
Create a new PR to bump dependencies and release a new version of the http-client-python package.
Note:
{REPO}refers to the root folder of themicrosoft/typespecrepository.
Prerequisites
Before starting, verify that npm-check-updates is available:
bash
npx npm-check-updates --version
If the command fails or prompts for installation, install it globally:
bash
npm install -g npm-check-updates
Workflow
- •
Navigate to the package directory:
bashcd {REPO}/packages/http-client-python - •
Reset and sync with main:
bashgit reset HEAD && git checkout . && git checkout origin/main && git pull origin main
- •
Create release branch (use current date in MM-DD format):
bashgit checkout -b publish/python-release-{MM-DD} - •
Update dependencies:
bashnpx npm-check-updates -u --filter @typespec/*,@azure-tools/* --packageFile package.json
- •
Update
peerDependenciesin package.json:- •If format is
">=0.a.b <1.0.0": Update only the0.a.bportion, keep the range format unchanged - •If format is
"^1.a.b": Update to the latest version
- •If format is
- •
Run version change script:
bashnpm run change:version
- •
Build and commit:
bashnpm install && npm run build && git add -u && git commit -m "bump version"
- •
Push and create PR:
bashcd {REPO} git push origin HEAD - •
Create PR with title
[python] release new versionand no description.