aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-12-27 18:22:54 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-12-27 19:26:00 +0000
commit3e79fa112e352925d8f689f21aa98885418c59fa (patch)
tree80cf4d334acb39b685c41e27226fbf1a7874f525
parent4999e18d903259c9c297e2029b70a09eb95380fa (diff)
misc/py-mmengine: New port: Engine of OpenMMLab projects: training PyTorch deep learning models
-rw-r--r--misc/Makefile1
-rw-r--r--misc/py-mmengine/Makefile31
-rw-r--r--misc/py-mmengine/distinfo3
-rw-r--r--misc/py-mmengine/pkg-descr6
4 files changed, 41 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index e821650d7b5b..1cef8d6330b7 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -434,6 +434,7 @@
SUBDIR += py-lightning-utilities
SUBDIR += py-log_symbols
SUBDIR += py-mffpy
+ SUBDIR += py-mmengine
SUBDIR += py-molequeue
SUBDIR += py-mxnet
SUBDIR += py-npTDMS
diff --git a/misc/py-mmengine/Makefile b/misc/py-mmengine/Makefile
new file mode 100644
index 000000000000..5edef1de736b
--- /dev/null
+++ b/misc/py-mmengine/Makefile
@@ -0,0 +1,31 @@
+PORTNAME= mmengine
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.10.2
+CATEGORIES= misc # machine-learning
+#MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Engine of OpenMMLab projects: training PyTorch deep learning models
+WWW= https://mmengine.readthedocs.io/en/latest/
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}addict>=0:devel/py-addict@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}matplotlib>=0:math/py-matplotlib@${PY_FLAVOR} \
+ ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}rich>=0:textproc/py-rich@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}termcolor>=0:devel/py-termcolor@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}yapf>=0:textproc/py-yapf@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= distutils autoplist # pytest: many test dependencies are missing
+
+USE_GITHUB= yes
+GH_ACCOUNT= open-mmlab
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/misc/py-mmengine/distinfo b/misc/py-mmengine/distinfo
new file mode 100644
index 000000000000..eb2e9bd0966f
--- /dev/null
+++ b/misc/py-mmengine/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1703698050
+SHA256 (open-mmlab-mmengine-v0.10.2_GH0.tar.gz) = 232a3cb8ba9d63ae0e08005b1a1316ed72dd4ac2f5bab7190ecd28fd34d51477
+SIZE (open-mmlab-mmengine-v0.10.2_GH0.tar.gz) = 1435639
diff --git a/misc/py-mmengine/pkg-descr b/misc/py-mmengine/pkg-descr
new file mode 100644
index 000000000000..0f80e8954046
--- /dev/null
+++ b/misc/py-mmengine/pkg-descr
@@ -0,0 +1,6 @@
+MMEngine is a foundational library for training deep learning models based on
+PyTorch. It provides a solid engineering foundation and frees developers from
+writing redundant codes on workflows. It serves as the training engine of all
+OpenMMLab codebases, which support hundreds of algorithms in various research
+areas. Moreover, MMEngine is also generic to be applied to non-OpenMMLab
+projects.