diff --git a/docs/packages/levenshtein.yaml b/docs/packages/levenshtein.yaml index 28a8ffdd01..013ba496a2 100644 --- a/docs/packages/levenshtein.yaml +++ b/docs/packages/levenshtein.yaml @@ -18,3 +18,4 @@ versions: - filename: levenshtein-0.27.4-cp314-cp314t-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl sha256: 99ec2ff95c4704776dcc3370222f1f6b1dea23a3fc0a501f65f95b746d1e724c requires-python: '>=3.10' +- version: 0.27.5 diff --git a/patches/levenshtein/0.27.5/0001-add-rapidfuzz-cpp-s-licence-next-to-the-package-s-ow.patch b/patches/levenshtein/0.27.5/0001-add-rapidfuzz-cpp-s-licence-next-to-the-package-s-ow.patch new file mode 100644 index 0000000000..897213ce6d --- /dev/null +++ b/patches/levenshtein/0.27.5/0001-add-rapidfuzz-cpp-s-licence-next-to-the-package-s-ow.patch @@ -0,0 +1,52 @@ +From bf9ae0e83c4011e185c7b6771c29dd286d8e08dd Mon Sep 17 00:00:00 2001 +From: Ludovic Henry +Date: Thu, 27 Aug 2026 04:32:51 +0200 +Subject: [PATCH] add rapidfuzz-cpp's licence next to the package's own + +Upstream-Status: To upstream [not yet submitted; the same gap exists in every Levenshtein wheel on PyPI, so this needs a maintainer discussion rather than a drive-by PR] + +The extension compiles in the bundled rapidfuzz-cpp headers +(extern/rapidfuzz-cpp, added by CMakeLists.txt via add_subdirectory when no +system rapidfuzz is found). That library is header-only and MIT-licensed by +Max Bachmann and Adam Cohen, and its terms require the copyright notice to +travel with binary redistributions, but the built wheel ships only +Levenshtein's own GPL LICENSE. + +Adding the file at the project root is enough on its own: with no +license-files key in pyproject.toml, scikit-build-core applies the PEP 639 +default glob (LICEN[CS]E*), so it lands in the wheel's dist-info/licenses/ +next to LICENSE with no packaging change. + +Signed-off-by: Ludovic Henry +--- + LICENSE.rapidfuzz-cpp | 21 +++++++++++++++++++++ + 1 file changed, 21 insertions(+) + create mode 100644 LICENSE.rapidfuzz-cpp + +diff --git a/LICENSE.rapidfuzz-cpp b/LICENSE.rapidfuzz-cpp +new file mode 100644 +index 0000000..5955fc6 +--- /dev/null ++++ b/LICENSE.rapidfuzz-cpp +@@ -0,0 +1,21 @@ ++Copyright © 2020 Max Bachmann ++Copyright © 2011 Adam Cohen ++ ++Permission is hereby granted, free of charge, to any person obtaining ++a copy of this software and associated documentation files (the ++"Software"), to deal in the Software without restriction, including ++without limitation the rights to use, copy, modify, merge, publish, ++distribute, sublicense, and/or sell copies of the Software, and to ++permit persons to whom the Software is furnished to do so, subject to ++the following conditions: ++ ++The above copyright notice and this permission notice shall be ++included in all copies or substantial portions of the Software. ++ ++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ++EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ++MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ++NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE ++LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION ++OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ++WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.