diff --git a/docs/packages/numcodecs.yaml b/docs/packages/numcodecs.yaml index 4f486dffd6b5..e6b656fda354 100644 --- a/docs/packages/numcodecs.yaml +++ b/docs/packages/numcodecs.yaml @@ -28,3 +28,4 @@ versions: - filename: numcodecs-0.17.0-cp314-cp314-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl sha256: 783123f7a336030d5fd788434907cb35a7edc6c7a7e37e702531a7fe66f99933 requires-python: '>=3.12' +- version: 0.17.1 diff --git a/patches/numcodecs/0.17.1/0001-package-the-vendored-Zstandard-licence-with-the-whee.patch b/patches/numcodecs/0.17.1/0001-package-the-vendored-Zstandard-licence-with-the-whee.patch new file mode 100644 index 000000000000..1eed299064e7 --- /dev/null +++ b/patches/numcodecs/0.17.1/0001-package-the-vendored-Zstandard-licence-with-the-whee.patch @@ -0,0 +1,72 @@ +From 549b17d44763dd0f767330f41635fa99f2344490 Mon Sep 17 00:00:00 2001 +From: Ludovic Henry +Date: Fri, 28 Aug 2026 05:01:05 +0200 +Subject: [PATCH] package the vendored Zstandard licence with the wheels + +Upstream-Status: To upstream [not yet submitted; the same gap exists in every numcodecs wheel on PyPI, so it needs a maintainer discussion rather than a drive-by PR] + +numcodecs compiles the Zstandard sources that c-blosc vendors under +c-blosc/internal-complibs/zstd-1.5.6 into both numcodecs.zstd and +numcodecs.blosc, but that directory carries no licence text: c-blosc +strips it when vendoring, and its own LICENSES directory covers only +bitshuffle, fastlz, lz4, snappy, stdint and zlib/zlib-ng. The wheel's +license-files list globs exactly those, so every published numcodecs +wheel redistributes Zstandard in binary form without the copyright +notice its BSD-3-Clause licence requires to travel with it. + +Add zstd 1.5.6's own LICENSE at the project root and list it, so it +lands in dist-info/licenses beside the others. +--- + LICENSE.zstd | 30 ++++++++++++++++++++++++++++++ + pyproject.toml | 1 + + 2 files changed, 31 insertions(+) + create mode 100644 LICENSE.zstd + +diff --git a/LICENSE.zstd b/LICENSE.zstd +new file mode 100644 +index 0000000..7580028 +--- /dev/null ++++ b/LICENSE.zstd +@@ -0,0 +1,30 @@ ++BSD License ++ ++For Zstandard software ++ ++Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. ++ ++Redistribution and use in source and binary forms, with or without modification, ++are permitted provided that the following conditions are met: ++ ++ * Redistributions of source code must retain the above copyright notice, this ++ list of conditions and the following disclaimer. ++ ++ * Redistributions in binary form must reproduce the above copyright notice, ++ this list of conditions and the following disclaimer in the documentation ++ and/or other materials provided with the distribution. ++ ++ * Neither the name Facebook, nor Meta, nor the names of its contributors may ++ be used to endorse or promote products derived from this software without ++ specific prior written permission. ++ ++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ++ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ++WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ++DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ++ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ++(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ++LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ++ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ++(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ++SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +diff --git a/pyproject.toml b/pyproject.toml +index 185ecc3..e6ff30e 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -36,6 +36,7 @@ maintainers = [ + license = "MIT" + license-files = [ + "LICENSE.txt", ++ "LICENSE.zstd", + "c-blosc/LICENSE.txt", + "c-blosc/LICENSES/*", + ]