From 9e339f1b28fc280d8e9e0f7883286ed596f7d300 Mon Sep 17 00:00:00 2001 From: Dmitrii Cherkasov Date: Tue, 13 May 2025 08:37:28 -0700 Subject: [PATCH 1/5] Fixes python 3_12 compatibility --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9a2dcf6c9..cdd13c0b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,7 @@ classifiers = [ # In dependencies se "; platform_machine == 'aarch64'" to specify ARM underlying platform # Copied from install_requires list in setup.py, setup.py got removed in favor of this config file dependencies = [ - "PyYAML>=6", # pyyaml 5.4 is broken with cython 3 + "PyYAML>=6.0.1", # pyyaml 5.4 is broken with cython 3 "asteval>=0.9.25", "cerberus>=1.3.4", "cloudpickle>=1.6.0", From e2b25cea7fb94497c037e4e067f7982f9cd607c7 Mon Sep 17 00:00:00 2001 From: Dmitrii Cherkasov Date: Tue, 13 May 2025 09:49:10 -0700 Subject: [PATCH 2/5] Fixes onnx dependencies --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cdd13c0b6..d97bdac7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -107,10 +107,10 @@ notebook = ["ipython>=7.23.1, <8.0", "ipywidgets~=7.6.3"] onnx = [ "lightgbm", "onnx>=1.12.0,<=1.15.0; python_version < '3.12'", # v 1.15.0 set base on onnxrutime version and onnx opset support - https://onnxruntime.ai/docs/reference/compatibility.html#onnx-opset-support - "onnx>=1.12.0; python_version >= '3.12'", # v 1.15.0 set base on onnxrutime version and onnx opset support - https://onnxruntime.ai/docs/reference/compatibility.html#onnx-opset-support + "onnx~=1.15.0; python_version >= '3.12'", # v 1.15.0 set base on onnxrutime version and onnx opset support - https://onnxruntime.ai/docs/reference/compatibility.html#onnx-opset-support "onnxmltools>=1.10.0", "onnxruntime~=1.17.0,!=1.16.0; python_version < '3.12'", # v1.17.0 used in Oracle Database 23ai; avoid v1.16 https://github.com/microsoft/onnxruntime/issues/17631, revealed by unit tests - "onnxruntime; python_version >= '3.12'", # v1.17.0 used in Oracle Database 23ai; avoid v1.16 https://github.com/microsoft/onnxruntime/issues/17631, revealed by unit tests + "onnxruntime>=1.17.0; python_version >= '3.12'", # v1.17.0 used in Oracle Database 23ai; avoid v1.16 https://github.com/microsoft/onnxruntime/issues/17631, revealed by unit tests "oracle_ads[viz]", "protobuf", "skl2onnx>=1.10.4", From 82184bada1db82592bd2e4fa4cdb578e43a0ef66 Mon Sep 17 00:00:00 2001 From: Dmitrii Cherkasov Date: Tue, 13 May 2025 10:46:33 -0700 Subject: [PATCH 3/5] Fixes skl2onnx dependencies --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d97bdac7e..c03b8567c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -113,7 +113,8 @@ onnx = [ "onnxruntime>=1.17.0; python_version >= '3.12'", # v1.17.0 used in Oracle Database 23ai; avoid v1.16 https://github.com/microsoft/onnxruntime/issues/17631, revealed by unit tests "oracle_ads[viz]", "protobuf", - "skl2onnx>=1.10.4", + "skl2onnx>=1.10.4; python_version < '3.12'", + "skl2onnx~=1.15.0; python_version >= '3.12'", # pinned to align exactly with onnx 1.15.x "tf2onnx", "xgboost<=1.7", ] From d574050d773e65a737fe249f166ad51584cc4457 Mon Sep 17 00:00:00 2001 From: Dmitrii Cherkasov Date: Tue, 13 May 2025 10:55:30 -0700 Subject: [PATCH 4/5] Rollbacks some onnx dependencies --- pyproject.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c03b8567c..1d8ceda9b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -107,14 +107,13 @@ notebook = ["ipython>=7.23.1, <8.0", "ipywidgets~=7.6.3"] onnx = [ "lightgbm", "onnx>=1.12.0,<=1.15.0; python_version < '3.12'", # v 1.15.0 set base on onnxrutime version and onnx opset support - https://onnxruntime.ai/docs/reference/compatibility.html#onnx-opset-support - "onnx~=1.15.0; python_version >= '3.12'", # v 1.15.0 set base on onnxrutime version and onnx opset support - https://onnxruntime.ai/docs/reference/compatibility.html#onnx-opset-support + "onnx>=1.12.0; python_version >= '3.12'", # v 1.15.0 set base on onnxrutime version and onnx opset support - https://onnxruntime.ai/docs/reference/compatibility.html#onnx-opset-support "onnxmltools>=1.10.0", "onnxruntime~=1.17.0,!=1.16.0; python_version < '3.12'", # v1.17.0 used in Oracle Database 23ai; avoid v1.16 https://github.com/microsoft/onnxruntime/issues/17631, revealed by unit tests "onnxruntime>=1.17.0; python_version >= '3.12'", # v1.17.0 used in Oracle Database 23ai; avoid v1.16 https://github.com/microsoft/onnxruntime/issues/17631, revealed by unit tests "oracle_ads[viz]", "protobuf", - "skl2onnx>=1.10.4; python_version < '3.12'", - "skl2onnx~=1.15.0; python_version >= '3.12'", # pinned to align exactly with onnx 1.15.x + "skl2onnx>=1.10.4", "tf2onnx", "xgboost<=1.7", ] From ca5caca0b6646edfe61d9f0485925e11b58167f6 Mon Sep 17 00:00:00 2001 From: Dmitrii Cherkasov Date: Tue, 13 May 2025 11:59:54 -0700 Subject: [PATCH 5/5] Modify onnx dependencies --- pyproject.toml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1d8ceda9b..f76e206cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -107,13 +107,14 @@ notebook = ["ipython>=7.23.1, <8.0", "ipywidgets~=7.6.3"] onnx = [ "lightgbm", "onnx>=1.12.0,<=1.15.0; python_version < '3.12'", # v 1.15.0 set base on onnxrutime version and onnx opset support - https://onnxruntime.ai/docs/reference/compatibility.html#onnx-opset-support - "onnx>=1.12.0; python_version >= '3.12'", # v 1.15.0 set base on onnxrutime version and onnx opset support - https://onnxruntime.ai/docs/reference/compatibility.html#onnx-opset-support - "onnxmltools>=1.10.0", + "onnx~=1.17.0; python_version >= '3.12'", # v 1.15.0 set base on onnxrutime version and onnx opset support - https://onnxruntime.ai/docs/reference/compatibility.html#onnx-opset-support + "onnxmltools~=1.13.0", "onnxruntime~=1.17.0,!=1.16.0; python_version < '3.12'", # v1.17.0 used in Oracle Database 23ai; avoid v1.16 https://github.com/microsoft/onnxruntime/issues/17631, revealed by unit tests - "onnxruntime>=1.17.0; python_version >= '3.12'", # v1.17.0 used in Oracle Database 23ai; avoid v1.16 https://github.com/microsoft/onnxruntime/issues/17631, revealed by unit tests + "onnxruntime~=1.22.0; python_version >= '3.12'", # v1.17.0 used in Oracle Database 23ai; avoid v1.16 https://github.com/microsoft/onnxruntime/issues/17631, revealed by unit tests "oracle_ads[viz]", "protobuf", - "skl2onnx>=1.10.4", + "skl2onnx>=1.10.4; python_version < '3.12'", + "skl2onnx~=1.18.0; python_version >= '3.12'", "tf2onnx", "xgboost<=1.7", ]