From baeecc3dec87309d18c845c858fbfd5841d78f24 Mon Sep 17 00:00:00 2001 From: zhchxiao123 Date: Mon, 18 May 2026 17:53:50 +0800 Subject: [PATCH 1/2] chore: bump versions for core framework and sub-libraries to 0.2.1 and 0.0.2 respectively --- libs/by-framework-adk/pyproject.toml | 4 ++-- libs/by-framework-history-byclaw/pyproject.toml | 4 ++-- libs/by-framework-history-postgres/pyproject.toml | 4 ++-- libs/by-framework-langgraph/pyproject.toml | 8 ++++---- libs/by-framework-trace-langfuse/pyproject.toml | 4 ++-- libs/by-framework-trace-phoenix/pyproject.toml | 4 ++-- pyproject.toml | 2 +- uv.lock | 14 +++++++------- 8 files changed, 22 insertions(+), 22 deletions(-) diff --git a/libs/by-framework-adk/pyproject.toml b/libs/by-framework-adk/pyproject.toml index c59a942..422355b 100644 --- a/libs/by-framework-adk/pyproject.toml +++ b/libs/by-framework-adk/pyproject.toml @@ -1,11 +1,11 @@ [project] name = "by-framework-adk" -version = "0.0.1" +version = "0.0.2" description = "ADK integration for by-framework" readme = "README.md" requires-python = ">=3.12" dependencies = [ - "by-framework>=0.2.0", + "by-framework>=0.2.1", "google-adk", "google-genai", ] diff --git a/libs/by-framework-history-byclaw/pyproject.toml b/libs/by-framework-history-byclaw/pyproject.toml index 674f1f7..5a19bf9 100644 --- a/libs/by-framework-history-byclaw/pyproject.toml +++ b/libs/by-framework-history-byclaw/pyproject.toml @@ -1,11 +1,11 @@ [project] name = "by-framework-history-byclaw" -version = "0.0.1" +version = "0.0.2" description = "ByClaw remote history backend for by-framework" readme = "README.md" requires-python = ">=3.12" dependencies = [ - "by-framework>=0.2.0", + "by-framework>=0.2.1", ] [project.optional-dependencies] diff --git a/libs/by-framework-history-postgres/pyproject.toml b/libs/by-framework-history-postgres/pyproject.toml index bfb667c..ce0bb99 100644 --- a/libs/by-framework-history-postgres/pyproject.toml +++ b/libs/by-framework-history-postgres/pyproject.toml @@ -1,11 +1,11 @@ [project] name = "by-framework-history-postgres" -version = "0.0.1" +version = "0.0.2" description = "PostgreSQL history backend for by-framework" readme = "README.md" requires-python = ">=3.12" dependencies = [ - "by-framework>=0.2.0", + "by-framework>=0.2.1", "asyncpg>=0.29.0", ] diff --git a/libs/by-framework-langgraph/pyproject.toml b/libs/by-framework-langgraph/pyproject.toml index 893ff0a..0ca12c3 100644 --- a/libs/by-framework-langgraph/pyproject.toml +++ b/libs/by-framework-langgraph/pyproject.toml @@ -1,11 +1,11 @@ [project] name = "by-framework-langgraph" -version = "0.0.1" +version = "0.0.2" description = "LangGraph integration for by-framework" readme = "README.md" requires-python = ">=3.12" dependencies = [ - "by-framework>=0.2.0", + "by-framework>=0.2.1", "langgraph>=1.1.6", "langchain-core>=1.2.28", ] @@ -20,10 +20,10 @@ dev = [ "ruff>=0.3.0", ] langfuse = [ - "by-framework-trace-langfuse>=0.0.1", + "by-framework-trace-langfuse>=0.0.2", ] phoenix = [ - "by-framework-trace-phoenix>=0.0.1", + "by-framework-trace-phoenix>=0.0.2", "openinference-instrumentation-langchain>=0.1.0", "openinference-instrumentation-openai>=0.1.0", ] diff --git a/libs/by-framework-trace-langfuse/pyproject.toml b/libs/by-framework-trace-langfuse/pyproject.toml index 26b4ef9..64a7886 100644 --- a/libs/by-framework-trace-langfuse/pyproject.toml +++ b/libs/by-framework-trace-langfuse/pyproject.toml @@ -1,11 +1,11 @@ [project] name = "by-framework-trace-langfuse" -version = "0.0.1" +version = "0.0.2" description = "Langfuse trace provider for by-framework" readme = "README.md" requires-python = ">=3.12" dependencies = [ - "by-framework>=0.2.0", + "by-framework>=0.2.1", "langchain>=0.3.0", "langfuse>=3.0.0", ] diff --git a/libs/by-framework-trace-phoenix/pyproject.toml b/libs/by-framework-trace-phoenix/pyproject.toml index 662efef..678c1ce 100644 --- a/libs/by-framework-trace-phoenix/pyproject.toml +++ b/libs/by-framework-trace-phoenix/pyproject.toml @@ -1,11 +1,11 @@ [project] name = "by-framework-trace-phoenix" -version = "0.0.1" +version = "0.0.2" description = "Arize Phoenix trace provider for by-framework" readme = "README.md" requires-python = ">=3.12" dependencies = [ - "by-framework>=0.2.0", + "by-framework>=0.2.1", "arize-phoenix-otel>=0.3.0", "opentelemetry-api>=1.25.0", "opentelemetry-sdk>=1.25.0", diff --git a/pyproject.toml b/pyproject.toml index 86947a1..86e9b48 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "by-framework" -version = "0.2.0" +version = "0.2.1" description = "分布式 Agent 调度框架" readme = "README.md" requires-python = ">=3.12" diff --git a/uv.lock b/uv.lock index 4f5d6af..ca79c92 100644 --- a/uv.lock +++ b/uv.lock @@ -312,7 +312,7 @@ wheels = [ [[package]] name = "by-framework" -version = "0.2.0" +version = "0.2.1" source = { editable = "." } dependencies = [ { name = "dill" }, @@ -350,7 +350,7 @@ provides-extras = ["dev"] [[package]] name = "by-framework-adk" -version = "0.0.1" +version = "0.0.2" source = { editable = "libs/by-framework-adk" } dependencies = [ { name = "by-framework" }, @@ -384,7 +384,7 @@ provides-extras = ["dev"] [[package]] name = "by-framework-history-byclaw" -version = "0.0.1" +version = "0.0.2" source = { editable = "libs/by-framework-history-byclaw" } dependencies = [ { name = "by-framework" }, @@ -414,7 +414,7 @@ provides-extras = ["dev"] [[package]] name = "by-framework-history-postgres" -version = "0.0.1" +version = "0.0.2" source = { editable = "libs/by-framework-history-postgres" } dependencies = [ { name = "asyncpg" }, @@ -446,7 +446,7 @@ provides-extras = ["dev"] [[package]] name = "by-framework-langgraph" -version = "0.0.1" +version = "0.0.2" source = { editable = "libs/by-framework-langgraph" } dependencies = [ { name = "by-framework" }, @@ -492,7 +492,7 @@ provides-extras = ["dev", "langfuse", "phoenix"] [[package]] name = "by-framework-trace-langfuse" -version = "0.0.1" +version = "0.0.2" source = { editable = "libs/by-framework-trace-langfuse" } dependencies = [ { name = "by-framework" }, @@ -526,7 +526,7 @@ provides-extras = ["dev"] [[package]] name = "by-framework-trace-phoenix" -version = "0.0.1" +version = "0.0.2" source = { editable = "libs/by-framework-trace-phoenix" } dependencies = [ { name = "arize-phoenix-otel" }, From 96a2cba648f3be0d15c5f4cfaa4533e1d4f8c11b Mon Sep 17 00:00:00 2001 From: zhchxiao123 Date: Mon, 18 May 2026 18:14:32 +0800 Subject: [PATCH 2/2] feat: add post-release workflow to automate branch creation and version bumping via pull request --- .github/workflows/publish.yml | 54 ++++++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4513e7d..c4177b3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,7 +12,8 @@ on: - "by-framework-adk-v*" permissions: - contents: read + contents: write + pull-requests: write jobs: resolve-package: @@ -139,3 +140,54 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: packages-dir: dist/ + + post-release: + runs-on: ubuntu-latest + needs: + - resolve-package + - publish + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.ref }} + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Create release branch + env: + PACKAGE_NAME: ${{ needs.resolve-package.outputs.package_name }} + VERSION: ${{ needs.resolve-package.outputs.version }} + run: | + RELEASE_BRANCH="release/${PACKAGE_NAME}/v${VERSION}" + git checkout -b "$RELEASE_BRANCH" + git push origin "$RELEASE_BRANCH" + + - name: Bump version and create PR + env: + GH_TOKEN: ${{ github.token }} + PACKAGE_NAME: ${{ needs.resolve-package.outputs.package_name }} + PACKAGE_DIR: ${{ needs.resolve-package.outputs.package_dir }} + VERSION: ${{ needs.resolve-package.outputs.version }} + run: | + # Calculate next dev version (e.g., 0.2.1 -> 0.2.2.dev0) + IFS='.' read -ra PARTS <<< "$VERSION" + LAST_INDEX=$((${#PARTS[@]} - 1)) + PARTS[$LAST_INDEX]=$((PARTS[$LAST_INDEX] + 1)) + NEXT_VERSION=$(IFS='.'; echo "${PARTS[*]}").dev0 + + PYPROJECT="${PACKAGE_DIR}/pyproject.toml" + sed -i "s/version = \"${VERSION}\"/version = \"${NEXT_VERSION}\"/" "$PYPROJECT" + + BUMP_BRANCH="bump/${PACKAGE_NAME}/v${NEXT_VERSION}" + git checkout -b "$BUMP_BRANCH" + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add "$PYPROJECT" + git commit -m "chore: bump ${PACKAGE_NAME} version to ${NEXT_VERSION}" + git push origin "$BUMP_BRANCH" + + gh pr create \ + --title "chore: bump ${PACKAGE_NAME} to ${NEXT_VERSION}" \ + --body "Auto-bump version after ${PACKAGE_NAME} v${VERSION} release." \ + --base main \ + --head "$BUMP_BRANCH"