From 2cc8ce9a89b76f74949bbd512ece5d77a414da2b5198f4e168ae1ad94ee47c06 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 10 Jan 2022 20:18:56 +0000 Subject: [PATCH] Accepting request 945402 from home:Simmphonie:python - 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) - Initial spec for v0.1.1 OBS-URL: https://build.opensuse.org/request/show/945402 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httptools?expand=0&rev=3 --- http-parser-2.9.4.tar.gz | 3 +++ httptools-0.1.1.tar.gz | 3 --- httptools-0.3.0.tar.gz | 3 +++ llhttp-release-v6.0.6.tar.gz | 3 +++ python-httptools.changes | 20 +++++++++++++++++++- python-httptools.spec | 30 +++++++++++++++++------------- 6 files changed, 45 insertions(+), 17 deletions(-) create mode 100644 http-parser-2.9.4.tar.gz delete mode 100644 httptools-0.1.1.tar.gz create mode 100644 httptools-0.3.0.tar.gz create mode 100644 llhttp-release-v6.0.6.tar.gz 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.1.1.tar.gz b/httptools-0.1.1.tar.gz deleted file mode 100644 index f0a77d6..0000000 --- a/httptools-0.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a340ec4ffeb3cf2ae7248d561d73437d255b78c5c315b8c31f6008af477b317b -size 14152 diff --git a/httptools-0.3.0.tar.gz b/httptools-0.3.0.tar.gz new file mode 100644 index 0000000..23f5f3c --- /dev/null +++ b/httptools-0.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a53c3ab6e760028ea2830347b98b27393e9f5f12df0269e397b98db492e15dcc +size 14890 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 index 9674dd8..67afd05 100644 --- a/python-httptools.changes +++ b/python-httptools.changes @@ -1,4 +1,22 @@ +------------------------------------------------------------------- +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 \ No newline at end of file +- Initial spec for v0.1.1 diff --git a/python-httptools.spec b/python-httptools.spec index bba0416..9b0606d 100644 --- a/python-httptools.spec +++ b/python-httptools.spec @@ -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