forked from pool/python-zeep
Accepting request 961421 from home:wrosenauer:devel
- Update to 4.1.0 * Remove last dependency on six * Use platformdirs instead of the appsdirs dependency * Pass digest method when signing timestamp node * Fix settings context manager when an exception is raised * Don’t render decimals using scientific notation * Remove dependency on defusedxml * Improve handling of str values for Duration - added httpx-test.patch to use text instead of data OBS-URL: https://build.opensuse.org/request/show/961421 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zeep?expand=0&rev=10
This commit is contained in:
40
httpx-test.patch
Normal file
40
httpx-test.patch
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
diff --git a/tests/test_async_transport.py b/tests/test_async_transport.py
|
||||||
|
index 940b48a..7cce440 100644
|
||||||
|
--- a/tests/test_async_transport.py
|
||||||
|
+++ b/tests/test_async_transport.py
|
||||||
|
@@ -21,7 +21,7 @@ def test_load(httpx_mock):
|
||||||
|
cache = stub(get=lambda url: None, add=lambda url, content: None)
|
||||||
|
transport = AsyncTransport(cache=cache)
|
||||||
|
|
||||||
|
- httpx_mock.add_response(url="http://tests.python-zeep.org/test.xml", data="x")
|
||||||
|
+ httpx_mock.add_response(url="http://tests.python-zeep.org/test.xml", text="x")
|
||||||
|
result = transport.load("http://tests.python-zeep.org/test.xml")
|
||||||
|
assert result == b"x"
|
||||||
|
|
||||||
|
@@ -32,7 +32,7 @@ def test_load_cache(httpx_mock):
|
||||||
|
cache = InMemoryCache()
|
||||||
|
transport = AsyncTransport(cache=cache)
|
||||||
|
|
||||||
|
- httpx_mock.add_response(url="http://tests.python-zeep.org/test.xml", data="x")
|
||||||
|
+ httpx_mock.add_response(url="http://tests.python-zeep.org/test.xml", text="x")
|
||||||
|
result = transport.load("http://tests.python-zeep.org/test.xml")
|
||||||
|
assert result == b"x"
|
||||||
|
|
||||||
|
@@ -47,7 +47,7 @@ async def test_post(httpx_mock: HTTPXMock):
|
||||||
|
|
||||||
|
envelope = etree.Element("Envelope")
|
||||||
|
|
||||||
|
- httpx_mock.add_response(url="http://tests.python-zeep.org/test.xml", data="x")
|
||||||
|
+ httpx_mock.add_response(url="http://tests.python-zeep.org/test.xml", text="x")
|
||||||
|
result = await transport.post_xml(
|
||||||
|
"http://tests.python-zeep.org/test.xml", envelope=envelope, headers={}
|
||||||
|
)
|
||||||
|
@@ -69,7 +69,7 @@ async def test_http_error(httpx_mock: HTTPXMock):
|
||||||
|
transport = AsyncTransport()
|
||||||
|
|
||||||
|
httpx_mock.add_response(
|
||||||
|
- url="http://tests.python-zeep.org/test.xml", data="x", status_code=500
|
||||||
|
+ url="http://tests.python-zeep.org/test.xml", text="x", status_code=500
|
||||||
|
)
|
||||||
|
with pytest.raises(exceptions.TransportError) as exc:
|
||||||
|
transport.load("http://tests.python-zeep.org/test.xml")
|
||||||
@@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 13 07:31:39 UTC 2022 - Wolfgang Rosenauer <wr@rosenauer.org>
|
||||||
|
|
||||||
|
- Update to 4.1.0
|
||||||
|
* Remove last dependency on six
|
||||||
|
* Use platformdirs instead of the appsdirs dependency
|
||||||
|
* Pass digest method when signing timestamp node
|
||||||
|
* Fix settings context manager when an exception is raised
|
||||||
|
* Don’t render decimals using scientific notation
|
||||||
|
* Remove dependency on defusedxml
|
||||||
|
* Improve handling of str values for Duration
|
||||||
|
- added httpx-test.patch to use text instead of data
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 3 08:45:37 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>
|
Thu Jun 3 08:45:37 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-zeep
|
# spec file for package python-zeep
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@@ -19,22 +19,22 @@
|
|||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python36 1
|
%define skip_python36 1
|
||||||
Name: python-zeep
|
Name: python-zeep
|
||||||
Version: 4.0.0
|
Version: 4.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A Python SOAP client based on lxml/requests
|
Summary: A Python SOAP client based on lxml/requests
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: http://docs.python-zeep.org
|
URL: http://docs.python-zeep.org
|
||||||
Source: https://files.pythonhosted.org/packages/source/z/zeep/zeep-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/z/zeep/zeep-%{version}.tar.gz
|
||||||
|
Patch1: httpx-test.patch
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-appdirs >= 1.4.0
|
|
||||||
Requires: python-attrs >= 17.2.0
|
Requires: python-attrs >= 17.2.0
|
||||||
Requires: python-cached-property >= 1.3.0
|
Requires: python-cached-property >= 1.3.0
|
||||||
Requires: python-defusedxml >= 0.4.1
|
|
||||||
Requires: python-isodate >= 0.5.4
|
Requires: python-isodate >= 0.5.4
|
||||||
Requires: python-lxml >= 3.1.0
|
Requires: python-lxml >= 4.6.0
|
||||||
|
Requires: python-platformdirs >= 1.4.0
|
||||||
Requires: python-pytz
|
Requires: python-pytz
|
||||||
Requires: python-requests >= 2.7.0
|
Requires: python-requests >= 2.7.0
|
||||||
Requires: python-requests-file >= 1.5.1
|
Requires: python-requests-file >= 1.5.1
|
||||||
@@ -42,15 +42,14 @@ Requires: python-requests-toolbelt >= 0.7.1
|
|||||||
Requires: python-xmlsec >= 0.6.1
|
Requires: python-xmlsec >= 0.6.1
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module appdirs >= 1.4.0}
|
BuildRequires: %{python_module platformdirs >= 1.4.0}
|
||||||
BuildRequires: %{python_module aiohttp >= 1.0}
|
BuildRequires: %{python_module aiohttp >= 1.0}
|
||||||
BuildRequires: %{python_module aioresponses >= 0.4.1}
|
BuildRequires: %{python_module aioresponses >= 0.4.1}
|
||||||
BuildRequires: %{python_module attrs >= 17.2.0}
|
BuildRequires: %{python_module attrs >= 17.2.0}
|
||||||
BuildRequires: %{python_module cached-property >= 1.3.0}
|
BuildRequires: %{python_module cached-property >= 1.3.0}
|
||||||
BuildRequires: %{python_module defusedxml >= 0.4.1}
|
|
||||||
BuildRequires: %{python_module freezegun >= 0.3.15}
|
BuildRequires: %{python_module freezegun >= 0.3.15}
|
||||||
BuildRequires: %{python_module isodate >= 0.5.4}
|
BuildRequires: %{python_module isodate >= 0.5.4}
|
||||||
BuildRequires: %{python_module lxml >= 3.1.0}
|
BuildRequires: %{python_module lxml >= 4.6.0}
|
||||||
BuildRequires: %{python_module mock >= 2.0.0}
|
BuildRequires: %{python_module mock >= 2.0.0}
|
||||||
BuildRequires: %{python_module pretend >= 1.0.9}
|
BuildRequires: %{python_module pretend >= 1.0.9}
|
||||||
BuildRequires: %{python_module pytest >= 6.0.1}
|
BuildRequires: %{python_module pytest >= 6.0.1}
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:98158e43db33739d41502a1a7e3629dcb62dfd0864ea28c9d43f560a091cfe3f
|
|
||||||
size 163646
|
|
||||||
3
zeep-4.1.0.tar.gz
Normal file
3
zeep-4.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5867f2eadd6b028d9751f4155af590d3aaf9280e3a0ed5e15a53343921c956e5
|
||||||
|
size 160333
|
||||||
Reference in New Issue
Block a user