- 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
This commit is contained in:
Tomáš Chvátal 2019-03-14 13:16:45 +00:00 committed by Git OBS Bridge
parent 31dc3cfe38
commit 6a27575baa
5 changed files with 66 additions and 15 deletions

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="filename">python-httpbin</param>
<param name="url">git://github.com/postmanlabs/httpbin.git</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
<param name="versionformat">0.7.0+git%cd.%h</param>
</service>
<service name="recompress" mode="disabled">
<param name="compression">xz</param>
<param name="file">*.tar</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:79fbc5d27e4194ea908b0fa18e09a59d95d287c91667aa69bcd010342d1589b5
size 88698

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ab0787e72373f6f4f01fed6ee7521c75aa9c4dfc17a584a7770f286d5bedd256
size 97964

View File

@ -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 <tchvatal@suse.com>
- Update to 0.7.0:
* no upstream changelog
- Enable tests
- Add missing dependencies
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 4 17:56:34 UTC 2017 - jmatejek@suse.com Tue Apr 4 17:56:34 UTC 2017 - jmatejek@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-httpbin # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-httpbin Name: python-httpbin
Version: 0.5.0 Version: 0.7.0+git20181107.f8ec666
Release: 0 Release: 0
License: MIT
Summary: HTTP Request and Response Service Summary: HTTP Request and Response Service
Url: https://github.com/Runscope/httpbin License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/h/httpbin/httpbin-%{version}.tar.gz URL: https://github.com/Runscope/httpbin
BuildRequires: python-rpm-macros 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: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Flask Requires: python-Flask
Requires: python-MarkupSafe Requires: python-MarkupSafe
Requires: python-decorator Requires: python-decorator
Requires: python-flasgger
Requires: python-gevent
Requires: python-itsdangerous Requires: python-itsdangerous
Requires: python-six Requires: python-six
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
httpbin(1): HTTP Request & Response Service httpbin(1): HTTP Request & Response Service
Testing an HTTP Library can become difficult sometimes. Testing an HTTP Library can become difficult sometimes.
RequestBin is fantastic for testing POST requests, but doesn't let RequestBin is fantastic for testing POST requests, but doesn't let
you control the response. This exists to cover 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. All endpoint responses are JSON-encoded.
%prep %prep
%setup -q -n httpbin-%{version} %setup -q
%build %build
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
@ -57,9 +69,14 @@ export LANG=en_US.UTF-8
%install %install
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %doc README.md
%license LICENSE
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog