Skip to content

Commit e0e5384

Browse files
Jacksunweicopybara-github
authored andcommitted
chore: Limits fastapi to <0.119, so that swagger api can still render
Temp workaround for #3173. PiperOrigin-RevId: 824279228
1 parent 16d4b9a commit e0e5384

File tree

1 file changed

+47
-49
lines changed

1 file changed

+47
-49
lines changed

pyproject.toml

Lines changed: 47 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -25,43 +25,43 @@ classifiers = [ # List of https://pypi.org/classifiers/
2525
]
2626
dependencies = [
2727
# go/keep-sorted start
28-
"PyYAML>=6.0.2, <7.0.0", # For APIHubToolset.
29-
"absolufy-imports>=0.3.1, <1.0.0", # For Agent Engine deployment.
30-
"anyio>=4.9.0, <5.0.0;python_version>='3.10'", # For MCP Session Manager
31-
"authlib>=1.5.1, <2.0.0", # For RestAPI Tool
32-
"click>=8.1.8, <9.0.0", # For CLI tools
33-
"fastapi>=0.115.0, <1.0.0", # FastAPI framework
34-
"google-api-python-client>=2.157.0, <3.0.0", # Google API client discovery
35-
"google-cloud-aiplatform[agent_engines]>=1.121.0, <2.0.0",# For VertexAI integrations, e.g. example store.
36-
"google-cloud-bigtable>=2.32.0", # For Bigtable database
37-
"google-cloud-discoveryengine>=0.13.12, <0.14.0", # For Discovery Engine Search Tool
38-
"google-cloud-secret-manager>=2.22.0, <3.0.0", # Fetching secrets in RestAPI Tool
39-
"google-cloud-spanner>=3.56.0, <4.0.0", # For Spanner database
40-
"google-cloud-speech>=2.30.0, <3.0.0", # For Audio Transcription
41-
"google-cloud-storage>=2.18.0, <3.0.0", # For GCS Artifact service
42-
"google-genai>=1.41.0, <2.0.0", # Google GenAI SDK
43-
"graphviz>=0.20.2, <1.0.0", # Graphviz for graph rendering
44-
"mcp>=1.8.0, <2.0.0;python_version>='3.10'", # For MCP Toolset
45-
"opentelemetry-api>=1.37.0, <=1.37.0", # OpenTelemetry - limit upper version for sdk and api to not risk breaking changes from unstable _logs package.
28+
"PyYAML>=6.0.2, <7.0.0", # For APIHubToolset.
29+
"absolufy-imports>=0.3.1, <1.0.0", # For Agent Engine deployment.
30+
"anyio>=4.9.0, <5.0.0;python_version>='3.10'", # For MCP Session Manager
31+
"authlib>=1.5.1, <2.0.0", # For RestAPI Tool
32+
"click>=8.1.8, <9.0.0", # For CLI tools
33+
"fastapi>=0.115.0, <1.119.0", # FastAPI framework
34+
"google-api-python-client>=2.157.0, <3.0.0", # Google API client discovery
35+
"google-cloud-aiplatform[agent_engines]>=1.121.0, <2.0.0", # For VertexAI integrations, e.g. example store.
36+
"google-cloud-bigtable>=2.32.0", # For Bigtable database
37+
"google-cloud-discoveryengine>=0.13.12, <0.14.0", # For Discovery Engine Search Tool
38+
"google-cloud-secret-manager>=2.22.0, <3.0.0", # Fetching secrets in RestAPI Tool
39+
"google-cloud-spanner>=3.56.0, <4.0.0", # For Spanner database
40+
"google-cloud-speech>=2.30.0, <3.0.0", # For Audio Transcription
41+
"google-cloud-storage>=2.18.0, <3.0.0", # For GCS Artifact service
42+
"google-genai>=1.41.0, <2.0.0", # Google GenAI SDK
43+
"graphviz>=0.20.2, <1.0.0", # Graphviz for graph rendering
44+
"mcp>=1.8.0, <2.0.0;python_version>='3.10'", # For MCP Toolset
45+
"opentelemetry-api>=1.37.0, <=1.37.0", # OpenTelemetry - limit upper version for sdk and api to not risk breaking changes from unstable _logs package.
4646
"opentelemetry-exporter-gcp-logging>=1.9.0a0, <2.0.0",
4747
"opentelemetry-exporter-gcp-monitoring>=1.9.0a0, <2.0.0",
4848
"opentelemetry-exporter-gcp-trace>=1.9.0, <2.0.0",
4949
"opentelemetry-exporter-otlp-proto-http>=1.36.0",
5050
"opentelemetry-resourcedetector-gcp>=1.9.0a0, <2.0.0",
5151
"opentelemetry-sdk>=1.37.0, <=1.37.0",
52-
"pydantic>=2.0, <3.0.0", # For data validation/models
53-
"python-dateutil>=2.9.0.post0, <3.0.0", # For Vertext AI Session Service
54-
"python-dotenv>=1.0.0, <2.0.0", # To manage environment variables
52+
"pydantic>=2.0, <3.0.0", # For data validation/models
53+
"python-dateutil>=2.9.0.post0, <3.0.0", # For Vertext AI Session Service
54+
"python-dotenv>=1.0.0, <2.0.0", # To manage environment variables
5555
"requests>=2.32.4, <3.0.0",
56-
"sqlalchemy-spanner>=1.14.0", # Spanner database session service
57-
"sqlalchemy>=2.0, <3.0.0", # SQL database ORM
58-
"starlette>=0.46.2, <1.0.0", # For FastAPI CLI
59-
"tenacity>=8.0.0, <9.0.0", # For Retry management
56+
"sqlalchemy-spanner>=1.14.0", # Spanner database session service
57+
"sqlalchemy>=2.0, <3.0.0", # SQL database ORM
58+
"starlette>=0.46.2, <1.0.0", # For FastAPI CLI
59+
"tenacity>=8.0.0, <9.0.0", # For Retry management
6060
"typing-extensions>=4.5, <5",
61-
"tzlocal>=5.3, <6.0", # Time zone utilities
62-
"uvicorn>=0.34.0, <1.0.0", # ASGI server for FastAPI
63-
"watchdog>=6.0.0, <7.0.0", # For file change detection and hot reload
64-
"websockets>=15.0.1, <16.0.0", # For BaseLlmFlow
61+
"tzlocal>=5.3, <6.0", # Time zone utilities
62+
"uvicorn>=0.34.0, <1.0.0", # ASGI server for FastAPI
63+
"watchdog>=6.0.0, <7.0.0", # For file change detection and hot reload
64+
"websockets>=15.0.1, <16.0.0", # For BaseLlmFlow
6565
# go/keep-sorted end
6666
]
6767
dynamic = ["version"]
@@ -111,13 +111,13 @@ eval = [
111111
test = [
112112
# go/keep-sorted start
113113
"a2a-sdk>=0.3.0,<0.4.0;python_version>='3.10'",
114-
"anthropic>=0.43.0", # For anthropic model tests
115-
"kubernetes>=29.0.0", # For GkeCodeExecutor
114+
"anthropic>=0.43.0", # For anthropic model tests
115+
"kubernetes>=29.0.0", # For GkeCodeExecutor
116116
"langchain-community>=0.3.17",
117-
"langgraph>=0.2.60, <0.4.8", # For LangGraphAgent
118-
"litellm>=1.75.5, <2.0.0", # For LiteLLM tests
119-
"llama-index-readers-file>=0.4.0", # For retrieval tests
120-
"openai>=1.100.2", # For LiteLLM
117+
"langgraph>=0.2.60, <0.4.8", # For LangGraphAgent
118+
"litellm>=1.75.5, <2.0.0", # For LiteLLM tests
119+
"llama-index-readers-file>=0.4.0", # For retrieval tests
120+
"openai>=1.100.2", # For LiteLLM
121121
"pytest>=8.3.4",
122122
"pytest-asyncio>=0.25.0",
123123
"pytest-mock>=3.14.0",
@@ -139,22 +139,20 @@ docs = [
139139

140140
# Optional extensions
141141
extensions = [
142-
"anthropic>=0.43.0", # For anthropic model support
143-
"beautifulsoup4>=3.2.2", # For load_web_page tool.
144-
"crewai[tools];python_version>='3.10'", # For CrewaiTool
145-
"docker>=7.0.0", # For ContainerCodeExecutor
146-
"kubernetes>=29.0.0", # For GkeCodeExecutor
147-
"langgraph>=0.2.60, <0.4.8", # For LangGraphAgent
148-
"litellm>=1.75.5", # For LiteLlm class. Currently has OpenAI limitations. TODO: once LiteLlm fix it
149-
"llama-index-readers-file>=0.4.0", # For retrieval using LlamaIndex.
150-
"llama-index-embeddings-google-genai>=0.3.0",# For files retrieval using LlamaIndex.
151-
"lxml>=5.3.0", # For load_web_page tool.
152-
"toolbox-core>=0.1.0", # For tools.toolbox_toolset.ToolboxToolset
142+
"anthropic>=0.43.0", # For anthropic model support
143+
"beautifulsoup4>=3.2.2", # For load_web_page tool.
144+
"crewai[tools];python_version>='3.10'", # For CrewaiTool
145+
"docker>=7.0.0", # For ContainerCodeExecutor
146+
"kubernetes>=29.0.0", # For GkeCodeExecutor
147+
"langgraph>=0.2.60, <0.4.8", # For LangGraphAgent
148+
"litellm>=1.75.5", # For LiteLlm class. Currently has OpenAI limitations. TODO: once LiteLlm fix it
149+
"llama-index-readers-file>=0.4.0", # For retrieval using LlamaIndex.
150+
"llama-index-embeddings-google-genai>=0.3.0", # For files retrieval using LlamaIndex.
151+
"lxml>=5.3.0", # For load_web_page tool.
152+
"toolbox-core>=0.1.0", # For tools.toolbox_toolset.ToolboxToolset
153153
]
154154

155-
otel-gcp = [
156-
"opentelemetry-instrumentation-google-genai>=0.3b0, <1.0.0",
157-
]
155+
otel-gcp = ["opentelemetry-instrumentation-google-genai>=0.3b0, <1.0.0"]
158156

159157

160158
[tool.pyink]

0 commit comments

Comments
 (0)