Skip to content

Commit fd0f497

Browse files
authored
Add Python 3.13 support (#99)
* Python 3.13 attempt * Try to fix numpy install * missing uv.lock update * more updates
1 parent c26b20a commit fd0f497

File tree

3 files changed

+477
-197
lines changed

3 files changed

+477
-197
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
# Python 3.13 should theoretically work,
19-
# but having trouble running in Github Actions
20-
python-version: ["3.11", "3.12"]
18+
python-version: ["3.11", "3.12", "3.13"]
2119

2220
steps:
2321
- uses: actions/checkout@v4
@@ -28,7 +26,7 @@ jobs:
2826
- name: Install uv
2927
uses: astral-sh/setup-uv@v4
3028
with:
31-
version: "0.5.5"
29+
version: "0.6.3"
3230
- name: Install dependencies with uv
3331
run: |
3432
uv sync --frozen
@@ -122,7 +120,7 @@ jobs:
122120
- name: Install uv
123121
uses: astral-sh/setup-uv@v4
124122
with:
125-
version: "0.5.5"
123+
version: "0.6.3"
126124
- name: Install ONLY CLIENT dependencies with uv
127125
run: |
128126
uv sync --frozen --only-group client --only-group dev

pyproject.toml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,39 @@ classifiers = [
1313
"Programming Language :: Python :: 3.13",
1414
]
1515

16-
requires-python = ">=3.11, <3.13"
16+
requires-python = ">=3.11"
1717

1818
dependencies = [
1919
"duckduckgo-search>=7.3.0",
2020
"fastapi ~=0.115.5",
21+
"grpcio >=1.68.0",
2122
"httpx ~=0.27.2",
23+
"jiter ~=0.8.2",
2224
"langchain-core ~=0.3.33",
2325
"langchain-community ~=0.3.16",
2426
"langchain-openai ~=0.2.9",
2527
"langchain-anthropic ~= 0.3.0",
26-
"langchain-google-genai ~=2.0.5",
28+
"langchain-google-genai ~=2.0.11",
2729
"langchain-groq ~=0.2.1",
28-
"langchain-aws ~=0.2.7",
30+
"langchain-aws ~=0.2.14",
2931
"langchain-ollama ~=0.2.3",
3032
"langgraph ~=0.2.68",
3133
"langgraph-checkpoint-sqlite ~=2.0.1",
3234
"langgraph-checkpoint-postgres ~=2.0.13",
3335
"langsmith ~=0.1.145",
3436
"numexpr ~=2.10.1",
37+
"numpy ~=1.26.4; python_version <= '3.12'",
38+
"numpy ~=2.2.3; python_version >= '3.13'",
39+
"pandas ~=2.2.3",
3540
"psycopg[binary,pool] ~=3.2.4",
36-
"pyarrow >=18.1.0", # python 3.13 support
41+
"pyarrow >=18.1.0",
3742
"pydantic ~=2.10.1",
3843
"pydantic-settings ~=2.6.1",
3944
"pyowm ~=3.3.0",
4045
"python-dotenv ~=1.0.1",
4146
"setuptools ~=75.6.0",
4247
"streamlit ~=1.40.1",
43-
"tiktoken >=0.8.0", # python 3.13 support
48+
"tiktoken >=0.8.0",
4449
"uvicorn ~=0.32.1",
4550
]
4651

0 commit comments

Comments
 (0)