Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pytest-httpx for
openSUSE:Factory checked in at 2022-03-04 00:17:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-httpx (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-httpx.new.1958 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-httpx"
Fri Mar 4 00:17:13 2022 rev:2 rq:958541 version:0.20.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-httpx/python-pytest-httpx.changes
2021-07-12 01:25:11.873156905 +0200
+++
/work/SRC/openSUSE:Factory/.python-pytest-httpx.new.1958/python-pytest-httpx.changes
2022-03-04 00:17:35.928284688 +0100
@@ -1,0 +2,22 @@
+Thu Mar 3 00:16:34 UTC 2022 - Steve Kowalik <[email protected]>
+
+- Upgrade to 0.20.0:
+ * Add support for [`pytest`](https://docs.pytest.org)==7.\*
([`pytest`](https://docs.pytest.org)==6.\* is still supported for now). (many
thanks to [`Craig Blaszczyk`](https://github.com/jakul))
+ * Requires [`httpx`](https://www.python-httpx.org)==0.22.\*
+ * Python 3.6 is no longer supported.
+ * Callback are now executed as expected when there is a matching already
sent response.
+ * `httpx_mock.add_response` `data`, `files` and `boundary` parameters have
been removed. It was deprecated since `0.17.0`. Refer to this version changelog
entry for more details on how to update your code.
+ * An exception can now be raised without creating a callback by using
`httpx_mock.add_exception` method.
+ * `httpx_mock.add_response` `data` parameter is only used for multipart
content. It was deprecated since `0.14.0`. Refer to this version changelog
entry for more details on how to update your code.
+ * `pytest_httpx.to_response` function has been removed. It was deprecated
since `0.14.0`. Refer to this version changelog entry for more details on how
to update your code.
+ * Callbacks are now expected to have a single parameter, the request. The
previously second parameter `extensions`, can still be accessed via
`request.extensions`.
+ * Callbacks are now expected to return a `httpx.Response` instance instead
of the previous `httpcore.Response` tuple. As a consequence,
`pytest_httpx.to_response` now returns a `httpx.Response` instance.
+ * `httpx_mock.add_response` now allows to explicitly provide bytes using
`content` parameter.
+ * `httpx_mock.add_response` now allows to explicitly provide string using
`text` parameter.
+ * `httpx_mock.add_response` now allows to explicitly provide HTML string
content using `html` parameter.
+ * `httpx_mock.add_response` now allows to explicitly provide streamed
content using `stream` parameter and the new `pytest_httpx.IteratorStream`
class.
+ * `pytest_httpx.to_response` is now deprecated in favor of `httpx.Response`.
This function will be removed in a future release.
+ * `httpx_mock.add_response` `data` parameter should now only be used for
multipart content. Instead, use the appropriate parameter amongst `content`,
`text`, `html` or `stream`.
+ * Type information is now provided following [PEP
561](https://www.python.org/dev/peps/pep-0561/) (many thanks to [`Caleb
Ho`](https://github.com/calebho)).
+
+-------------------------------------------------------------------
Old:
----
v0.12.0.tar.gz
New:
----
v0.20.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-httpx.spec ++++++
--- /var/tmp/diff_new_pack.G8g4ef/_old 2022-03-04 00:17:36.564284822 +0100
+++ /var/tmp/diff_new_pack.G8g4ef/_new 2022-03-04 00:17:36.572284824 +0100
@@ -1,7 +1,7 @@
#
-# spec file for package python-pytest_httpx
+# spec file for package python-pytest-httpx
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,25 +16,23 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define skip_python2 1
-%define skip_python36 1
+%{?!python_module:%define python_module() python3-%{**}}
Name: python-pytest-httpx
-Version: 0.12.0
+Version: 0.20.0
Release: 0
Summary: Send responses to httpx
License: MIT
URL: https://colin-b.github.io/pytest_httpx/
Source:
https://github.com/Colin-b/pytest_httpx/archive/refs/tags/v%{version}.tar.gz
-BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
+BuildRequires: python-rpm-macros
# SECTION test requirements
-BuildRequires: %{python_module httpx >= 0.18.0}
+BuildRequires: %{python_module httpx >= 0.22.0}
BuildRequires: %{python_module pytest >= 6.0}
BuildRequires: %{python_module pytest-asyncio >= 0.14.0}
# /SECTION
BuildRequires: fdupes
-Requires: python-httpx >= 0.18.0
+Requires: python-httpx >= 0.22.0
Requires: python-pytest >= 6.0
BuildArch: noarch
%python_subpackages
++++++ v0.12.0.tar.gz -> v0.20.0.tar.gz ++++++
++++ 5034 lines of diff (skipped)