From 75ff7dce0c4ded61daf77388b7d08eed516c2530 Mon Sep 17 00:00:00 2001 From: Matt Aitchison Date: Mon, 15 Dec 2025 15:32:37 -0600 Subject: [PATCH 1/2] feat: add --no-commit flag to bump command (#4087) Allows updating version files without creating a commit, branch, or PR. --- lib/devtools/src/crewai_devtools/cli.py | 101 +++++++++++++----------- 1 file changed, 57 insertions(+), 44 deletions(-) diff --git a/lib/devtools/src/crewai_devtools/cli.py b/lib/devtools/src/crewai_devtools/cli.py index 912def74a..abe3709a7 100644 --- a/lib/devtools/src/crewai_devtools/cli.py +++ b/lib/devtools/src/crewai_devtools/cli.py @@ -323,13 +323,17 @@ def cli() -> None: "--dry-run", is_flag=True, help="Show what would be done without making changes" ) @click.option("--no-push", is_flag=True, help="Don't push changes to remote") -def bump(version: str, dry_run: bool, no_push: bool) -> None: +@click.option( + "--no-commit", is_flag=True, help="Don't commit changes (just update files)" +) +def bump(version: str, dry_run: bool, no_push: bool, no_commit: bool) -> None: """Bump version across all packages in lib/. Args: version: New version to set (e.g., 1.0.0, 1.0.0a1). dry_run: Show what would be done without making changes. no_push: Don't push changes to remote. + no_commit: Don't commit changes (just update files). """ try: # Check prerequisites @@ -397,51 +401,60 @@ def bump(version: str, dry_run: bool, no_push: bool) -> None: else: console.print("[dim][DRY RUN][/dim] Would run: uv sync") - branch_name = f"feat/bump-version-{version}" - if not dry_run: - console.print(f"\nCreating branch {branch_name}...") - run_command(["git", "checkout", "-b", branch_name]) - console.print("[green]✓[/green] Branch created") - - console.print("\nCommitting changes...") - run_command(["git", "add", "."]) - run_command(["git", "commit", "-m", f"feat: bump versions to {version}"]) - console.print("[green]✓[/green] Changes committed") - - if not no_push: - console.print("\nPushing branch...") - run_command(["git", "push", "-u", "origin", branch_name]) - console.print("[green]✓[/green] Branch pushed") + if no_commit: + console.print("\nSkipping git operations (--no-commit flag set)") else: - console.print(f"[dim][DRY RUN][/dim] Would create branch: {branch_name}") - console.print( - f"[dim][DRY RUN][/dim] Would commit: feat: bump versions to {version}" - ) - if not no_push: - console.print(f"[dim][DRY RUN][/dim] Would push branch: {branch_name}") + branch_name = f"feat/bump-version-{version}" + if not dry_run: + console.print(f"\nCreating branch {branch_name}...") + run_command(["git", "checkout", "-b", branch_name]) + console.print("[green]✓[/green] Branch created") - if not dry_run and not no_push: - console.print("\nCreating pull request...") - run_command( - [ - "gh", - "pr", - "create", - "--base", - "main", - "--title", - f"feat: bump versions to {version}", - "--body", - "", - ] - ) - console.print("[green]✓[/green] Pull request created") - elif dry_run: - console.print( - f"[dim][DRY RUN][/dim] Would create PR: feat: bump versions to {version}" - ) - else: - console.print("\nSkipping PR creation (--no-push flag set)") + console.print("\nCommitting changes...") + run_command(["git", "add", "."]) + run_command( + ["git", "commit", "-m", f"feat: bump versions to {version}"] + ) + console.print("[green]✓[/green] Changes committed") + + if not no_push: + console.print("\nPushing branch...") + run_command(["git", "push", "-u", "origin", branch_name]) + console.print("[green]✓[/green] Branch pushed") + else: + console.print( + f"[dim][DRY RUN][/dim] Would create branch: {branch_name}" + ) + console.print( + f"[dim][DRY RUN][/dim] Would commit: feat: bump versions to {version}" + ) + if not no_push: + console.print( + f"[dim][DRY RUN][/dim] Would push branch: {branch_name}" + ) + + if not dry_run and not no_push: + console.print("\nCreating pull request...") + run_command( + [ + "gh", + "pr", + "create", + "--base", + "main", + "--title", + f"feat: bump versions to {version}", + "--body", + "", + ] + ) + console.print("[green]✓[/green] Pull request created") + elif dry_run: + console.print( + f"[dim][DRY RUN][/dim] Would create PR: feat: bump versions to {version}" + ) + else: + console.print("\nSkipping PR creation (--no-push flag set)") console.print(f"\n[green]✓[/green] Version bump to {version} complete!") From 88d3c0fa97643f413c81b3480b812d46fed39411 Mon Sep 17 00:00:00 2001 From: Lorenze Jay <63378463+lorenzejay@users.noreply.github.com> Date: Mon, 15 Dec 2025 21:51:53 -0800 Subject: [PATCH 2/2] feat: bump versions to 1.7.1 (#4092) * feat: bump versions to 1.7.1 * bump projects --- lib/crewai-tools/pyproject.toml | 2 +- lib/crewai-tools/src/crewai_tools/__init__.py | 2 +- lib/crewai/pyproject.toml | 2 +- lib/crewai/src/crewai/__init__.py | 2 +- lib/crewai/src/crewai/cli/templates/crew/pyproject.toml | 2 +- lib/crewai/src/crewai/cli/templates/flow/pyproject.toml | 2 +- lib/devtools/src/crewai_devtools/__init__.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/crewai-tools/pyproject.toml b/lib/crewai-tools/pyproject.toml index ae99f944c..8d03ce6a2 100644 --- a/lib/crewai-tools/pyproject.toml +++ b/lib/crewai-tools/pyproject.toml @@ -12,7 +12,7 @@ dependencies = [ "pytube~=15.0.0", "requests~=2.32.5", "docker~=7.1.0", - "crewai==1.7.0", + "crewai==1.7.1", "lancedb~=0.5.4", "tiktoken~=0.8.0", "beautifulsoup4~=4.13.4", diff --git a/lib/crewai-tools/src/crewai_tools/__init__.py b/lib/crewai-tools/src/crewai_tools/__init__.py index 429d39c94..73f6e6cbd 100644 --- a/lib/crewai-tools/src/crewai_tools/__init__.py +++ b/lib/crewai-tools/src/crewai_tools/__init__.py @@ -291,4 +291,4 @@ __all__ = [ "ZapierActionTools", ] -__version__ = "1.7.0" +__version__ = "1.7.1" diff --git a/lib/crewai/pyproject.toml b/lib/crewai/pyproject.toml index 14b03eb62..9c85376af 100644 --- a/lib/crewai/pyproject.toml +++ b/lib/crewai/pyproject.toml @@ -49,7 +49,7 @@ Repository = "https://github.com/crewAIInc/crewAI" [project.optional-dependencies] tools = [ - "crewai-tools==1.7.0", + "crewai-tools==1.7.1", ] embeddings = [ "tiktoken~=0.8.0" diff --git a/lib/crewai/src/crewai/__init__.py b/lib/crewai/src/crewai/__init__.py index bc6df505c..62e50c161 100644 --- a/lib/crewai/src/crewai/__init__.py +++ b/lib/crewai/src/crewai/__init__.py @@ -40,7 +40,7 @@ def _suppress_pydantic_deprecation_warnings() -> None: _suppress_pydantic_deprecation_warnings() -__version__ = "1.7.0" +__version__ = "1.7.1" _telemetry_submitted = False diff --git a/lib/crewai/src/crewai/cli/templates/crew/pyproject.toml b/lib/crewai/src/crewai/cli/templates/crew/pyproject.toml index 75ef55998..05658dfd5 100644 --- a/lib/crewai/src/crewai/cli/templates/crew/pyproject.toml +++ b/lib/crewai/src/crewai/cli/templates/crew/pyproject.toml @@ -5,7 +5,7 @@ description = "{{name}} using crewAI" authors = [{ name = "Your Name", email = "you@example.com" }] requires-python = ">=3.10,<3.14" dependencies = [ - "crewai[tools]==1.7.0" + "crewai[tools]==1.7.1" ] [project.scripts] diff --git a/lib/crewai/src/crewai/cli/templates/flow/pyproject.toml b/lib/crewai/src/crewai/cli/templates/flow/pyproject.toml index 4e94d6b05..0e789eee6 100644 --- a/lib/crewai/src/crewai/cli/templates/flow/pyproject.toml +++ b/lib/crewai/src/crewai/cli/templates/flow/pyproject.toml @@ -5,7 +5,7 @@ description = "{{name}} using crewAI" authors = [{ name = "Your Name", email = "you@example.com" }] requires-python = ">=3.10,<3.14" dependencies = [ - "crewai[tools]==1.7.0" + "crewai[tools]==1.7.1" ] [project.scripts] diff --git a/lib/devtools/src/crewai_devtools/__init__.py b/lib/devtools/src/crewai_devtools/__init__.py index 0a50f4486..0230cb2b5 100644 --- a/lib/devtools/src/crewai_devtools/__init__.py +++ b/lib/devtools/src/crewai_devtools/__init__.py @@ -1,3 +1,3 @@ """CrewAI development tools.""" -__version__ = "1.7.0" +__version__ = "1.7.1"