Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
a948cae9a1 !6 change Name to python-suds2 and remove Subpackage python2-suds
Merge pull request !6 from zhanghua/local
2020-07-23 19:02:48 +08:00
zhanghua1831
0fb1a8e3dc change Name to python-suds2 and remove Subpackage python2-suds 2020-07-22 18:03:56 +08:00
openeuler-ci-bot
4e4e0b830b !5 fix test error
Merge pull request !5 from jackie_wu123/master
2020-06-24 23:01:45 +08:00
jackie_wu
64283aa55c fix test error 2020-06-24 17:55:27 +08:00
openeuler-ci-bot
add058a9cb !4 Add python-suds.yaml
Merge pull request !4 from huanghaitao/master
2020-05-09 19:29:56 +08:00
hht8
700b969481 Add python-suds.yaml 2020-05-09 16:14:42 +08:00
openeuler-ci-bot
629d30abc1 !3 fix test error
Merge pull request !3 from sigui/sgs-own
2020-03-22 01:23:39 +08:00
sigui
8e34ae4bfb fix test error 2020-03-22 01:18:13 +08:00
openeuler-ci-bot
bb82d66757 !2 init package
Merge pull request !2 from geruijun/master
2020-02-18 11:16:13 +08:00
eulerstorage
c67ea21b0e init package 2020-02-18 09:32:06 +08:00
5 changed files with 116 additions and 0 deletions

BIN
94664ddd46a6.tar.bz2 Normal file

Binary file not shown.

32
fix_http_test.patch Normal file
View File

@ -0,0 +1,32 @@
diff -up jurko-suds-94664ddd46a6/tests/test_transport_http.py.httptestfix jurko-suds-94664ddd46a6/tests/test_transport_http.py
--- jurko-suds-94664ddd46a6/tests/test_transport_http.py.httptestfix 2015-07-27 05:08:20.000000000 -0400
+++ jurko-suds-94664ddd46a6/tests/test_transport_http.py 2016-01-09 23:29:22.749940293 -0500
@@ -120,6 +120,9 @@ class MockFP:
def readline():
raise MustNotBeCalled
+ def close(self):
+ pass
+
class MockURLOpenerSaboteur:
"""
@@ -295,12 +298,18 @@ def test_sending_using_network_sockets(s
self.__mocker.mock_sent_data += data
def settimeout(self, *args, **kwargs):
pass
+ def setsockopt(self, level, optname, value):
+ pass
class MockSocketReader(CountedMock):
def __init__(self):
super(MockSocketReader, self).__init__()
def readline(self, *args, **kwargs):
raise MyException
+ def close(self):
+ pass
+ def flush(self):
+ pass
# Setup.
host = "an-easily-recognizable-host-name-214894932"

12
fix_test_transport.patch Normal file
View File

@ -0,0 +1,12 @@
diff -Nur jurko-suds-94664ddd46a6/tests/test_transport.py ../jurko-suds-94664ddd46a6/tests/test_transport.py
--- jurko-suds-94664ddd46a6/tests/test_transport.py 2015-07-27 17:08:20.000000000 +0800
+++ jurko-suds-94664ddd46a6/tests/test_transport.py 2020-06-24 17:34:24.760915206 +0800
@@ -140,7 +140,7 @@
("", {}, "\n\n\n\n\n\n"),
("", {}, u("\u4E2D\u539F\u5343\u519B\u9010\u848B"))))
def test_string_representation_with_message(self, url, headers, message):
- for key, value in headers.items():
+ for key, value in list(headers.items()):
old_key = key
if isinstance(key, text_type):
key = key.encode("utf-8")

68
python-suds2.spec Normal file
View File

@ -0,0 +1,68 @@
Name: python-suds2
Version: 0.7
Release: 4
Summary: A python SOAP client
License: LGPLv3+
URL: https://bitbucket.org/jurko/suds
Source0: https://bitbucket.org/jurko/suds/get/94664ddd46a6.tar.bz2
Patch0: fix_http_test.patch
Patch1: fix_test_transport.patch
BuildArch: noarch
Provides: python-suds = %{version}-%{release}
Obsoletes: python-suds < %{version}-%{release}
%description
"Suds" is a lightweight SOAP-based web service client
for Python licensed under LGPL.
%package -n python3-suds2
%{?python_provide:%python_provide python3-suds2}
Summary: A python SOAP client
BuildRequires: python3-devel python3-pytest python3-six
Provides: python3-suds = %{version}-%{release}
Obsoletes: python3-suds < %{version}-%{release}
%description -n python3-suds2
"Suds" is a lightweight SOAP-based web service client
for Python licensed under LGPL.
%prep
%setup -c -q
mv jurko-suds-94664ddd46a6 python3
cd python3
%patch0 -p1
%patch1 -p1
cd -
%build
cd python3
%py3_build
cd -
%install
cd python3
%py3_install
cd -
%check
cd python3
%{__python3} setup.py test
cd -
%files -n python3-suds2
%doc python3/README.rst
%license python3/LICENSE.txt
%{python3_sitelib}/*
%changelog
* Wed Jul 8 2020 zhanghua <zhanghua40@huawei.com> - 0.7-4
- change Name to python-suds2 and remove Subpackage python2-suds
* Wed Jun 24 2020 wutao <wutao61@huawei.com> - 0.7-3
- Fix transport test error
* Sun Mar 22 2020 sunguoshuai <sunguoshuai@huawei.com> - 0.7-2
- Fix http test error.
* Thu Feb 13 2020 Ruijun Ge <geruijun@huawei.com> - 0.7-1
- init package

4
python-suds2.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: hg
src_repo: https://bitbucket.org/jurko/suds
tag_pattern: ^v
seperator: .