diff --git a/docs/packages/srsly.yaml b/docs/packages/srsly.yaml index daca5adcafd..ef8bf376fff 100644 --- a/docs/packages/srsly.yaml +++ b/docs/packages/srsly.yaml @@ -18,3 +18,4 @@ versions: - filename: srsly-2.5.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl sha256: 69e43bf0cbf57b538ee88f87b1183bc395a039c38f880cf0e066342f54997edc requires-python: <3.15,>=3.9 +- version: 2.5.4 diff --git a/patches/srsly/2.5.4/0001-package-the-vendored-ruamel.yaml-licence-with-the-wh.patch b/patches/srsly/2.5.4/0001-package-the-vendored-ruamel.yaml-licence-with-the-wh.patch new file mode 100644 index 00000000000..faae78c4188 --- /dev/null +++ b/patches/srsly/2.5.4/0001-package-the-vendored-ruamel.yaml-licence-with-the-wh.patch @@ -0,0 +1,58 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Ludovic Henry +Date: Thu, 27 Aug 2026 04:43:26 +0200 +Subject: [PATCH] package the vendored ruamel.yaml licence with the wheels + +Upstream-Status: To upstream [not yet submitted; the same gap is in every srsly 2.x wheel on PyPI and srsly 3.0.0 unvendors the library altogether, so this needs a maintainer decision on the 2.x line rather than a drive-by PR] + +srsly vendors ruamel.yaml under srsly/ruamel_yaml and ships it in every +wheel, but srsly/ruamel_yaml/LICENSE is not packaged: MANIFEST.in only +recurses over source files and PACKAGE_DATA only globs *.pyx/*.pxd/*.c/ +*.h/*.cpp, so the wheel carries srsly's own MIT LICENSE alone. None of +the vendored ruamel.yaml modules carries a copyright header either, so +nothing in the wheel reproduces the notice its MIT licence requires to +travel with copies. + +The other vendored trees do not have this problem -- ujson, msgpack and +cloudpickle each keep their full licence text in the sources that ship in +the wheel (srsly/ujson/lib/ultrajson.h, srsly/msgpack/pack.h, +srsly/cloudpickle/cloudpickle.py). + +Copying the file to the project root as LICENSE.ruamel_yaml needs no +packaging change: setuptools' default license_files glob is LICEN[CS]E* +at the root, so it lands in the wheel's dist-info/licenses/ beside +srsly's own. + +Signed-off-by: Ludovic Henry +--- + LICENSE.ruamel_yaml | 21 +++++++++++++++++++++ + 1 file changed, 21 insertions(+) + create mode 100644 LICENSE.ruamel_yaml + +diff --git a/LICENSE.ruamel_yaml b/LICENSE.ruamel_yaml +new file mode 100644 +index 0000000..5b863d3 +--- /dev/null ++++ b/LICENSE.ruamel_yaml +@@ -0,0 +1,21 @@ ++ The MIT License (MIT) ++ ++ Copyright (c) 2014-2020 Anthon van der Neut, Ruamel bvba ++ ++ 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.