forked from pool/python-httptools
Accepting request 945406 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/945406 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-httptools?expand=0&rev=2
This commit is contained in:
commit
3ba6f45ade
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.
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a340ec4ffeb3cf2ae7248d561d73437d255b78c5c315b8c31f6008af477b317b
|
||||
size 14152
|
3
httptools-0.3.0.tar.gz
Normal file
3
httptools-0.3.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a53c3ab6e760028ea2830347b98b27393e9f5f12df0269e397b98db492e15dcc
|
||||
size 14890
|
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.
@ -1,4 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
- Initial spec for v0.1.1
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-httptools
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -19,18 +19,19 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-httptools
|
||||
Version: 0.1.1
|
||||
Version: 0.3.0
|
||||
Release: 0
|
||||
Summary: Python framework independent HTTP protocol utils
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/MagicStack/httptools
|
||||
Source: https://github.com/MagicStack/httptools/archive/v%{version}.tar.gz#/httptools-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Cython}
|
||||
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}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: http-parser-devel
|
||||
BuildRequires: python-rpm-macros
|
||||
%python_subpackages
|
||||
|
||||
@ -39,23 +40,26 @@ httptools is a Python binding for the nodejs HTTP parser.
|
||||
|
||||
%prep
|
||||
%setup -q -n httptools-%{version}
|
||||
# unpin Cython
|
||||
sed -i 's/Cython==/Cython>=/' setup.py
|
||||
cp %{_includedir}/http_parser.h vendor/http-parser/
|
||||
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 build_ext --use-system-http-parser
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%{python_expand rm %{buildroot}%{$python_sitearch}/httptools/parser/parser.c
|
||||
%{python_expand rm %{buildroot}%{$python_sitearch}/httptools/parser/*parser.c;
|
||||
%fdupes %{buildroot}%{$python_sitearch}
|
||||
}
|
||||
|
||||
%if 0%{?python_version_nodots} > 36
|
||||
%check
|
||||
mv httptools .httptools
|
||||
%pytest_arch -k 'not (test_parser_response_1 or test_parser_url_2)'
|
||||
mv .httptools httptools
|
||||
%pytest_arch -k 'not test_parser_response_1'
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
|
Loading…
Reference in New Issue
Block a user