diff --git a/docs/packages/pylzss.yaml b/docs/packages/pylzss.yaml index c455b612e19a..47c439d47c67 100644 --- a/docs/packages/pylzss.yaml +++ b/docs/packages/pylzss.yaml @@ -30,3 +30,4 @@ versions: - filename: pylzss-0.3.8-cp314-cp314t-musllinux_1_2_riscv64.whl sha256: b8a68c195f59609191ddd269865f3a38deb371453ca71321d0d78f36e6f287ce requires-python: '>=3.8' +- version: 0.3.9 diff --git a/patches/pylzss/0.3.9/0001-ship-py3c-s-MIT-LICENSE-in-the-wheel-s-dist-info.patch b/patches/pylzss/0.3.9/0001-ship-py3c-s-MIT-LICENSE-in-the-wheel-s-dist-info.patch new file mode 100644 index 000000000000..ee737b5a4471 --- /dev/null +++ b/patches/pylzss/0.3.9/0001-ship-py3c-s-MIT-LICENSE-in-the-wheel-s-dist-info.patch @@ -0,0 +1,62 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Ludovic Henry +Date: Mon, 7 Sep 2026 19:32:04 +0200 +Subject: [PATCH] ship py3c's MIT LICENSE in the wheel's dist-info + +setup.py's sole extension compiles src/pylzss.c against the vendored +src/include/py3c headers (py3c.h, which pulls in py3c/compat.h, +py3c/comparison.h and py3c/py3shims.h) for its Python 2/3 string and +comparison shims. Those headers are encukou/py3c, MIT-licensed +(Copyright (c) 2015, Red Hat, Inc.), and their notice lives only as a +comment inside py3c.h itself - there is no separate LICENSE file next +to them for setuptools' default `LICEN[CS]E*`/`COPYING*` root glob to +pick up. + +pyproject.toml declares `license = {text = "LGPL-3.0-only"}` with no +`license-files` key, so that default glob is what ships the project's +own COPYING/COPYING.LESSER; it never reaches into src/include/py3c/, +and reproduced against the real +pylzss-0.3.8-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl +from PyPI, dist-info/ carries only COPYING and COPYING.LESSER - py3c's +MIT notice is compiled straight into the extension and shipped with no +attribution at all. + +Dropping the notice at the project root as LICENSE.py3c is picked up +by that same default glob with no packaging change, landing it in +dist-info/licenses/ alongside the project's own licence. + +Upstream-Status: To upstream [not filed against m1stadev/pylzss from this automated port; a maintainer should report it upstream] +--- + LICENSE.py3c | 21 +++++++++++++++++++++ + 1 file changed, 21 insertions(+) + create mode 100644 LICENSE.py3c + +diff --git a/LICENSE.py3c b/LICENSE.py3c +new file mode 100644 +index 0000000..f53284c +--- /dev/null ++++ b/LICENSE.py3c +@@ -0,0 +1,21 @@ ++The MIT License (MIT) ++ ++Copyright (c) 2015, Red Hat, Inc. and/or its affiliates ++ ++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. +-- +2.50.1 (Apple Git-155)