Feedback

http-client-python-bump-and-release

@microsoft Claim

Basic information

Repository
microsoft
Skill
http-client-python-bump-and-release

About http-client-python-bump-and-release

Create a PR to bump dependencies or release a new version of the http-client-python package. Use when the user wants to bump TypeSpec/Azure-tools dependencies, update peer dependencies, or release a new version of the Python HTTP client.

http-client-python-bump-and-release is an agent skill listed in the AddMCP.net directory, published by microsoft. Runtime: Java. License: MIT. The repository has 5,910 GitHub stars. Source code is hosted on github.com. Related topics: json schema, openapi3, protobuf, typespec.

Overview

What is http-client-python-bump-and-release?


name: http-client-python-bump-and-release description: Create a PR to bump TypeSpec/Azure Tools dependencies, update peer dependencies, or release a new version of the http-client-python package.


HTTP Client Python Bump and Release

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 the microsoft/typespec repository.

Prerequisites

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

Workflow

  1. Navigate to the package directory:
   cd {REPO}/packages/http-client-python
  1. Reset and sync with main:
   git reset HEAD && git checkout . && git checkout origin/main && git pull origin main
  1. Create release branch (use current date in MM-DD format):
   git checkout -b publish/python-release-{MM-DD}
  1. Update dependencies:
   npx npm-check-updates -u --filter @typespec/*,@azure-tools/* --packageFile package.json
  1. Update peerDependencies in package.json:
  • If format is ">=0.a.b <1.0.0": Update only the 0.a.b portion, keep the range format unchanged
  • If format is "^1.a.b": Update to the latest version
  1. Verify devDependencies versions for specs:
  • Check @typespec/http-specs and @azure-tools/azure-http-specs
  • If the original version in package.json is newer than the updated value, keep the original version
  • Dev versions are typically in the form x.y.z-alpha.N-dev.M (e.g., 0.1.0-alpha.37-dev.3).

Example:

  • Original: @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.
  • Original: @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).
  • 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.
  • 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 4 works as expected).
  1. Run version change script:
   npm run change:version
  1. Build and commit:
   npm install && npm run build && git add -u && git commit -m "bump version"
  1. Push and create PR:
   cd {REPO}
   git push origin HEAD
  1. Create PR with title [python] release new version and no description.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬