Skip to content

Commit e3ccc9b

Browse files
committed
fix: restore Python 3.13 support with proper system dependencies
- Add Python 3.13 back to CI workflows (test, lint, compile integration) - Install OpenBLAS development libraries (libopenblas-dev, liblapack-dev, gfortran) - Fix SciPy build issues by providing required BLAS dependencies - Update migration documentation to reflect Python 3.10-3.13 support - SciPy does support Python 3.13, issue was missing system libraries in CI
1 parent 4811f7e commit e3ccc9b

File tree

5 files changed

+33
-13
lines changed

5 files changed

+33
-13
lines changed

.github/workflows/_compile_integration_test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,17 @@ jobs:
2323
- "3.10"
2424
- "3.11"
2525
- "3.12"
26+
- "3.13"
2627
name: "poetry run pytest -m compile tests/integration_tests #${{ matrix.python-version }}"
2728
steps:
2829
- uses: actions/checkout@v4
2930

31+
- name: Install system dependencies
32+
shell: bash
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get install -y libopenblas-dev liblapack-dev gfortran
36+
3037
- name: Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }}
3138
uses: "./.github/actions/poetry_setup"
3239
with:

.github/workflows/_lint.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,16 @@ jobs:
3030
# so linting on fewer versions makes CI faster.
3131
python-version:
3232
- "3.10"
33-
- "3.12"
33+
- "3.13"
3434
steps:
3535
- uses: actions/checkout@v4
3636

37+
- name: Install system dependencies
38+
shell: bash
39+
run: |
40+
sudo apt-get update
41+
sudo apt-get install -y libopenblas-dev liblapack-dev gfortran
42+
3743
- name: Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }}
3844
uses: "./.github/actions/poetry_setup"
3945
with:

.github/workflows/_test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,17 @@ jobs:
2323
- "3.10"
2424
- "3.11"
2525
- "3.12"
26+
- "3.13"
2627
name: "make test #${{ matrix.python-version }}"
2728
steps:
2829
- uses: actions/checkout@v4
2930

31+
- name: Install system dependencies
32+
shell: bash
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get install -y libopenblas-dev liblapack-dev gfortran
36+
3037
- name: Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }}
3138
uses: "./.github/actions/poetry_setup"
3239
with:

libs/redis/MIGRATION_V1.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
**Minimum Python version is now 3.10+**
1414

1515
- **Python 3.9 is no longer supported** (reaches end-of-life October 2025)
16-
- **Supported versions**: Python 3.10, 3.11, 3.12
17-
- **Not yet supported**: Python 3.13, 3.14 (awaiting dependency updates)
16+
- **Supported versions**: Python 3.10, 3.11, 3.12, 3.13
17+
- **Not yet supported**: Python 3.14 (awaiting dependency updates)
1818

1919
**Action Required:**
2020
- If you're on Python 3.9, upgrade to Python 3.10 or higher
21-
- If you're on Python 3.10-3.12, no action needed
22-
- If you're on Python 3.13+, please use Python 3.10-3.12 until future release
21+
- If you're on Python 3.10-3.13, no action needed
22+
- If you're on Python 3.14, please use Python 3.10-3.13 until future release
2323

2424
#### 2. Dependency Updates
2525

@@ -264,8 +264,8 @@ pip install --upgrade --force-reinstall langchain-redis langchain-core
264264
| 3.9 | ❌ Not supported | EOL October 2025 |
265265
| 3.10 | ✅ Supported | Minimum version |
266266
| 3.11 | ✅ Supported | Recommended |
267-
| 3.12 | ✅ Supported | Latest supported |
268-
| 3.13 | ⏳ Coming soon | Awaiting scipy/dependency updates |
267+
| 3.12 | ✅ Supported | Recommended |
268+
| 3.13 | ✅ Supported | Latest |
269269
| 3.14 | ⏳ Coming soon | Awaiting dependency updates |
270270

271271
## Need Help?
@@ -289,9 +289,9 @@ pip install --upgrade --force-reinstall langchain-redis langchain-core
289289

290290
**A:** Yes! There are no changes to how data is stored in Redis. All existing indices, caches, and chat histories will continue to work.
291291

292-
### Q: When will Python 3.13+ be supported?
292+
### Q: When will Python 3.14 be supported?
293293

294-
**A:** Python 3.13+ support will be added in a future release once our scientific dependencies (like `scipy`) add full support for these versions.
294+
**A:** Python 3.14 support will be added in a future release once our dependencies add support for Python 3.14.
295295

296296
### Q: Can I use langchain-redis v0.3.0 with langchain-core 0.3.x?
297297

libs/redis/docs/MIGRATION_V1.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
**Minimum Python version is now 3.10+**
1414

1515
- **Python 3.9 is no longer supported** (reaches end-of-life October 2025)
16-
- **Supported versions**: Python 3.10, 3.11, 3.12
17-
- **Not yet supported**: Python 3.13, 3.14 (awaiting dependency updates)
16+
- **Supported versions**: Python 3.10, 3.11, 3.12, 3.13
17+
- **Not yet supported**: Python 3.14 (awaiting dependency updates)
1818

1919
**Action Required:**
2020
- If you're on Python 3.9, upgrade to Python 3.10 or higher
21-
- If you're on Python 3.10-3.12, no action needed
22-
- If you're on Python 3.13+, please use Python 3.10-3.12 until future release
21+
- If you're on Python 3.10-3.13, no action needed
22+
- If you're on Python 3.14, please use Python 3.10-3.13 until future release
2323

2424
#### 2. Dependency Updates
2525

0 commit comments

Comments
 (0)