diff --git a/docs/packages/torchcodec.yaml b/docs/packages/torchcodec.yaml index 35798da9d59..965ed1c5376 100644 --- a/docs/packages/torchcodec.yaml +++ b/docs/packages/torchcodec.yaml @@ -19,3 +19,4 @@ versions: - filename: torchcodec-0.16.0-cp314-cp314t-manylinux_2_39_riscv64.whl sha256: ec2737c8c840effbdfd0199774964969465f75e73b9afd4e8c59f754559208e7 requires-python: '>=3.10' +- version: 0.17.0 diff --git a/patches/torchcodec/0.17.0/0001-pyproject-glob-the-licence-texts-of-the-bundled-image.patch b/patches/torchcodec/0.17.0/0001-pyproject-glob-the-licence-texts-of-the-bundled-image.patch new file mode 100644 index 00000000000..ebd81722fe0 --- /dev/null +++ b/patches/torchcodec/0.17.0/0001-pyproject-glob-the-licence-texts-of-the-bundled-image.patch @@ -0,0 +1,49 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Ludovic Henry +Date: Fri, 19 Sep 2026 12:00:00 +0200 +Subject: [PATCH] pyproject: glob the licence texts of the bundled image codecs + +Upstream-Status: Inappropriate [our wheels are repaired by cibuildwheel's auditwheel, not by upstream's packaging/repair_wheel.py] + +torchcodec redistributes libjpeg-turbo, libpng, zlib and libwebp as +binaries inside the wheel, and their (permissive) licences require the +copyright notice to travel with the binary. Upstream satisfies that in +packaging/repair_wheel.py's bundle_third_party_licenses(), which unpacks +each freshly built wheel, copies the licence texts out of the conda +packages the libraries came from into .dist-info/licenses/third_party/, +and repacks. That path is unusable here for two independent reasons: it +resolves the texts through CONDA_PREFIX/conda-meta (there is no conda +environment in the manylinux image, the libraries come from Rocky rpms), +and it hardcodes dist/ -> dist_repaired/ plus a mandatory S3 libavif +directory, neither of which exists under cibuildwheel's own auditwheel +repair step. + +So the texts are staged next to the project's own LICENSE instead, as +LICENSE.., and picked up by widening the PEP 639 +license-files list. An explicit license-files list has no default glob +behind it, so without this the added files are silently dropped and the +wheel ships only torchcodec's own BSD text. + +Not riscv64-specific in substance, but it only makes sense for a build +that repairs wheels with plain auditwheel, so there is nothing to send +upstream. +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 4a52430..fde71b9 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -3,7 +3,7 @@ name = "torchcodec" + description = "A video decoder for PyTorch" + readme = "README.md" + requires-python = ">=3.10" +-license-files = ["LICENSE"] ++license-files = ["LICENSE", "LICENSE.*"] + authors = [ + { name = "PyTorch Team", email = "packages@pytorch.org" }, + ] +-- +2.51.0 +