Sync from SUSE:SLFO:Main python-httptools revision f773b091733619b6b17c87fe2d34ed2a
This commit is contained in:
commit
66b0345306
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
BIN
http-parser-2.9.4.tar.gz
(Stored with Git LFS)
Normal file
BIN
http-parser-2.9.4.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
httptools-0.5.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
httptools-0.5.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
llhttp-release-v6.0.6.tar.gz
(Stored with Git LFS)
Normal file
BIN
llhttp-release-v6.0.6.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
56
python-httptools.changes
Normal file
56
python-httptools.changes
Normal file
@ -0,0 +1,56 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 13 19:15:04 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- restrict to older Cython
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 21 12:26:23 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- add sle15_python_module_pythons (jsc#PED-68)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 13 22:41:54 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Make calling of %{sle15modernpython} optional.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 12 03:35:36 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
|
||||
- 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 <code@bnavigator.de>
|
||||
|
||||
- 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 <simmphonie@opensuse.org>
|
||||
|
||||
- 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 <jayvdb@gmail.com>
|
||||
|
||||
- Initial spec for v0.1.1
|
72
python-httptools.spec
Normal file
72
python-httptools.spec
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user