Accepting request 961776 from devel:languages:python

- 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

OBS-URL: https://build.opensuse.org/request/show/961776
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-httpbin?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2022-03-16 20:30:17 +00:00 committed by Git OBS Bridge
commit 997ce16542
3 changed files with 25 additions and 7 deletions

14
fix-setup-py.patch Normal file
View File

@ -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'
],
)

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Mar 15 04:57:06 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <steven.kowalik@suse.com>

View File

@ -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