Skip to content

Commit 675ecaa

Browse files
GWealecopybara-github
authored andcommitted
feat!: Upgrade to include python3.14
pin crew ai to 3.13 at highest version as it uses chromadb and that uses onnxruntime which does not work yet with 3.14 Co-authored-by: George Weale <gweale@google.com> PiperOrigin-RevId: 831508884
1 parent d12468e commit 675ecaa

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ classifiers = [ # List of https://pypi.org/classifiers/
1414
"Intended Audience :: Science/Research",
1515
"Programming Language :: Python",
1616
"Programming Language :: Python :: 3",
17-
"Programming Language :: Python :: 3.9",
1817
"Programming Language :: Python :: 3.10",
1918
"Programming Language :: Python :: 3.11",
2019
"Programming Language :: Python :: 3.12",
2120
"Programming Language :: Python :: 3.13",
21+
"Programming Language :: Python :: 3.14",
2222
"Operating System :: OS Independent",
2323
"Topic :: Software Development :: Libraries :: Python Modules",
2424
"License :: OSI Approved :: Apache Software License",
@@ -115,7 +115,7 @@ test = [
115115
# go/keep-sorted start
116116
"a2a-sdk>=0.3.0,<0.4.0;python_version>='3.10'",
117117
"anthropic>=0.43.0", # For anthropic model tests
118-
"crewai[tools];python_version>='3.10'", # For CrewaiTool tests
118+
"crewai[tools];python_version>='3.10' and python_version<'3.14'", # For CrewaiTool tests
119119
"kubernetes>=29.0.0", # For GkeCodeExecutor
120120
"langchain-community>=0.3.17",
121121
"langgraph>=0.2.60, <0.4.8", # For LangGraphAgent
@@ -145,7 +145,7 @@ docs = [
145145
extensions = [
146146
"anthropic>=0.43.0", # For anthropic model support
147147
"beautifulsoup4>=3.2.2", # For load_web_page tool.
148-
"crewai[tools];python_version>='3.10'", # For CrewaiTool
148+
"crewai[tools];python_version>='3.10' and python_version<'3.14'", # For CrewaiTool
149149
"docker>=7.0.0", # For ContainerCodeExecutor
150150
"kubernetes>=29.0.0", # For GkeCodeExecutor
151151
"langgraph>=0.2.60, <0.4.8", # For LangGraphAgent

tests/unittests/cli/utils/test_cli_create.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,6 @@ def test_run_cmd_overwrite_reject(
143143
(agent_dir / "dummy.txt").write_text("dummy")
144144

145145
monkeypatch.setattr(os, "getcwd", lambda: str(tmp_path))
146-
monkeypatch.setattr(os.path, "exists", lambda _p: True)
147-
monkeypatch.setattr(os, "listdir", lambda _p: ["dummy.txt"])
148146
monkeypatch.setattr(click, "confirm", lambda *a, **k: False)
149147

150148
with pytest.raises(click.Abort):
@@ -165,7 +163,6 @@ def test_run_cmd_with_type_config(
165163
agent_name = "test_agent"
166164

167165
monkeypatch.setattr(os, "getcwd", lambda: str(tmp_path))
168-
monkeypatch.setattr(os.path, "exists", lambda _p: False)
169166

170167
cli_create.run_cmd(
171168
agent_name,

0 commit comments

Comments
 (0)