Skip to content

Commit 25d2105

Browse files
committed
Dependencies: Permit installation on Python 3.13
1 parent 00b4573 commit 25d2105

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

pycaret/__init__.py

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,10 @@
88

99
__all__ = ["show_versions", "__version__"]
1010

11-
# Pycaret only supports python 3.9, 3.10, 3.11, 3.12
12-
# This code is to avoid issues with python 3.7 or other not supported versions
13-
# example (see package versions): https://github.com/pycaret/pycaret/issues/3746
11+
# Pycaret only supports Python 3.9, 3.10, 3.11, 3.12, 3.13.
12+
# This code is to avoid issues with Python 3.7 or other unsupported versions.
13+
# Example (see package versions): https://github.com/pycaret/pycaret/issues/3746.
1414

15-
if sys.version_info < (3, 9):
16-
raise RuntimeError(
17-
"Pycaret only supports python 3.9, 3.10, 3.11, 3.12. Your actual Python version: ",
18-
sys.version_info,
19-
"Please UPGRADE your Python version.",
20-
)
21-
elif sys.version_info >= (3, 13):
22-
raise RuntimeError(
23-
"Pycaret only supports python 3.9, 3.10, 3.11, 3.12. Your actual Python version: ",
24-
sys.version_info,
25-
"Please DOWNGRADE your Python version.",
26-
)
15+
if sys.version_info < (3, 9) or sys.version_info >= (3, 14):
16+
raise RuntimeError(f"Pycaret only supports Python 3.9, 3.10, 3.11, 3.12, 3.13. "
17+
f"Your actual Python version is {sys.version_info}.")

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
ipython>=5.5.0
33
ipywidgets>=7.6.5
44
tqdm>=4.62.0
5-
numpy>=1.21, <1.27
5+
numpy>=1.21,<2.2
66
pandas>=2.2.0 #latest sktime makes tests fail if pandas 2.1
77
jinja2>=3
8-
scipy>=1.6.1,<=1.11.4 #to fix later (https://github.com/mljar/mljar-supervised/issues/691)
8+
scipy>=1.6.1,<=1.16 #to fix later (https://github.com/mljar/mljar-supervised/issues/691)
99
joblib>=1.2.0,<1.4 # joblib<1.2.0 is vulnerable to Arbitrary Code Execution (https://github.com/advisories/GHSA-6hrg-qmvc-2xh8) # joblib 1.4.0 breaks PyCaret
1010
scikit-learn>1.4.0
1111
pyod>=1.1.3 #1.1.3 to support scikit-learn 1.4 (https://github.com/yzhao062/pyod/issues/542)
@@ -26,7 +26,7 @@ trio>=0.22.0,<0.25.0 #fixes problems about third-party packages, remove after ht
2626
setuptools; python_version>='3.12'
2727

2828
# Plotting
29-
matplotlib<3.8.0 #stem(..., use_line_collection=False) is no longer supported.
29+
matplotlib<3.11 #stem(..., use_line_collection=False) is no longer supported since 3.8
3030
mljar-scikit-plot #this is a updated version of original scikit-plot
3131
# yellowbrick<=1.5, have conflict with recent matplotlib by use_line_collection error
3232
# should use yellowbrick>1.5 when fixed (https://github.com/DistrictDataLabs/yellowbrick/issues/1312)

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def readme():
6161
"Programming Language :: Python :: 3.10",
6262
"Programming Language :: Python :: 3.11",
6363
"Programming Language :: Python :: 3.12",
64+
"Programming Language :: Python :: 3.13",
6465
"Topic :: Scientific/Engineering :: Artificial Intelligence",
6566
"License :: OSI Approved :: MIT License",
6667
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)