From 676e7769d0983306432e1b964d40ed416f38a68d74fe484feaece3ce9d836ee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 12 Mar 2019 16:00:51 +0000 Subject: [PATCH] - Update to 0.7.0: * no upstream changelog - Enable tests - Add missing dependencies OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpbin?expand=0&rev=7 --- httpbin-0.5.0.tar.gz | 3 --- httpbin-0.7.0.tar.gz | 3 +++ python-httpbin.changes | 8 ++++++++ python-httpbin.spec | 40 ++++++++++++++++++++++++++++++---------- 4 files changed, 41 insertions(+), 13 deletions(-) delete mode 100644 httpbin-0.5.0.tar.gz create mode 100644 httpbin-0.7.0.tar.gz diff --git a/httpbin-0.5.0.tar.gz b/httpbin-0.5.0.tar.gz deleted file mode 100644 index 7938ad8..0000000 --- a/httpbin-0.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:79fbc5d27e4194ea908b0fa18e09a59d95d287c91667aa69bcd010342d1589b5 -size 88698 diff --git a/httpbin-0.7.0.tar.gz b/httpbin-0.7.0.tar.gz new file mode 100644 index 0000000..44a12c8 --- /dev/null +++ b/httpbin-0.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cbb37790c91575f4f15757f42ad41d9f729eb227d5edbe89e4ec175486db8dfa +size 92613 diff --git a/python-httpbin.changes b/python-httpbin.changes index 5ad2b9e..a9ceea6 100644 --- a/python-httpbin.changes +++ b/python-httpbin.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Mar 12 15:50:39 UTC 2019 - Tomáš Chvátal + +- Update to 0.7.0: + * no upstream changelog +- Enable tests +- Add missing dependencies + ------------------------------------------------------------------- Tue Apr 4 17:56:34 UTC 2017 - jmatejek@suse.com diff --git a/python-httpbin.spec b/python-httpbin.spec index e8223ce..8b1435b 100644 --- a/python-httpbin.spec +++ b/python-httpbin.spec @@ -1,7 +1,7 @@ # # spec file for package python-httpbin # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,34 +12,49 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-httpbin -Version: 0.5.0 +Version: 0.7.0 Release: 0 -License: MIT Summary: HTTP Request and Response Service -Url: https://github.com/Runscope/httpbin +License: MIT Group: Development/Languages/Python +URL: https://github.com/Runscope/httpbin Source: https://files.pythonhosted.org/packages/source/h/httpbin/httpbin-%{version}.tar.gz -BuildRequires: python-rpm-macros +BuildRequires: %{python_module Brotli} +BuildRequires: %{python_module Flask} +BuildRequires: %{python_module MarkupSafe} +BuildRequires: %{python_module Werkzeug >= 0.14.1} +BuildRequires: %{python_module blinker} +BuildRequires: %{python_module decorator} +BuildRequires: %{python_module gevent} +BuildRequires: %{python_module itsdangerous} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module raven} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-Brotli Requires: python-Flask Requires: python-MarkupSafe +Requires: python-Werkzeug >= 0.14.1 +Requires: python-blinker Requires: python-decorator +Requires: python-gevent Requires: python-itsdangerous +Requires: python-raven Requires: python-six -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch - %python_subpackages %description httpbin(1): HTTP Request & Response Service - Testing an HTTP Library can become difficult sometimes. RequestBin is fantastic for testing POST requests, but doesn't let you control the response. This exists to cover @@ -57,9 +72,14 @@ export LANG=en_US.UTF-8 %install export LANG=en_US.UTF-8 %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest %files %{python_files} -%defattr(-,root,root,-) +%license LICENSE +%doc README.md %{python_sitelib}/* %changelog