Commit 92a27d0
Upgrade ONNX to 1.21.0 and align dependencies (onnxruntime, numpy, Python >=3.11) (#83)
* Bump onnx from 1.17.0 to 1.21.0 in /isolation-forest-onnx
Bumps [onnx](https://github.com/onnx/onnx) from 1.17.0 to 1.21.0.
- [Release notes](https://github.com/onnx/onnx/releases)
- [Changelog](https://github.com/onnx/onnx/blob/main/docs/Changelog-ml.md)
- [Commits](onnx/onnx@v1.17.0...v1.21.0)
---
updated-dependencies:
- dependency-name: onnx
dependency-version: 1.21.0
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Pin ONNX model IR version to 10 for onnxruntime compatibility
onnx 1.21.0 defaults to IR version 13, which is unsupported by
onnxruntime < 1.24.1. Since the model only uses opset 14, IR version 10
is sufficient and ensures broad onnxruntime compatibility.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Upgrade onnxruntime, numpy, and Python version for onnx 1.21.0 compatibility
- Upgrade onnxruntime from 1.19.2/1.18.0 to 1.24.1 (supports IR version 13
that onnx 1.21.0 produces by default)
- Upgrade numpy from 1.26.4 to 2.2.6 and fix np.trapz -> np.trapezoid
(trapz was removed in numpy 2.0)
- Update python_requires from >=3.9 to >=3.10 (required by onnx 1.21.0)
- Remove the ir_version=10 pin since onnxruntime 1.24.1 natively supports
IR version 13
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Align Python version in CI and Black config with python_requires >=3.10
- Update pypi-publish job from Python 3.9 to 3.10
- Update Black target-version from py39 to py310
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Pin ONNX model IR version to 10 for maximum runtime portability
The model only uses opset 14, which is fully supported by IR version 10.
Pinning avoids requiring onnxruntime >= 1.24.1 or other recent runtimes
just to load the model, maximizing cross-platform compatibility.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Add explicit Python setup to the build job
The build job runs Gradle which creates a Python venv for the
isolation-forest-onnx tests. Without setup-python, it relies on
whatever python3 the runner provides, which is implicit and fragile.
Pin to 3.10 to match python_requires.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Raise minimum Python to 3.12
onnxruntime 1.24.x only ships Linux wheels for Python 3.11+, and 3.12
is the current ubuntu-latest default. Since this is a converter tool
(not a foundational library), targeting 3.12 is a practical baseline
that ensures all dependencies have prebuilt wheels.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Set python_requires to >=3.11 based on actual dependency floor
onnxruntime 1.24.1 only ships wheels for Python 3.11+, making that the
true minimum. CI remains on 3.12 (runner default with full wheel
coverage), but the package contract should reflect what users can
actually install, not what CI happens to run.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Verbus <james.verbus@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a97198b commit 92a27d0
6 files changed
Lines changed: 17 additions & 10 deletions
File tree
- .github/workflows
- isolation-forest-onnx
- src/isolationforestonnx
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
115 | | - | |
| 119 | + | |
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
164 | 167 | | |
165 | 168 | | |
166 | 169 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments