commit 66b03453069be92f1ac50f4311dce2dba7fd1f9d315307c72b7c1c31e4edb238 Author: Adrian Schröter Date: Fri May 3 20:59:52 2024 +0200 Sync from SUSE:SLFO:Main python-httptools revision f773b091733619b6b17c87fe2d34ed2a diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/http-parser-2.9.4.tar.gz b/http-parser-2.9.4.tar.gz new file mode 100644 index 0000000..63b9ae4 --- /dev/null +++ b/http-parser-2.9.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:467b9e30fd0979ee301065e70f637d525c28193449e1b13fbcb1b1fab3ad224f +size 52056 diff --git a/httptools-0.5.0.tar.gz b/httptools-0.5.0.tar.gz new file mode 100644 index 0000000..3df6116 --- /dev/null +++ b/httptools-0.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20e4fb14552ff1528f8754384a3c15dc67f89349932234f88aa2ca55b7e18696 +size 14922 diff --git a/llhttp-release-v6.0.6.tar.gz b/llhttp-release-v6.0.6.tar.gz new file mode 100644 index 0000000..de2a2f3 --- /dev/null +++ b/llhttp-release-v6.0.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14023d0efce07a996a197d3b6b15020b26526605277e521f5aa10dacc3af67ad +size 38535 diff --git a/python-httptools.changes b/python-httptools.changes new file mode 100644 index 0000000..b78bc2c --- /dev/null +++ b/python-httptools.changes @@ -0,0 +1,56 @@ +------------------------------------------------------------------- +Sun Aug 13 19:15:04 UTC 2023 - Dirk Müller + +- restrict to older Cython + +------------------------------------------------------------------- +Fri Apr 21 12:26:23 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:41:54 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Wed Oct 12 03:35:36 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 0.5.0 + * Bump bundled llhttp to 6.0.9 + * fixes CVE-2022-32213, CVE-2022-32214, CVE-2022-32215 + (by @nlsj1985 in 56d6a16 for #83) + * Test and build against Python 3.11 + (by @elprans in 509cd14 for #84) + +------------------------------------------------------------------- +Mon Jul 18 20:30:01 UTC 2022 - Ben Greiner + +- update to version 0.4.0 + * Bump bundled http-parser to 2.9.4 and llhttp to 6.0.6 + fixes CVE-2021-22959 & CVE-2021-22960 + (bsc#1191602 and bsc#1191601) +- The above was already the case for the rpm package + +------------------------------------------------------------------- +Sun Jan 9 08:53:15 UTC 2022 - Torsten Gruner + +- update to version 0.3.0 + * Use cibuildwheel to build release wheels (by @elprans in 2f57b6b) +- version 0.2.0 + * Swap http-parse to llhttp + (by @victoraugustolls and @fantix in 63b5de2 for #56) + * Fix httptools.__all__ + (by @elprans in 9340d32 for #52) + * Add Python 3.9 in the build/test matrix + (by @b0g3r in e2d1a46 for #62) +- version 0.1.2 + * Fix httptools.__all__ + (by @elprans in 9340d32 for #52) + * Add Python 3.9 in the build/test matrix + (by @b0g3r in e2d1a46 for #62) + +------------------------------------------------------------------- +Wed Jul 29 16:07:13 UTC 2020 - John Vandenberg + +- Initial spec for v0.1.1 diff --git a/python-httptools.spec b/python-httptools.spec new file mode 100644 index 0000000..6ea1009 --- /dev/null +++ b/python-httptools.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-httptools +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python3-%{**}} +%define skip_python2 1 +%{?sle15_python_module_pythons} +Name: python-httptools +Version: 0.5.0 +Release: 0 +Summary: Python framework independent HTTP protocol utils +License: MIT +Group: Development/Languages/Python +URL: https://github.com/MagicStack/httptools +Source0: https://github.com/MagicStack/httptools/archive/v%{version}.tar.gz#/httptools-%{version}.tar.gz +Source1: https://github.com/nodejs/llhttp/archive/refs/tags/release/v6.0.6.tar.gz#/llhttp-release-v6.0.6.tar.gz +Source2: https://github.com/nodejs/http-parser/archive/refs/tags/v2.9.4.tar.gz#/http-parser-2.9.4.tar.gz +BuildRequires: %{python_module Cython >= 0.29.24 with %python-Cython < 3} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%python_subpackages + +%description +httptools is a Python binding for the nodejs HTTP parser. + +%prep +%setup -q -n httptools-%{version} +rm -df vendor/llhttp/ +tar -xzf '%{SOURCE1}' -C vendor +mv vendor/llhttp-release*/ vendor/llhttp/ +rm -df vendor/http-parser/ +tar -xzf '%{SOURCE2}' -C vendor +mv vendor/http-parser*/ vendor/http-parser/ + +%build +%python_build + +%install +%python_install +%{python_expand rm %{buildroot}%{$python_sitearch}/httptools/parser/*parser.c; +%fdupes %{buildroot}%{$python_sitearch} +} + +%check +%if 0%{suse_version} >= 1550 +# pytest on suse <= 15.4 does not support the required pytest importlib import mode +%pytest_arch -k 'not test_parser_response_1' +%endif + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitearch}/httptools +%{python_sitearch}/httptools-%{version}*-info + +%changelog