aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-06-02 20:53:49 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-06-02 22:51:16 +0000
commitf157f336c57ac1c16ee417a2ed2b6ea93b184e05 (patch)
treeefc63c31972abfb4c78362aacc6b8725cc50422e
parentdcd9f3b140765b42d61e915162fd91a97d28a380 (diff)
multimedia/py-torchcodec: update 0.12.0 → 0.13.0
-rw-r--r--multimedia/py-torchcodec/Makefile11
-rw-r--r--multimedia/py-torchcodec/distinfo6
-rw-r--r--multimedia/py-torchcodec/files/patch-pyproject.toml13
3 files changed, 22 insertions, 8 deletions
diff --git a/multimedia/py-torchcodec/Makefile b/multimedia/py-torchcodec/Makefile
index 224364f2c4b6..9983eb002612 100644
--- a/multimedia/py-torchcodec/Makefile
+++ b/multimedia/py-torchcodec/Makefile
@@ -1,6 +1,6 @@
PORTNAME= torchcodec
DISTVERSIONPREFIX= v
-DISTVERSION= 0.12.0
+DISTVERSION= 0.13.0
CATEGORIES= multimedia python
#MASTER_SITES= PYPI # no tarball
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,8 +12,8 @@ WWW= https://github.com/pytorch/torchcodec
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= ${PY_SETUPTOOLS} \
- ${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR} \
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR} \
+ ${PY_SETUPTOOLS} \
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
pybind11>0:devel/pybind11
LIB_DEPENDS= libabsl_base.so:devel/abseil \
@@ -21,7 +21,8 @@ LIB_DEPENDS= libabsl_base.so:devel/abseil \
libprotobuf.so:devel/protobuf
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}torchvision>0:misc/py-torchvision@${PY_FLAVOR}
-TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow@${PY_FLAVOR}
USES= cmake:indirect compiler:c++17-lang python
USE_PYTHON= pep517 autoplist pytest
@@ -33,6 +34,6 @@ GH_ACCOUNT= meta-pytorch
MAKE_ENV= I_CONFIRM_THIS_IS_NOT_A_LICENSE_VIOLATION=1
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
-# tests as of 0.12.0: 290 failed, 1005 passed, 575 skipped, 3 warnings in 474.03s (0:07:54)
+# tests as of 0.13.0: 293 failed, 1527 passed, 745 skipped in 515.40s (0:08:35)
.include <bsd.port.mk>
diff --git a/multimedia/py-torchcodec/distinfo b/multimedia/py-torchcodec/distinfo
index 0a05962e675e..3f75828b1b49 100644
--- a/multimedia/py-torchcodec/distinfo
+++ b/multimedia/py-torchcodec/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1778963179
-SHA256 (meta-pytorch-torchcodec-v0.12.0_GH0.tar.gz) = f0cc21c1f99439cff30eb43080e9bc8e43c6b9505b4f327cb42ee132075bcec4
-SIZE (meta-pytorch-torchcodec-v0.12.0_GH0.tar.gz) = 14265182
+TIMESTAMP = 1780432436
+SHA256 (meta-pytorch-torchcodec-v0.13.0_GH0.tar.gz) = acc955dbd7b80dcb6268fd3ff728477af0ba7fd79b4251c1ef685fdd5e2229e4
+SIZE (meta-pytorch-torchcodec-v0.13.0_GH0.tar.gz) = 14295989
diff --git a/multimedia/py-torchcodec/files/patch-pyproject.toml b/multimedia/py-torchcodec/files/patch-pyproject.toml
new file mode 100644
index 000000000000..4020df9ab5d7
--- /dev/null
+++ b/multimedia/py-torchcodec/files/patch-pyproject.toml
@@ -0,0 +1,13 @@
+-- Remove invalid license-files property from pyproject.toml.
+-- The license-files property is not supported by the version of setuptools available on FreeBSD, causing a build failure. It is a relatively new PEP 639 feature.
+
+--- pyproject.toml.orig 2026-06-02 20:36:38 UTC
++++ pyproject.toml
+@@ -3,7 +3,6 @@ requires-python = ">=3.10"
+ description = "A video decoder for PyTorch"
+ readme = "README.md"
+ requires-python = ">=3.10"
+-license-files = ["LICENSE"]
+ authors = [
+ { name = "PyTorch Team", email = "packages@pytorch.org" },
+ ]