git: 720ec705100f - main - misc/py-onnxconverter-common: New port: ONNX converter and optimization tools
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 15 Mar 2025 09:04:35 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=720ec705100fbbf544ff7761ca5c9036cbac8854
commit 720ec705100fbbf544ff7761ca5c9036cbac8854
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-03-15 06:16:00 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-03-15 06:16:00 +0000
misc/py-onnxconverter-common: New port: ONNX converter and optimization tools
---
misc/Makefile | 1 +
misc/py-onnxconverter-common/Makefile | 26 ++++++++++++++++++++++++++
misc/py-onnxconverter-common/distinfo | 3 +++
misc/py-onnxconverter-common/pkg-descr | 4 ++++
4 files changed, 34 insertions(+)
diff --git a/misc/Makefile b/misc/Makefile
index ccb62c3afd73..a17dc3760ade 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -473,6 +473,7 @@
SUBDIR += py-ollama
SUBDIR += py-onnx
SUBDIR += py-onnx-tf
+ SUBDIR += py-onnxconverter-common
SUBDIR += py-openai
SUBDIR += py-openai-whisper
SUBDIR += py-openpaperwork-core
diff --git a/misc/py-onnxconverter-common/Makefile b/misc/py-onnxconverter-common/Makefile
new file mode 100644
index 000000000000..f889e6b8285d
--- /dev/null
+++ b/misc/py-onnxconverter-common/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= onnxconverter-common
+DISTVERSION= 1.14.0
+CATEGORIES= misc # machine-learning
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= ONNX converter and optimization tools
+WWW= https://github.com/microsoft/onnxconverter-common
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}onnx>0:misc/py-onnx@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}protobuf>=3.20.2:devel/py-protobuf@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/misc/py-onnxconverter-common/distinfo b/misc/py-onnxconverter-common/distinfo
new file mode 100644
index 000000000000..24318815fb7c
--- /dev/null
+++ b/misc/py-onnxconverter-common/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1742018366
+SHA256 (onnxconverter-common-1.14.0.tar.gz) = 6e431429bd15325c5b2c3eab61bed0d5634c23ed58f8823961be448d629d014a
+SIZE (onnxconverter-common-1.14.0.tar.gz) = 82146
diff --git a/misc/py-onnxconverter-common/pkg-descr b/misc/py-onnxconverter-common/pkg-descr
new file mode 100644
index 000000000000..d86f457a0dac
--- /dev/null
+++ b/misc/py-onnxconverter-common/pkg-descr
@@ -0,0 +1,4 @@
+The onnxconverter-common package provides common functions and utilities for use
+in converters from various AI frameworks to ONNX. It also enables the different
+converters to work together to convert a model from mixed frameworks, like a
+scikit-learn pipeline embedding a xgboost model.