🔧 Python 3.13 Compatibility & Security Updates #206
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR upgrades all dependencies to ensure Python 3.13 compatibility and addresses critical security vulnerabilities from Python 3.10.
🚨 Security Motivation
This update addresses the following Critical and High CVEs:
📋 Key Changes
🐍 Core Python 3.13 Compatibility Fixes
pandas
2.2.1
2.2.3
psycopg2-binary
2.9.9
2.9.10
asyncpg
0.29.0
0.30.0
🔗 Dependency Resolution & Numpy 2.x Support
langchain-mongodb
0.2.0
>=0.4.0
numpy<2.0.0
conflictlangchain-aws
0.2.1
0.2.31
boto3
1.34.144
1.39.7
📦 Package Migration & Security Updates
rapidocr-onnxruntime
1.2.3
onnxruntime
1.20.1
rapidocr
2.0.6
pydantic
2.9.2
2.10.0
🎯 Explicit Numpy Requirement
Added:
numpy>=2.1.0
Why numpy was added explicitly:
To ensure
langchain-community
dependency resolution works correctly with Python 3.13.🧪 Testing Updates
Updated
test_requirements.txt
:pytest-postgresql==7.0.1
(caused import errors, tests are mocked)