forked from pool/python-zeep
- 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
99 lines
3.4 KiB
RPMSpec
99 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package python-zeep
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python36 1
|
|
Name: python-zeep
|
|
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
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-appdirs >= 1.4.0
|
|
Requires: python-attrs >= 17.2.0
|
|
Requires: python-cached-property >= 1.3.0
|
|
Requires: python-defusedxml >= 0.4.1
|
|
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-xmlsec >= 0.6.1
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module appdirs >= 1.4.0}
|
|
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.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.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 xmlsec >= 0.6.1}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Python SOAP client based on python-lxml and python-requests
|
|
|
|
%prep
|
|
%setup -q -n zeep-%{version}
|
|
%autopatch -p1
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
export LANG=en_US.UTF-8
|
|
# no working freezegun for python2
|
|
python2_ignore="--ignore tests/test_cache.py"
|
|
# broken tests
|
|
ignorefiles="--ignore tests/test_wsse_signature.py \
|
|
--ignore tests/test_wsse_username.py \
|
|
--ignore tests/test_wsse_utils.py"
|
|
%pytest tests/ ${$python_ignore} $ignorefiles
|
|
|
|
%files %{python_files}
|
|
%doc CHANGES README.rst
|
|
%license LICENSE
|
|
%{python_sitelib}/zeep
|
|
%{python_sitelib}/zeep-%{version}*-info
|
|
|
|
%changelog
|