mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
chore: update dependencies and version for CrewAI (#3497)
- Updated `crewai-tools` dependency from version 0.69.0 to 0.71.0 in `pyproject.toml`. - Bumped CrewAI version from 0.177.0 to 0.186.0 in `__init__.py`. - Updated dependency versions in CLI templates for crew, flow, and tool to reflect the new CrewAI version.
This commit is contained in:
@@ -48,7 +48,7 @@ Documentation = "https://docs.crewai.com"
|
|||||||
Repository = "https://github.com/crewAIInc/crewAI"
|
Repository = "https://github.com/crewAIInc/crewAI"
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
tools = ["crewai-tools~=0.69.0"]
|
tools = ["crewai-tools~=0.71.0"]
|
||||||
embeddings = [
|
embeddings = [
|
||||||
"tiktoken~=0.8.0"
|
"tiktoken~=0.8.0"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,6 +1,21 @@
|
|||||||
|
import threading
|
||||||
|
import urllib.request
|
||||||
import warnings
|
import warnings
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from crewai.agent import Agent
|
||||||
|
from crewai.crew import Crew
|
||||||
|
from crewai.crews.crew_output import CrewOutput
|
||||||
|
from crewai.flow.flow import Flow
|
||||||
|
from crewai.knowledge.knowledge import Knowledge
|
||||||
|
from crewai.llm import LLM
|
||||||
|
from crewai.llms.base_llm import BaseLLM
|
||||||
|
from crewai.process import Process
|
||||||
|
from crewai.task import Task
|
||||||
|
from crewai.tasks.llm_guardrail import LLMGuardrail
|
||||||
|
from crewai.tasks.task_output import TaskOutput
|
||||||
|
from crewai.telemetry.telemetry import Telemetry
|
||||||
|
|
||||||
|
|
||||||
def _suppress_pydantic_deprecation_warnings() -> None:
|
def _suppress_pydantic_deprecation_warnings() -> None:
|
||||||
"""Suppress Pydantic deprecation warnings using targeted monkey patch."""
|
"""Suppress Pydantic deprecation warnings using targeted monkey patch."""
|
||||||
@@ -20,26 +35,11 @@ def _suppress_pydantic_deprecation_warnings() -> None:
|
|||||||
return None
|
return None
|
||||||
return original_warn(message, category, stacklevel + 1, source)
|
return original_warn(message, category, stacklevel + 1, source)
|
||||||
|
|
||||||
setattr(warnings, "warn", filtered_warn)
|
warnings.warn = filtered_warn # type: ignore[assignment]
|
||||||
|
|
||||||
|
|
||||||
_suppress_pydantic_deprecation_warnings()
|
_suppress_pydantic_deprecation_warnings()
|
||||||
|
|
||||||
import threading
|
|
||||||
import urllib.request
|
|
||||||
|
|
||||||
from crewai.agent import Agent
|
|
||||||
from crewai.crew import Crew
|
|
||||||
from crewai.crews.crew_output import CrewOutput
|
|
||||||
from crewai.flow.flow import Flow
|
|
||||||
from crewai.knowledge.knowledge import Knowledge
|
|
||||||
from crewai.llm import LLM
|
|
||||||
from crewai.llms.base_llm import BaseLLM
|
|
||||||
from crewai.process import Process
|
|
||||||
from crewai.task import Task
|
|
||||||
from crewai.tasks.llm_guardrail import LLMGuardrail
|
|
||||||
from crewai.tasks.task_output import TaskOutput
|
|
||||||
from crewai.telemetry.telemetry import Telemetry
|
|
||||||
|
|
||||||
_telemetry_submitted = False
|
_telemetry_submitted = False
|
||||||
|
|
||||||
@@ -51,18 +51,14 @@ def _track_install() -> None:
|
|||||||
if _telemetry_submitted or Telemetry._is_telemetry_disabled():
|
if _telemetry_submitted or Telemetry._is_telemetry_disabled():
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
|
||||||
pixel_url = "https://api.scarf.sh/v2/packages/CrewAI/crewai/docs/00f2dad1-8334-4a39-934e-003b2e1146db"
|
pixel_url = "https://api.scarf.sh/v2/packages/CrewAI/crewai/docs/00f2dad1-8334-4a39-934e-003b2e1146db"
|
||||||
|
|
||||||
req = urllib.request.Request(pixel_url)
|
req = urllib.request.Request(pixel_url) # noqa: S310
|
||||||
req.add_header("User-Agent", f"CrewAI-Python/{__version__}")
|
req.add_header("User-Agent", f"CrewAI-Python/{__version__}")
|
||||||
|
|
||||||
with urllib.request.urlopen(req, timeout=2): # nosec B310
|
with urllib.request.urlopen(req, timeout=2): # noqa: S310
|
||||||
_telemetry_submitted = True
|
_telemetry_submitted = True
|
||||||
|
|
||||||
except Exception:
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def _track_install_async() -> None:
|
def _track_install_async() -> None:
|
||||||
"""Track installation in background thread to avoid blocking imports."""
|
"""Track installation in background thread to avoid blocking imports."""
|
||||||
@@ -73,18 +69,18 @@ def _track_install_async() -> None:
|
|||||||
|
|
||||||
_track_install_async()
|
_track_install_async()
|
||||||
|
|
||||||
__version__ = "0.177.0"
|
__version__ = "0.186.0"
|
||||||
__all__ = [
|
__all__ = [
|
||||||
|
"LLM",
|
||||||
"Agent",
|
"Agent",
|
||||||
|
"BaseLLM",
|
||||||
"Crew",
|
"Crew",
|
||||||
"CrewOutput",
|
"CrewOutput",
|
||||||
"Process",
|
|
||||||
"Task",
|
|
||||||
"LLM",
|
|
||||||
"BaseLLM",
|
|
||||||
"Flow",
|
"Flow",
|
||||||
"Knowledge",
|
"Knowledge",
|
||||||
"TaskOutput",
|
|
||||||
"LLMGuardrail",
|
"LLMGuardrail",
|
||||||
|
"Process",
|
||||||
|
"Task",
|
||||||
|
"TaskOutput",
|
||||||
"__version__",
|
"__version__",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ description = "{{name}} using crewAI"
|
|||||||
authors = [{ name = "Your Name", email = "you@example.com" }]
|
authors = [{ name = "Your Name", email = "you@example.com" }]
|
||||||
requires-python = ">=3.10,<3.14"
|
requires-python = ">=3.10,<3.14"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"crewai[tools]>=0.177.0,<1.0.0"
|
"crewai[tools]>=0.186.0,<1.0.0"
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ description = "{{name}} using crewAI"
|
|||||||
authors = [{ name = "Your Name", email = "you@example.com" }]
|
authors = [{ name = "Your Name", email = "you@example.com" }]
|
||||||
requires-python = ">=3.10,<3.14"
|
requires-python = ">=3.10,<3.14"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"crewai[tools]>=0.177.0,<1.0.0",
|
"crewai[tools]>=0.186.0,<1.0.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ description = "Power up your crews with {{folder_name}}"
|
|||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.10,<3.14"
|
requires-python = ">=3.10,<3.14"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"crewai[tools]>=0.177.0"
|
"crewai[tools]>=0.186.0"
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.crewai]
|
[tool.crewai]
|
||||||
|
|||||||
Reference in New Issue
Block a user