Create a PR to bump dependencies or release a new version of the http-client-python package...
Create a 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.
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 package directory:
cd {REPO}/packages/http-client-python
Reset and sync with main:
git reset HEAD && git checkout . && git checkout origin/main && git pull origin main
Create release branch (use current date in MM-DD format):
git checkout -b publish/python-release-{MM-DD}
Update dependencies:
npx npm-check-updates -u --filter @typespec/*,@azure-tools/* --packageFile package.json
Update peerDependencies in 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:
@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 4 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 4 to 0.1.0-alpha.12 → keep 0.1.0-alpha.12 (step 4 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 4 works as expected).Run version change script:
npm run change:version
Verify that the script updated both the emitter version in package.json and CHANGELOG.md. If neither file was updated:
Increment the third component of the emitter version in package.json (for example, a.b.c to a.b.(c+1)).
Add this entry near the top of CHANGELOG.md, immediately after the changelog title:
## <new emitter version>
### Bump dependencies
- Bump dependencies of `@typespec/*` and `@azure-tools/*` to latest versions
Verify that the version in package.json matches the new CHANGELOG.md heading.
Build and commit:
npm install && npm run build && git add -u && git commit -m "bump version"
Push and create PR:
cd {REPO}
git push origin HEAD
Create PR with title [python] release new version and no description.
@typespec/http-client-python version, commit hash, pull request URL, review findings, and any skill update to the user.