-
Notifications
You must be signed in to change notification settings - Fork 202
Update Python 3.13 support and bump dependencies #192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
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>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The published e2b_charts 0.0.4 on PyPI still has numpy<2.0.0. Until a new version is published, install it separately with --no-deps. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Keep these files as-is on main; e2b_charts updates will be in a separate PR. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
This PR depends on #193 |
| nltk==3.9.1 | ||
| numpy==1.26.4 # bump blocked by gensim | ||
| numba==0.61.2 | ||
| numpy==2.3.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
won't this be a breaking change for somebody?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
possibly, but there's no way around if we want to be up-to-date - only numpy 2.x support slatest python version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming where it matters people probably already migrated to numpy 2 not waiting for us here
Summary
Testing
Build verified with:
python template/build_docker.py | docker build ./template -f -🤖 Generated with Claude Code
Note
Medium Risk
Upgrades the runtime to Python 3.13 and bumps core numeric/NLP libraries (notably
numpy2.x andscipy), which can introduce binary/API compatibility issues for downstream code and transitive deps.Overview
Updates the code-interpreter template runtime to Python 3.13 by switching the Docker base image in
template/template.py.Refreshes
template/requirements.txtto unblock 3.13 compatibility by bumping key packages (includinggensim,numpyto 2.3.5,numba,scipy, andspacy) and adds a changeset marking a minor release for@e2b/code-interpreter-template.Written by Cursor Bugbot for commit a49b990. This will update automatically on new commits. Configure here.