forked from pool/python-zeep
Accepting request 897174 from home:alarrosa:branches:devel:languages:python
- Update to 4.0.0
* Drop support for Python 2.7, 3.3, 3.4 and 3.5
* Remove both the aiohttp and the tornado transport class from
Zeep. These can be moved to their own Python package if anyone
is interested.
* Add zeep.transports.AsyncTransport which is based on httpx.
Note that loading wsdl files is still a sync process but
operations can be executed via async.
* Start adding more typehints to the package
- Remove patches that are not needed anymore:
* pytest4.patch
* pytest5.patch
OBS-URL: https://build.opensuse.org/request/show/897174
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zeep?expand=0&rev=9
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
From d8b162ec931246e4d4b2a6aadf036b444fa00dbb Mon Sep 17 00:00:00 2001
|
||||
From: Felix Yan <felixonmars@archlinux.org>
|
||||
Date: Sat, 9 Mar 2019 14:45:55 +0800
|
||||
Subject: [PATCH] Update test requirements
|
||||
|
||||
Tests pass here with the updated versions.
|
||||
---
|
||||
tests/conftest.py | 2 +-
|
||||
2 files changed, 8 insertions(+), 8 deletions(-)
|
||||
|
||||
Index: zeep-3.4.0/tests/conftest.py
|
||||
===================================================================
|
||||
--- zeep-3.4.0.orig/tests/conftest.py
|
||||
+++ zeep-3.4.0/tests/conftest.py
|
||||
@@ -11,7 +11,7 @@ pytest.register_assert_rewrite("tests.ut
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def no_requests(request, monkeypatch):
|
||||
- if request.node.get_marker("requests"):
|
||||
+ if request.node.get_closest_marker('requests'):
|
||||
return
|
||||
|
||||
def func(*args, **kwargs):
|
||||
@@ -1,45 +0,0 @@
|
||||
From ba7edd6bf2b31023b31e8f17c161e1d6d5af3d29 Mon Sep 17 00:00:00 2001
|
||||
From: Jonathan Ringer <jonringer117@gmail.com>
|
||||
Date: Fri, 13 Sep 2019 08:49:34 -0700
|
||||
Subject: [PATCH] Make tests compatible with pytest5
|
||||
|
||||
---
|
||||
tests/test_xsd_parse.py | 2 +-
|
||||
tests/test_xsd_validation.py | 4 ++--
|
||||
3 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/tests/test_xsd_parse.py b/tests/test_xsd_parse.py
|
||||
index 08285342..5478ede7 100644
|
||||
--- a/tests/test_xsd_parse.py
|
||||
+++ b/tests/test_xsd_parse.py
|
||||
@@ -587,7 +587,7 @@ def test_xsd_choice_with_references():
|
||||
|
||||
with pytest.raises(exceptions.XMLParseError) as exc:
|
||||
result = elm.parse(xml, schema)
|
||||
- assert "BAD_ELEMENT" in str(exc)
|
||||
+ assert "BAD_ELEMENT" in str(exc.value)
|
||||
|
||||
xml = load_xml(
|
||||
b"""
|
||||
diff --git a/tests/test_xsd_validation.py b/tests/test_xsd_validation.py
|
||||
index 60c4bc1c..85a95720 100644
|
||||
--- a/tests/test_xsd_validation.py
|
||||
+++ b/tests/test_xsd_validation.py
|
||||
@@ -39,7 +39,7 @@ def test_validate_element_value():
|
||||
|
||||
with pytest.raises(exceptions.ValidationError) as exc:
|
||||
result = render_node(container_elm, obj)
|
||||
- assert "Missing element item (container.item)" in str(exc)
|
||||
+ assert "Missing element item (container.item)" in str(exc.value)
|
||||
|
||||
obj.item = "bar"
|
||||
result = render_node(container_elm, obj)
|
||||
@@ -82,7 +82,7 @@ def test_validate_required_attribute():
|
||||
with pytest.raises(exceptions.ValidationError) as exc:
|
||||
result = render_node(container_elm, obj)
|
||||
assert "The attribute item is not valid: Value is required (container.item)" in str(
|
||||
- exc
|
||||
+ exc.value
|
||||
)
|
||||
|
||||
obj.item = "bar"
|
||||
@@ -1,3 +1,19 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 3 08:45:37 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>
|
||||
|
||||
- Update to 4.0.0
|
||||
* Drop support for Python 2.7, 3.3, 3.4 and 3.5
|
||||
* Remove both the aiohttp and the tornado transport class from
|
||||
Zeep. These can be moved to their own Python package if anyone
|
||||
is interested.
|
||||
* Add zeep.transports.AsyncTransport which is based on httpx.
|
||||
Note that loading wsdl files is still a sync process but
|
||||
operations can be executed via async.
|
||||
* Start adding more typehints to the package
|
||||
- Remove patches that are not needed anymore:
|
||||
* pytest4.patch
|
||||
* pytest5.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 16 12:36:20 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
||||
@@ -17,16 +17,15 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python36 1
|
||||
Name: python-zeep
|
||||
Version: 3.4.0
|
||||
Version: 4.0.0
|
||||
Release: 0
|
||||
Summary: A Python SOAP client based on lxml/requests
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: http://docs.python-zeep.org
|
||||
Source: https://files.pythonhosted.org/packages/source/z/zeep/zeep-%{version}.tar.gz
|
||||
Patch1: pytest4.patch
|
||||
Patch2: pytest5.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -38,34 +37,30 @@ Requires: python-isodate >= 0.5.4
|
||||
Requires: python-lxml >= 3.1.0
|
||||
Requires: python-pytz
|
||||
Requires: python-requests >= 2.7.0
|
||||
Requires: python-requests-file >= 1.5.1
|
||||
Requires: python-requests-toolbelt >= 0.7.1
|
||||
Requires: python-six >= 1.9.0
|
||||
Requires: python-tornado >= 4.0.2
|
||||
Requires: python-xmlsec >= 0.6.1
|
||||
%if 0%{?python_version_nodots} >= 34
|
||||
Requires: python-aiohttp >= 1.0
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module appdirs >= 1.4.0}
|
||||
BuildRequires: %{python_module aiohttp >= 1.0 if %python-base >= 3.4}
|
||||
BuildRequires: %{python_module aioresponses >= 0.4.1 if %python-base > 3.4}
|
||||
BuildRequires: %{python_module aiohttp >= 1.0}
|
||||
BuildRequires: %{python_module aioresponses >= 0.4.1}
|
||||
BuildRequires: %{python_module attrs >= 17.2.0}
|
||||
BuildRequires: %{python_module cached-property >= 1.3.0}
|
||||
BuildRequires: %{python_module defusedxml >= 0.4.1}
|
||||
BuildRequires: %{python_module freezegun >= 0.3.8 if %python-base > 3.4}
|
||||
BuildRequires: %{python_module freezegun >= 0.3.15}
|
||||
BuildRequires: %{python_module isodate >= 0.5.4}
|
||||
BuildRequires: %{python_module lxml >= 3.1.0}
|
||||
BuildRequires: %{python_module mock >= 2.0.0}
|
||||
BuildRequires: %{python_module pretend >= 1.0.8}
|
||||
BuildRequires: %{python_module pytest >= 3.1.3}
|
||||
BuildRequires: %{python_module pytest-tornado >= 0.4.5}
|
||||
BuildRequires: %{python_module pretend >= 1.0.9}
|
||||
BuildRequires: %{python_module pytest >= 6.0.1}
|
||||
BuildRequires: %{python_module pytest-asyncio}
|
||||
BuildRequires: %{python_module pytest-httpx}
|
||||
BuildRequires: %{python_module pytz}
|
||||
BuildRequires: %{python_module requests >= 2.7.0}
|
||||
BuildRequires: %{python_module requests-file >= 1.5.1}
|
||||
BuildRequires: %{python_module requests-mock >= 0.7.0}
|
||||
BuildRequires: %{python_module requests-toolbelt >= 0.7.1}
|
||||
BuildRequires: %{python_module six >= 1.9.0}
|
||||
BuildRequires: %{python_module tornado >= 4.0.2}
|
||||
BuildRequires: %{python_module xmlsec >= 0.6.1}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0e98669cfeb60756231ae185498f9ae21b30b2681786b8de58ed34c3b93e41dd
|
||||
size 163748
|
||||
3
zeep-4.0.0.tar.gz
Normal file
3
zeep-4.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:98158e43db33739d41502a1a7e3629dcb62dfd0864ea28c9d43f560a091cfe3f
|
||||
size 163646
|
||||
Reference in New Issue
Block a user