14
0
forked from pool/python-zeep

- Add patches to fix build with current pytests (From upstream PRs):

* pytest4.patch
  * pytest5.patch
- Tweak the deps to stay resolvable

- Fix unit tests
- Use better way to handle tornado version compatibility.

- Don't allow python-tornado >= 5

- update to 3.4.0
  * Allow passing xsd.Nil to sequences
  * Add support for passing custom digest and signature methods during WSSE
    signing
  * Fix path resolving during XSD imports

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zeep?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal
2019-11-08 07:33:58 +00:00
committed by Git OBS Bridge
parent 21b900b705
commit ad0bbc3e30
6 changed files with 105 additions and 5 deletions

View File

@@ -18,13 +18,15 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-zeep
Version: 3.3.1
Version: 3.4.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
@@ -53,6 +55,7 @@ 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 pytest}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module requests >= 2.7.0}
BuildRequires: %{python_module requests-mock >= 0.7.0}
@@ -73,6 +76,7 @@ Python SOAP client based on python-lxml and python-requests
%prep
%setup -q -n zeep-%{version}
%autopatch -p1
# disable broken tests
rm tests/test_wsse_signature.py
rm tests/test_wsse_username.py
@@ -88,7 +92,7 @@ rm tests/test_wsse_utils.py
%check
export LANG=en_US.UTF-8
export PYTHONDONTWRITEBYTECODE=1
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} tests/
%pytest tests/
%files %{python_files}
%doc CHANGES README.rst