Skip to content

Commit afb0b1d

Browse files
committed
Fix Python version conditional dependencies for scikit-learn
- Add Python version markers to scikit-learn dependencies: - Python <3.10: scikit-learn>=1.3.0,<1.4.0 - Python >=3.10: scikit-learn>=1.3.0,<1.8.0 - This ensures compatibility with both Python 3.9 and newer versions - Resolves dependency resolution conflicts in CI environments The project now properly supports all Python versions (3.9-3.12) with appropriate scikit-learn versions.
1 parent ab539ee commit afb0b1d

File tree

2 files changed

+77
-93
lines changed

2 files changed

+77
-93
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ dependencies = [
4848
"numpy>=1.21.0",
4949
"pandas>=1.3.0",
5050
"scipy>=1.7.0",
51-
"scikit-learn>=1.3.0,<1.8.0",
51+
"scikit-learn>=1.3.0,<1.4.0; python_version < '3.10'",
52+
"scikit-learn>=1.3.0,<1.8.0; python_version >= '3.10'",
5253
"rich>=13.7.0",
5354
"numba>=0.60.0",
5455
"packaging>=21.0",

0 commit comments

Comments
 (0)