Accepting request 792706 from home:mcalabkova:branches:devel:languages:python

- Update to 1.0.2
  * Drop Python 2 support.
  * Fix usage with redis and improve overall real-socket passthrough.
  * Fix TypeError: wrap_socket() missing 1 required positional argument: 'sock'.
  * Fix simple typo: neighter -> neither.
  * Updated documentation for register_uri concerning using ports.
  * Clarify relation between ``enabled`` and ``httprettized`` in API docs.
  * Align signature with builtin socket.

OBS-URL: https://build.opensuse.org/request/show/792706
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpretty?expand=0&rev=33
This commit is contained in:
Tomáš Chvátal 2020-04-09 13:15:01 +00:00 committed by Git OBS Bridge
parent 28a7af980e
commit daa8fc09c6
4 changed files with 24 additions and 9 deletions

View File

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

3
httpretty-1.0.2.tar.gz Normal file
View File

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

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Thu Apr 9 11:25:31 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- Update to 1.0.2
* Drop Python 2 support.
* Fix usage with redis and improve overall real-socket passthrough.
* Fix TypeError: wrap_socket() missing 1 required positional argument: 'sock'.
* Fix simple typo: neighter -> neither.
* Updated documentation for register_uri concerning using ports.
* Clarify relation between ``enabled`` and ``httprettized`` in API docs.
* Align signature with builtin socket.
-------------------------------------------------------------------
Mon Jan 7 08:22:15 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-httpretty
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,8 +17,9 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-httpretty
Version: 0.9.6
Version: 1.0.2
Release: 0
Summary: HTTP client mocking tool for Python
License: MIT
@ -26,18 +27,19 @@ Group: Development/Languages/Python
URL: https://github.com/gabrielfalcao/HTTPretty
Source: https://files.pythonhosted.org/packages/source/h/httpretty/httpretty-%{version}.tar.gz
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module eventlet}
BuildRequires: %{python_module fakeredis}
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module httplib2}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module rednose}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module sure}
BuildRequires: %{python_module tornado}
BuildRequires: %{python_module twine >= 1.15.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six
BuildArch: noarch
%python_subpackages
@ -55,7 +57,8 @@ sed -i -e '/with-randomly/d' setup.cfg
%python_build
%check
%python_exec setup.py test
# test_http_passthrough and test_https_passthrough need internet connection
%python_expand nosetests-%{$python_bin_suffix} --exclude='test_http.?_passthrough'
%install
%python_install