From 7a12c190025a93d75fa5519356a5fb63d0d826cc Mon Sep 17 00:00:00 2001 From: Adam Allevato Date: Fri, 24 Oct 2025 21:15:59 -0500 Subject: [PATCH 1/5] Add onnxscript 0.4.0 as a dependency According to the pytorch docs (https://docs.pytorch.org/docs/stable/onnx_export.html), onnx export depends on onnxscript being installed. In PyTorch 2.9, the export behavior now defaults to torch.export instead of torch.onnx, which is a codepath that imports onnxscript eagerly. An alternative is to set dynamo=False on onnx export, but this is not recommended by PyTorch release notes. https://github.com/pytorch/pytorch/releases/tag/v2.9.0 --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 1f1817d4..56bfcfac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,7 @@ dependencies = [ "numpy>=1.16.4", "GitPython", "onnx", + "onnxscript==0.4.0", ] [project.urls] From 69bbca8277b07711962fb932666a0c988ce9091f Mon Sep 17 00:00:00 2001 From: Adam Allevato Date: Wed, 29 Oct 2025 08:26:12 -0500 Subject: [PATCH 2/5] Update onnxscript version to 0.5.4 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 56bfcfac..f4dbfb3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ dependencies = [ "numpy>=1.16.4", "GitPython", "onnx", - "onnxscript==0.4.0", + "onnxscript==0.5.4", ] [project.urls] From d6d4432463d77862c34534d63389f7af01b55301 Mon Sep 17 00:00:00 2001 From: ClemensSchwarke Date: Wed, 29 Oct 2025 15:48:45 +0100 Subject: [PATCH 3/5] add license --- licenses/dependencies/onnxscript-license.txt | 21 ++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 licenses/dependencies/onnxscript-license.txt diff --git a/licenses/dependencies/onnxscript-license.txt b/licenses/dependencies/onnxscript-license.txt new file mode 100644 index 00000000..48bc6bb4 --- /dev/null +++ b/licenses/dependencies/onnxscript-license.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Microsoft Corporation + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/pyproject.toml b/pyproject.toml index f4dbfb3a..05bdebbf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ dependencies = [ "numpy>=1.16.4", "GitPython", "onnx", - "onnxscript==0.5.4", + "onnxscript>=0.5.4", ] [project.urls] From 73682f5b2c60bbb5b636582deaa04406c9931534 Mon Sep 17 00:00:00 2001 From: Adam Allevato Date: Mon, 3 Nov 2025 22:32:47 -0600 Subject: [PATCH 4/5] Limit max version of onnxscript --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 05bdebbf..7cc17629 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ dependencies = [ "numpy>=1.16.4", "GitPython", "onnx", - "onnxscript>=0.5.4", + "onnxscript>=0.5.4,<1.0", ] [project.urls] From abc348d4d282c101ac3267c60d01dbd308dde8f8 Mon Sep 17 00:00:00 2001 From: Clemens Schwarke Date: Mon, 10 Nov 2025 15:41:27 +0100 Subject: [PATCH 5/5] remove max version limit --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7cc17629..05bdebbf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ dependencies = [ "numpy>=1.16.4", "GitPython", "onnx", - "onnxscript>=0.5.4,<1.0", + "onnxscript>=0.5.4", ] [project.urls]