From 09015c889f3614036c021a7ddfe9a698680c2eb3e6f19ebd8c3600576d596f29 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 13 Nov 2017 09:32:36 +0000 Subject: [PATCH 01/11] Accepting request 541173 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/541173 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpbin?expand=0&rev=3 --- httpbin-0.5.0.tar.gz | 3 -- httpbin-0.6.2.tar.gz | 3 ++ python-httpbin.changes | 74 ++++++++++++++++++++++++++++++++++++++++++ python-httpbin.spec | 9 ++--- 4 files changed, 82 insertions(+), 7 deletions(-) delete mode 100644 httpbin-0.5.0.tar.gz create mode 100644 httpbin-0.6.2.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.6.2.tar.gz b/httpbin-0.6.2.tar.gz new file mode 100644 index 0000000..d287564 --- /dev/null +++ b/httpbin-0.6.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0afa0486a76305cac441b5cc80d5d4ccd82b20875da7c5119ecfe616cefef45f +size 86288 diff --git a/python-httpbin.changes b/python-httpbin.changes index 5ad2b9e..5c8677b 100644 --- a/python-httpbin.changes +++ b/python-httpbin.changes @@ -1,3 +1,77 @@ +------------------------------------------------------------------- +Sun Nov 12 17:31:47 UTC 2017 - arun@gmx.de + +- update to version 0.6.2: + * Add back fake cookie and make requiring it conditional + * Change base Dockerfile from Python 2 to Python 3 + +- changes from version 0.6.1: + * Revert "chunked encoding" + * uuid4 + +- changes from version 0.6.0: + * chunked encoding + * Allow all methods on /anything + * Update dockerfile + * each 'id' attribute should only appear once + * Split and strip qop. + * Add test for wrong password and expired (reused) nonce value + * Add test to verify „stale after” scenario + * Refactor digest_auth test to be able add missing test cases in + next commits + * Improve when stale is reported + * Move stale functionality to main digest url + * Add new location where digest authentication reports stale of + nonce + * Add /anything route + * add POST to methods kwarg + * Flask-Common + * Mention that "stream-bytes" uses chunked encoding + * Adding an etag URL for testing If-Match and If-None-Match logic + * fix Content-Length header value for /range endpoint + * Total-Route-Time + * hide x-request-id #342 + * get_ipaddr + * use gevent + * add sentry to httpbin application + * fine, 3.4 for whatever reason + * update tox + * Update README.md + * simplify readme + * remove links to http2bin, since it's down + * migrate to pipfile + * Brotli content-encoding renamed to 'br'. + * Add basic do-almost-nothing Brotli endpoint test + * Add a Brotli endpoint. + * don't specify gunicorn workers + * update python version + * Add missing endpoints to README + * README: add a note that /status/code supports multiple codes + * status/code: return 400 on invalid status code + * Correct display of endpoints + * Clarify image endpoints + * Use Response.data with older Werkzeug versions + * should return content-length when requesting range, and that + content-length should be the range specified in the url (i.e., + range/1024 has length 1024) + * Check numbytes parameter before initial delay + * Add test for drip with invalid numbytes parameter + * Fix divide by zero error in drip + * Encode HA2() string parameters 'method', 'uri' and 'H(entityBody)' + * Minor refactoring of _test_digest_auth + * Update comments, minor fixes + * Enable test cases for Digest auth requests with or without body + * Add test for different combinations of digest auth parameters + * Check response status code in + test_digest_auth_with_wrong_password() + * Add test implementation for Digest authentication + * Pass algorithm parameter to H() + * remove unused variable `form` from `helpers.get_dict` (#304) + * advertise HTTP/2 mirror (#303) + * use io.open() for long_description from file (#299) + * Set GUNICORN_WORKERS by environment variable. + * Add basic Dockerfile. + ------------------------------------------------------------------- Tue Apr 4 17:56:34 UTC 2017 - jmatejek@suse.com diff --git a/python-httpbin.spec b/python-httpbin.spec index e8223ce..4c4be52 100644 --- a/python-httpbin.spec +++ b/python-httpbin.spec @@ -13,19 +13,20 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-httpbin -Version: 0.5.0 +Version: 0.6.2 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 setuptools} +BuildRequires: python-rpm-macros Requires: python-Flask Requires: python-MarkupSafe Requires: python-decorator From 4d389e812d09adf111ac1cb854f55c1cf99ec0f4699706e352a059607418f1a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Tue, 14 Nov 2017 13:51:51 +0000 Subject: [PATCH 02/11] osc copypac from project:devel:languages:python package:python-httpbin revision:2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpbin?expand=0&rev=4 --- httpbin-0.5.0.tar.gz | 3 ++ httpbin-0.6.2.tar.gz | 3 -- python-httpbin.changes | 74 ------------------------------------------ python-httpbin.spec | 9 +++-- 4 files changed, 7 insertions(+), 82 deletions(-) create mode 100644 httpbin-0.5.0.tar.gz delete mode 100644 httpbin-0.6.2.tar.gz diff --git a/httpbin-0.5.0.tar.gz b/httpbin-0.5.0.tar.gz new file mode 100644 index 0000000..7938ad8 --- /dev/null +++ b/httpbin-0.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79fbc5d27e4194ea908b0fa18e09a59d95d287c91667aa69bcd010342d1589b5 +size 88698 diff --git a/httpbin-0.6.2.tar.gz b/httpbin-0.6.2.tar.gz deleted file mode 100644 index d287564..0000000 --- a/httpbin-0.6.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0afa0486a76305cac441b5cc80d5d4ccd82b20875da7c5119ecfe616cefef45f -size 86288 diff --git a/python-httpbin.changes b/python-httpbin.changes index 5c8677b..5ad2b9e 100644 --- a/python-httpbin.changes +++ b/python-httpbin.changes @@ -1,77 +1,3 @@ -------------------------------------------------------------------- -Sun Nov 12 17:31:47 UTC 2017 - arun@gmx.de - -- update to version 0.6.2: - * Add back fake cookie and make requiring it conditional - * Change base Dockerfile from Python 2 to Python 3 - -- changes from version 0.6.1: - * Revert "chunked encoding" - * uuid4 - -- changes from version 0.6.0: - * chunked encoding - * Allow all methods on /anything - * Update dockerfile - * each 'id' attribute should only appear once - * Split and strip qop. - * Add test for wrong password and expired (reused) nonce value - * Add test to verify „stale after” scenario - * Refactor digest_auth test to be able add missing test cases in - next commits - * Improve when stale is reported - * Move stale functionality to main digest url - * Add new location where digest authentication reports stale of - nonce - * Add /anything route - * add POST to methods kwarg - * Flask-Common - * Mention that "stream-bytes" uses chunked encoding - * Adding an etag URL for testing If-Match and If-None-Match logic - * fix Content-Length header value for /range endpoint - * Total-Route-Time - * hide x-request-id #342 - * get_ipaddr - * use gevent - * add sentry to httpbin application - * fine, 3.4 for whatever reason - * update tox - * Update README.md - * simplify readme - * remove links to http2bin, since it's down - * migrate to pipfile - * Brotli content-encoding renamed to 'br'. - * Add basic do-almost-nothing Brotli endpoint test - * Add a Brotli endpoint. - * don't specify gunicorn workers - * update python version - * Add missing endpoints to README - * README: add a note that /status/code supports multiple codes - * status/code: return 400 on invalid status code - * Correct display of endpoints - * Clarify image endpoints - * Use Response.data with older Werkzeug versions - * should return content-length when requesting range, and that - content-length should be the range specified in the url (i.e., - range/1024 has length 1024) - * Check numbytes parameter before initial delay - * Add test for drip with invalid numbytes parameter - * Fix divide by zero error in drip - * Encode HA2() string parameters 'method', 'uri' and 'H(entityBody)' - * Minor refactoring of _test_digest_auth - * Update comments, minor fixes - * Enable test cases for Digest auth requests with or without body - * Add test for different combinations of digest auth parameters - * Check response status code in - test_digest_auth_with_wrong_password() - * Add test implementation for Digest authentication - * Pass algorithm parameter to H() - * remove unused variable `form` from `helpers.get_dict` (#304) - * advertise HTTP/2 mirror (#303) - * use io.open() for long_description from file (#299) - * Set GUNICORN_WORKERS by environment variable. - * Add basic Dockerfile. - ------------------------------------------------------------------- Tue Apr 4 17:56:34 UTC 2017 - jmatejek@suse.com diff --git a/python-httpbin.spec b/python-httpbin.spec index 4c4be52..e8223ce 100644 --- a/python-httpbin.spec +++ b/python-httpbin.spec @@ -13,20 +13,19 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ -# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-httpbin -Version: 0.6.2 +Version: 0.5.0 Release: 0 -Summary: HTTP Request and Response Service License: MIT -Group: Development/Languages/Python +Summary: HTTP Request and Response Service Url: https://github.com/Runscope/httpbin +Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/h/httpbin/httpbin-%{version}.tar.gz -BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} Requires: python-Flask Requires: python-MarkupSafe Requires: python-decorator From 406ea58a61c41f8e5424657069968f494108dd7e27e7d52243bb909ca2a67af4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 5 Mar 2018 18:21:35 +0000 Subject: [PATCH 03/11] Accepting request 583082 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/583082 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpbin?expand=0&rev=5 --- httpbin-0.5.0.tar.gz | 3 --- httpbin-0.6.2.tar.gz | 3 +++ python-httpbin.changes | 6 ++++++ python-httpbin.spec | 9 +++++---- 4 files changed, 14 insertions(+), 7 deletions(-) delete mode 100644 httpbin-0.5.0.tar.gz create mode 100644 httpbin-0.6.2.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.6.2.tar.gz b/httpbin-0.6.2.tar.gz new file mode 100644 index 0000000..d287564 --- /dev/null +++ b/httpbin-0.6.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0afa0486a76305cac441b5cc80d5d4ccd82b20875da7c5119ecfe616cefef45f +size 86288 diff --git a/python-httpbin.changes b/python-httpbin.changes index 5ad2b9e..96f8413 100644 --- a/python-httpbin.changes +++ b/python-httpbin.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Nov 19 05:18:01 UTC 2017 - arun@gmx.de + +- update to version 0.6.2: + * no changelog available + ------------------------------------------------------------------- Tue Apr 4 17:56:34 UTC 2017 - jmatejek@suse.com diff --git a/python-httpbin.spec b/python-httpbin.spec index e8223ce..4c4be52 100644 --- a/python-httpbin.spec +++ b/python-httpbin.spec @@ -13,19 +13,20 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-httpbin -Version: 0.5.0 +Version: 0.6.2 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 setuptools} +BuildRequires: python-rpm-macros Requires: python-Flask Requires: python-MarkupSafe Requires: python-decorator From c9a7f744624e2f65eaf7f6a5b1fb018caefbb45223ad8df10ac3a6975c890cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Thu, 19 Apr 2018 22:14:52 +0000 Subject: [PATCH 04/11] osc copypac from project:devel:languages:python package:python-httpbin revision:4 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpbin?expand=0&rev=6 --- httpbin-0.5.0.tar.gz | 3 +++ httpbin-0.6.2.tar.gz | 3 --- python-httpbin.changes | 6 ------ python-httpbin.spec | 9 ++++----- 4 files changed, 7 insertions(+), 14 deletions(-) create mode 100644 httpbin-0.5.0.tar.gz delete mode 100644 httpbin-0.6.2.tar.gz diff --git a/httpbin-0.5.0.tar.gz b/httpbin-0.5.0.tar.gz new file mode 100644 index 0000000..7938ad8 --- /dev/null +++ b/httpbin-0.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79fbc5d27e4194ea908b0fa18e09a59d95d287c91667aa69bcd010342d1589b5 +size 88698 diff --git a/httpbin-0.6.2.tar.gz b/httpbin-0.6.2.tar.gz deleted file mode 100644 index d287564..0000000 --- a/httpbin-0.6.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0afa0486a76305cac441b5cc80d5d4ccd82b20875da7c5119ecfe616cefef45f -size 86288 diff --git a/python-httpbin.changes b/python-httpbin.changes index 96f8413..5ad2b9e 100644 --- a/python-httpbin.changes +++ b/python-httpbin.changes @@ -1,9 +1,3 @@ -------------------------------------------------------------------- -Sun Nov 19 05:18:01 UTC 2017 - arun@gmx.de - -- update to version 0.6.2: - * no changelog available - ------------------------------------------------------------------- Tue Apr 4 17:56:34 UTC 2017 - jmatejek@suse.com diff --git a/python-httpbin.spec b/python-httpbin.spec index 4c4be52..e8223ce 100644 --- a/python-httpbin.spec +++ b/python-httpbin.spec @@ -13,20 +13,19 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ -# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-httpbin -Version: 0.6.2 +Version: 0.5.0 Release: 0 -Summary: HTTP Request and Response Service License: MIT -Group: Development/Languages/Python +Summary: HTTP Request and Response Service Url: https://github.com/Runscope/httpbin +Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/h/httpbin/httpbin-%{version}.tar.gz -BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} Requires: python-Flask Requires: python-MarkupSafe Requires: python-decorator 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 05/11] - 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 From 31dc3cfe38579543f702bfc79ecbf16837802129c41e2dc61a497cfc63d3007c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 14 Mar 2019 12:48:25 +0000 Subject: [PATCH 06/11] Accepting request 685009 from devel:languages:python reverty OBS-URL: https://build.opensuse.org/request/show/685009 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpbin?expand=0&rev=8 --- 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, 13 insertions(+), 41 deletions(-) create mode 100644 httpbin-0.5.0.tar.gz delete mode 100644 httpbin-0.7.0.tar.gz diff --git a/httpbin-0.5.0.tar.gz b/httpbin-0.5.0.tar.gz new file mode 100644 index 0000000..7938ad8 --- /dev/null +++ b/httpbin-0.5.0.tar.gz @@ -0,0 +1,3 @@ +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 deleted file mode 100644 index 44a12c8..0000000 --- a/httpbin-0.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cbb37790c91575f4f15757f42ad41d9f729eb227d5edbe89e4ec175486db8dfa -size 92613 diff --git a/python-httpbin.changes b/python-httpbin.changes index a9ceea6..5ad2b9e 100644 --- a/python-httpbin.changes +++ b/python-httpbin.changes @@ -1,11 +1,3 @@ -------------------------------------------------------------------- -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 8b1435b..e8223ce 100644 --- a/python-httpbin.spec +++ b/python-httpbin.spec @@ -1,7 +1,7 @@ # # spec file for package python-httpbin # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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,49 +12,34 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ -# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-httpbin -Version: 0.7.0 +Version: 0.5.0 Release: 0 -Summary: HTTP Request and Response Service License: MIT +Summary: HTTP Request and Response Service +Url: https://github.com/Runscope/httpbin 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_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 +BuildRequires: %{python_module setuptools} 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 @@ -72,14 +57,9 @@ 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} -%license LICENSE -%doc README.md +%defattr(-,root,root,-) %{python_sitelib}/* %changelog From 6a27575baa558acfcf92c2ae7d5e54a709afca28f0422d551bbf31118fde5ced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 14 Mar 2019 13:16:45 +0000 Subject: [PATCH 07/11] - Switch to service, upstream is now at release 0.9.2 but nobody bothers with tags, keep the last tagged/pypi release as a version and add all other stuff as git commit - Update to version 0.7.0+git20181107.f8ec666: * Corrected repository URL in app.json. * remove duplicated "X-Forwarded-For" from ENV_HEADERS * Added Python 3.7 to Travis/Tox. * Removed httpbin.org link which is mentioned 3 times in README - 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=9 --- _service | 14 +++++++ httpbin-0.5.0.tar.gz | 3 -- ...n-httpbin-0.7.0+git20181107.f8ec666.tar.xz | 3 ++ python-httpbin.changes | 20 +++++++++ python-httpbin.spec | 41 +++++++++++++------ 5 files changed, 66 insertions(+), 15 deletions(-) create mode 100644 _service delete mode 100644 httpbin-0.5.0.tar.gz create mode 100644 python-httpbin-0.7.0+git20181107.f8ec666.tar.xz diff --git a/_service b/_service new file mode 100644 index 0000000..b84f71d --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + python-httpbin + git://github.com/postmanlabs/httpbin.git + git + enable + 0.7.0+git%cd.%h + + + xz + *.tar + + + 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/python-httpbin-0.7.0+git20181107.f8ec666.tar.xz b/python-httpbin-0.7.0+git20181107.f8ec666.tar.xz new file mode 100644 index 0000000..2247d81 --- /dev/null +++ b/python-httpbin-0.7.0+git20181107.f8ec666.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab0787e72373f6f4f01fed6ee7521c75aa9c4dfc17a584a7770f286d5bedd256 +size 97964 diff --git a/python-httpbin.changes b/python-httpbin.changes index 5ad2b9e..38ea6be 100644 --- a/python-httpbin.changes +++ b/python-httpbin.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Thu Mar 14 11:53:37 UTC 2019 - tchvatal@suse.com + +- Switch to service, upstream is now at release 0.9.2 but nobody + bothers with tags, keep the last tagged/pypi release as a version + and add all other stuff as git commit +- Update to version 0.7.0+git20181107.f8ec666: + * Corrected repository URL in app.json. + * remove duplicated "X-Forwarded-For" from ENV_HEADERS + * Added Python 3.7 to Travis/Tox. + * Removed httpbin.org link which is mentioned 3 times in README + +------------------------------------------------------------------- +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..a75ab74 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,46 @@ # 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+git20181107.f8ec666 Release: 0 -License: MIT Summary: HTTP Request and Response Service -Url: https://github.com/Runscope/httpbin +License: MIT Group: Development/Languages/Python -Source: https://files.pythonhosted.org/packages/source/h/httpbin/httpbin-%{version}.tar.gz -BuildRequires: python-rpm-macros +URL: https://github.com/Runscope/httpbin +Source: python-httpbin-%{version}.tar.xz +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 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 Requires: python-Flask Requires: python-MarkupSafe Requires: python-decorator +Requires: python-flasgger +Requires: python-gevent Requires: python-itsdangerous 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 @@ -48,7 +60,7 @@ all kinds of HTTP scenarios. Additional endpoints are being considered. All endpoint responses are JSON-encoded. %prep -%setup -q -n httpbin-%{version} +%setup -q %build export LANG=en_US.UTF-8 @@ -57,9 +69,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,-) +%doc README.md +%license LICENSE %{python_sitelib}/* %changelog From 6bb61ed0212789b30f01cbf6beef493e317889fce7c2040ec5d8b89ed6a5858f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 14 Mar 2019 13:20:03 +0000 Subject: [PATCH 08/11] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpbin?expand=0&rev=10 --- python-httpbin.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-httpbin.spec b/python-httpbin.spec index a75ab74..2bda59d 100644 --- a/python-httpbin.spec +++ b/python-httpbin.spec @@ -39,6 +39,7 @@ BuildRequires: %{python_module raven} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-Brotli Requires: python-Flask Requires: python-MarkupSafe Requires: python-decorator From 74aa66be36e893af72de28830b311ee595c8abd76b568aab2bfa6a834c4b8cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 14 Mar 2019 13:30:12 +0000 Subject: [PATCH 09/11] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpbin?expand=0&rev=11 --- python-httpbin.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python-httpbin.spec b/python-httpbin.spec index 2bda59d..d02748f 100644 --- a/python-httpbin.spec +++ b/python-httpbin.spec @@ -42,10 +42,12 @@ BuildRequires: python-rpm-macros Requires: python-Brotli Requires: python-Flask Requires: python-MarkupSafe +Requires: python-Werkzeug >= 0.14.1 Requires: python-decorator Requires: python-flasgger Requires: python-gevent Requires: python-itsdangerous +Requires: python-raven Requires: python-six BuildArch: noarch %python_subpackages From f0b7ccd3a65c835072a312e46be1426e7153c0f750a49a43d4e9b9399dc71e5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 14 Mar 2019 13:32:01 +0000 Subject: [PATCH 10/11] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpbin?expand=0&rev=12 --- python-httpbin.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python-httpbin.spec b/python-httpbin.spec index d02748f..8afa248 100644 --- a/python-httpbin.spec +++ b/python-httpbin.spec @@ -64,6 +64,8 @@ All endpoint responses are JSON-encoded. %prep %setup -q +# use normal Brotli google module not wrapper +sed -i -e 's:brotlipy:brotli:' setup.py %build export LANG=en_US.UTF-8 From 3061bc5fa8b34fbdef9697a88f121981fd9beb37449abcbf62ac88895f347aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 14 Mar 2019 13:39:45 +0000 Subject: [PATCH 11/11] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpbin?expand=0&rev=13 --- python-httpbin.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-httpbin.spec b/python-httpbin.spec index 8afa248..512d67c 100644 --- a/python-httpbin.spec +++ b/python-httpbin.spec @@ -43,6 +43,7 @@ Requires: python-Brotli Requires: python-Flask Requires: python-MarkupSafe Requires: python-Werkzeug >= 0.14.1 +Requires: python-blinker Requires: python-decorator Requires: python-flasgger Requires: python-gevent