Skip to content

Commit 986fe73

Browse files
mishushakovclaude
andcommitted
Update Python 3.13 support: bump dependencies and fix numpy constraints
Update template to Python 3.13 base image and bump key packages for compatibility: - numpy 1.26.4 → 2.3.5 (Python 3.13 requires numpy 2.x) - scipy 1.13.1 → 1.17.0, gensim 4.3.3 → 4.4.0, numba 0.61.2 → 0.63.1, spacy 3.8.2 → 3.8.11 - e2b_charts: relax numpy constraint from ^1.26.4 to >=1.26.4 for numpy 2 compatibility Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 5de870c commit 986fe73

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

chart_data_extractor/pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ packages = [{ include = "e2b_charts" }]
1212
[tool.poetry.dependencies]
1313
python = "^3.10"
1414

15-
numpy = "^1.26.4"
16-
matplotlib = "^3.9.2"
17-
pydantic = "^2.8.2"
15+
numpy = ">=1.26.4"
16+
matplotlib = "^3.10.3"
17+
pydantic = "^2.9.1"
1818

1919
[tool.poetry.group.dev.dependencies]
20-
pytest = "^7.4.0"
21-
python-dotenv = "^1.0.0"
20+
pytest = "^8.3.5"
21+
python-dotenv = "^1.2.1"
2222
pytest-dotenv = "^0.5.2"
2323
ruff = "^0.11.12"
2424

template/requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ e2b_charts
1515
aiohttp==3.13.3
1616
beautifulsoup4==4.13.4
1717
bokeh==3.8.2
18-
gensim==4.3.3 # unmaintained, blocking numpy and scipy bump
18+
gensim==4.4.0
1919
imageio==2.37.0
2020
joblib==1.5.0
2121
librosa==0.11.0
2222
nltk==3.9.1
23-
numpy==1.26.4 # bump blocked by gensim
24-
numba==0.61.2
23+
numpy==2.3.5
24+
numba==0.63.1
2525
opencv-python==4.11.0.86
2626
openpyxl==3.1.5
2727
plotly==6.0.1
@@ -32,10 +32,10 @@ pytz==2025.2
3232
requests==2.32.4
3333
scikit-image==0.25.2
3434
scikit-learn==1.6.1
35-
scipy==1.13.1 # bump blocked by gensim
35+
scipy==1.17.0
3636
seaborn==0.13.2
3737
soundfile==0.13.1
38-
spacy==3.8.2 # doesn't work on 3.13.x
38+
spacy==3.8.11
3939
textblob==0.19.0
4040
tornado==6.5.1
4141
urllib3==2.6.3

template/template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def make_template(
99
# Start with base template
1010
template = (
1111
Template()
12-
.from_image("python:3.12")
12+
.from_image("python:3.13")
1313
.set_user("root")
1414
.set_workdir("/root")
1515
.set_envs(

0 commit comments

Comments
 (0)