From ee0105265bcb080ff29d9621d66db7d9c3297070d3587768a22769a0d1c0c968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 24 Oct 2023 13:34:23 +0000 Subject: [PATCH] Accepting request 1119998 from home:mcalabkova:branches:devel:languages:python - Use Brotli instead of dropped brotlicffi OBS-URL: https://build.opensuse.org/request/show/1119998 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpbin?expand=0&rev=28 --- python-httpbin.changes | 5 +++++ python-httpbin.spec | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/python-httpbin.changes b/python-httpbin.changes index 50f183e..1bda103 100644 --- a/python-httpbin.changes +++ b/python-httpbin.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 24 13:30:26 UTC 2023 - Markéta Machová + +- Use Brotli instead of dropped brotlicffi + ------------------------------------------------------------------- Thu Oct 19 08:11:44 UTC 2023 - Markéta Machová diff --git a/python-httpbin.spec b/python-httpbin.spec index 5d28db7..b88f608 100644 --- a/python-httpbin.spec +++ b/python-httpbin.spec @@ -27,9 +27,9 @@ URL: https://github.com/psf/httpbin Source: https://files.pythonhosted.org/packages/source/h/%{modname}/%{modname}-%{version}.tar.gz # PATCH-FIX-UPSTREAM https://github.com/psf/httpbin/pull/29 Support Flask 3.0 Patch: flask3.patch +BuildRequires: %{python_module Brotli} BuildRequires: %{python_module Flask >= 2.2.4} BuildRequires: %{python_module Werkzeug >= 2.0} -BuildRequires: %{python_module brotlicffi} BuildRequires: %{python_module decorator} BuildRequires: %{python_module flasgger} BuildRequires: %{python_module gevent} @@ -39,9 +39,9 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-Brotli Requires: python-Flask >= 2.2.4 Requires: python-Werkzeug >= 2.0 -Requires: python-brotlicffi Requires: python-decorator Requires: python-flasgger Requires: python-gevent @@ -61,6 +61,8 @@ All endpoint responses are JSON-encoded. %prep %autosetup -p1 -n %{modname}-%{version} +# we are running CPython, let us use Brotli instead of brotlicffi (they should be compatible) +sed -i 's/brotlicffi/brotli/' httpbin/filters.py %build export LANG=en_US.UTF-8