Skip to content

Commit 80eab97

Browse files
authored
Fixes python 3.12 ONNX compatibility issues (#1181)
1 parent 77fed9b commit 80eab97

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ classifiers = [
5555
# In dependencies se "<library>; platform_machine == 'aarch64'" to specify ARM underlying platform
5656
# Copied from install_requires list in setup.py, setup.py got removed in favor of this config file
5757
dependencies = [
58-
"PyYAML>=6", # pyyaml 5.4 is broken with cython 3
58+
"PyYAML>=6.0.1", # pyyaml 5.4 is broken with cython 3
5959
"asteval>=0.9.25",
6060
"cerberus>=1.3.4",
6161
"cloudpickle>=1.6.0",
@@ -107,13 +107,14 @@ notebook = ["ipython>=7.23.1, <8.0", "ipywidgets~=7.6.3"]
107107
onnx = [
108108
"lightgbm",
109109
"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
110-
"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
111-
"onnxmltools>=1.10.0",
110+
"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
111+
"onnxmltools~=1.13.0",
112112
"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
113-
"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
113+
"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
114114
"oracle_ads[viz]",
115115
"protobuf",
116-
"skl2onnx>=1.10.4",
116+
"skl2onnx>=1.10.4; python_version < '3.12'",
117+
"skl2onnx~=1.18.0; python_version >= '3.12'",
117118
"tf2onnx",
118119
"xgboost<=1.7",
119120
]

0 commit comments

Comments
 (0)