diff --git a/fix-setup-py.patch b/fix-setup-py.patch new file mode 100644 index 0000000..cbf01ce --- /dev/null +++ b/fix-setup-py.patch @@ -0,0 +1,14 @@ +Index: python-httpbin-0.7.0+git20181107.f8ec666/setup.py +=================================================================== +--- python-httpbin-0.7.0+git20181107.f8ec666.orig/setup.py ++++ python-httpbin-0.7.0+git20181107.f8ec666/setup.py +@@ -35,7 +35,7 @@ setup( + packages=find_packages(), + include_package_data = True, # include files listed in MANIFEST.in + install_requires=[ +- 'Flask', 'MarkupSafe', 'decorator', 'itsdangerous', 'six', 'brotlipy', +- 'raven[flask]', 'werkzeug>=0.14.1', 'gevent', 'flasgger' ++ 'Flask', 'MarkupSafe', 'decorator', 'itsdangerous', 'six', 'brotli', ++ 'werkzeug>=0.14.1', 'gevent', 'flasgger' + ], + ) diff --git a/python-httpbin.changes b/python-httpbin.changes index cf76fb6..a309ab6 100644 --- a/python-httpbin.changes +++ b/python-httpbin.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Mar 15 04:57:06 UTC 2022 - Steve Kowalik + +- Use of raven has been removed, drop it from {Build,}Requires. +- Add patch fix-setup-py.patch: + * Drop raven and fix brotli in setup.py + ------------------------------------------------------------------- Wed Jun 23 08:30:27 UTC 2021 - Steve Kowalik diff --git a/python-httpbin.spec b/python-httpbin.spec index 44f89ba..7a2f75a 100644 --- a/python-httpbin.spec +++ b/python-httpbin.spec @@ -1,7 +1,7 @@ # # spec file for package python-httpbin # -# Copyright (c) 2021 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 @@ -27,6 +27,8 @@ URL: https://github.com/Runscope/httpbin Source: python-httpbin-%{version}.tar.xz # https://github.com/postmanlabs/httpbin/pull/555 Patch0: werkzeug.patch +# Based on https://github.com/postmanlabs/httpbin/pull/553 +Patch1: fix-setup-py.patch BuildRequires: %{python_module Brotli} BuildRequires: %{python_module Flask} BuildRequires: %{python_module MarkupSafe} @@ -37,7 +39,6 @@ BuildRequires: %{python_module flasgger} BuildRequires: %{python_module gevent} BuildRequires: %{python_module itsdangerous} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module raven} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -50,7 +51,6 @@ Requires: python-decorator Requires: python-flasgger Requires: python-gevent Requires: python-itsdangerous -Requires: python-raven Requires: python-six BuildArch: noarch %python_subpackages @@ -66,10 +66,7 @@ all kinds of HTTP scenarios. Additional endpoints are being considered. All endpoint responses are JSON-encoded. %prep -%setup -q -%patch0 -p1 -# use normal Brotli google module not wrapper -sed -i -e 's:brotlipy:brotli:' setup.py +%autosetup -p1 %build export LANG=en_US.UTF-8