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,38 +1,39 @@ PORTNAME= torchcodec DISTVERSIONPREFIX= v -DISTVERSION= 0.12.0 +DISTVERSION= 0.13.0 CATEGORIES= multimedia python #MASTER_SITES= PYPI # no tarball PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= PyTorch media decoding and encoding 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 \ libavformat.so:multimedia/ffmpeg \ 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 USE_GITHUB= yes GH_ACCOUNT= meta-pytorch #MAKE_ENV= BUILD_AGAINST_ALL_FFMPEG_FROM_S3=1 # downloads binaries with this choice, see https://github.com/meta-pytorch/torchcodec/issues/1194 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 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" }, + ]