summaryrefslogtreecommitdiff
path: root/misc/py-torchdata
diff options
context:
space:
mode:
Diffstat (limited to 'misc/py-torchdata')
-rw-r--r--misc/py-torchdata/Makefile29
-rw-r--r--misc/py-torchdata/distinfo3
-rw-r--r--misc/py-torchdata/pkg-descr3
3 files changed, 35 insertions, 0 deletions
diff --git a/misc/py-torchdata/Makefile b/misc/py-torchdata/Makefile
new file mode 100644
index 000000000000..bac082d841fe
--- /dev/null
+++ b/misc/py-torchdata/Makefile
@@ -0,0 +1,29 @@
+PORTNAME= torchdata
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.11.0
+CATEGORIES= misc # machine-learning
+#MASTER_SITES= PYPI # no tarball
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= PyTorch: Composable data loading modules for PyTorch
+WWW= https://github.com/pytorch/data
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}urllib3>=1.25:net/py-urllib3@${PY_FLAVOR}
+
+USES= cmake:indirect python
+USE_PYTHON= distutils autoplist pytest
+
+USE_GITHUB= yes
+GH_ACCOUNT= pytorch
+GH_PROJECT= data
+
+NO_ARCH= yes
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+.include <bsd.port.mk>
diff --git a/misc/py-torchdata/distinfo b/misc/py-torchdata/distinfo
new file mode 100644
index 000000000000..ffd73d64f93a
--- /dev/null
+++ b/misc/py-torchdata/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1758254771
+SHA256 (pytorch-data-v0.11.0_GH0.tar.gz) = 945c53a8587567624aaad2d66204fbae9acb9535696554c53ffeb83320c308b9
+SIZE (pytorch-data-v0.11.0_GH0.tar.gz) = 1014016
diff --git a/misc/py-torchdata/pkg-descr b/misc/py-torchdata/pkg-descr
new file mode 100644
index 000000000000..59428a4bf8ff
--- /dev/null
+++ b/misc/py-torchdata/pkg-descr
@@ -0,0 +1,3 @@
+The TorchData project is an iterative enhancement to the PyTorch
+torch.utils.data.DataLoader and torch.utils.data.Dataset/IterableDataset
+to make them scalable, performant dataloading solutions.