diff --git a/httpretty-0.9.6.tar.gz b/httpretty-0.9.6.tar.gz deleted file mode 100644 index c523669..0000000 --- a/httpretty-0.9.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:01b52d45077e702eda491f4fe75328d3468fd886aed5dcc530003e7b2b5939dc -size 7147633 diff --git a/httpretty-1.0.2.tar.gz b/httpretty-1.0.2.tar.gz new file mode 100644 index 0000000..2cc14aa --- /dev/null +++ b/httpretty-1.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24a6fd2fe1c76e94801b74db8f52c0fb42718dc4a199a861b305b1a492b9d868 +size 399185 diff --git a/python-httpretty.changes b/python-httpretty.changes index 4a2d2b7..24cb8c1 100644 --- a/python-httpretty.changes +++ b/python-httpretty.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Thu Apr 9 11:25:31 UTC 2020 - Marketa Calabkova + +- 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 diff --git a/python-httpretty.spec b/python-httpretty.spec index 5011bb6..9b0d9eb 100644 --- a/python-httpretty.spec +++ b/python-httpretty.spec @@ -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