From c08df911a013027ff74c5af1da8d83c5b9a7023c Mon Sep 17 00:00:00 2001 From: Pris Nasrat Date: Thu, 8 Aug 2024 17:28:30 -0400 Subject: [PATCH] py3-onnx: new package (#25899) Signed-off-by: Pris Nasrat --------- Signed-off-by: Pris Nasrat --- py3-onnx.yaml | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 py3-onnx.yaml diff --git a/py3-onnx.yaml b/py3-onnx.yaml new file mode 100644 index 00000000000..783e7200eba --- /dev/null +++ b/py3-onnx.yaml @@ -0,0 +1,80 @@ +package: + name: py3-onnx + version: 1.16.2 + epoch: 0 + description: Open Neural Network Exchange + copyright: + - license: Apache-2.0 + dependencies: + provider-priority: 0 + +vars: + pypi-package: onnx + +data: + - name: py-versions + items: + 3.10: "310" + 3.11: "311" + 3.12: "312" + +environment: + contents: + packages: + - abseil-cpp-dev + - bash + - build-base + - busybox + - ca-certificates-bundle + - cmake + - ninja + - protobuf-dev + - py3-supported-pip + - py3-supported-protobuf + - py3-supported-python + - py3-supported-python-dev + - py3-supported-setuptools + - py3-supported-wheel + - wolfi-base + environment: + CMAKE_ARGS: "-DONNX_USE_PROTOBUF_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=MinSizeRel" + +pipeline: + - uses: fetch + with: + expected-sha256: b33a282b038813c4b69e73ea65c2909768e8dd6cc10619b70632335daf094646 + uri: https://files.pythonhosted.org/packages/source/o/onnx/onnx-${{package.version}}.tar.gz + + - name: install-numpy + needs: + packages: + - py3.10-numpy + - py3.11-numpy + - py3.12-numpy + +subpackages: + - range: py-versions + name: py${{range.key}}-${{vars.pypi-package}} + description: ${{vars.pypi-package}} installed for python${{range.key}} + dependencies: + runtime: + - py${{range.key}}-protobuf + - py${{range.key}}-numpy + provider-priority: ${{range.value}} + provides: + - py3-${{vars.pypi-package}} + pipeline: + - uses: py/pip-build-install + with: + python: python${{range.key}} + test: + pipeline: + - uses: python/import + with: + python: python${{range.key}} + import: ${{vars.pypi-package}} + +update: + enabled: true + release-monitor: + identifier: 146229