Compare commits
No commits in common. "a5ad8490987d095984084145d28364ac2332fefd" and "add058a9cbf11409e8fd6d9b1c42d79015d05e06" have entirely different histories.
a5ad849098
...
add058a9cb
BIN
94664ddd46a6.tar.bz2
Normal file
BIN
94664ddd46a6.tar.bz2
Normal file
Binary file not shown.
32
fix_http_test.patch
Normal file
32
fix_http_test.patch
Normal 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"
|
||||
80
python-suds.spec
Normal file
80
python-suds.spec
Normal file
@ -0,0 +1,80 @@
|
||||
Name: python-suds
|
||||
Version: 0.7
|
||||
Release: 2
|
||||
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
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
"Suds" is a lightweight SOAP-based web service client
|
||||
for Python licensed under LGPL.
|
||||
|
||||
%package -n python2-suds
|
||||
%{?python_provide:%python_provide python2-suds}
|
||||
Summary: A python SOAP client
|
||||
BuildRequires: python2-devel python2-pytest python2-six
|
||||
|
||||
%description -n python2-suds
|
||||
"Suds" is a lightweight SOAP-based web service client
|
||||
for Python licensed under LGPL.
|
||||
|
||||
%package -n python3-suds
|
||||
%{?python_provide:%python_provide python3-suds}
|
||||
Summary: A python SOAP client
|
||||
BuildRequires: python3-devel python3-pytest python3-six
|
||||
|
||||
%description -n python3-suds
|
||||
"Suds" is a lightweight SOAP-based web service client
|
||||
for Python licensed under LGPL.
|
||||
|
||||
%prep
|
||||
%setup -c -q
|
||||
mv jurko-suds-94664ddd46a6 python2
|
||||
cd python2
|
||||
%patch0 -p1
|
||||
cd -
|
||||
cp -a python2 python3
|
||||
|
||||
%build
|
||||
cd python2
|
||||
%py2_build
|
||||
cd -
|
||||
cd python3
|
||||
%py3_build
|
||||
cd -
|
||||
|
||||
%install
|
||||
cd python2
|
||||
%py2_install
|
||||
cd -
|
||||
cd python3
|
||||
%py3_install
|
||||
cd -
|
||||
|
||||
%check
|
||||
cd python2
|
||||
%{__python2} setup.py test
|
||||
cd -
|
||||
cd python3
|
||||
%{__python3} setup.py test
|
||||
cd -
|
||||
|
||||
%files -n python2-suds
|
||||
%doc python2/README.rst
|
||||
%license python2/LICENSE.txt
|
||||
%{python2_sitelib}/*
|
||||
|
||||
%files -n python3-suds
|
||||
%doc python3/README.rst
|
||||
%license python3/LICENSE.txt
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%changelog
|
||||
* 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-suds.yaml
Normal file
4
python-suds.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: hg
|
||||
src_repo: https://bitbucket.org/jurko/suds
|
||||
tag_pattern: ^v
|
||||
seperator: .
|
||||
@ -1,65 +0,0 @@
|
||||
%global srcname suds
|
||||
|
||||
Name: python-suds2
|
||||
Version: 1.1.1
|
||||
Release: 1
|
||||
Summary: A python SOAP client
|
||||
License: LGPLv3+
|
||||
URL: https://github.com/suds-community/suds
|
||||
Source0: https://github.com/suds-community/suds/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
||||
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} python3-suds-community = %{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
|
||||
%autosetup -n %{srcname}-%{version} -p1
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
%{__python3} setup.py test
|
||||
|
||||
%files -n python3-suds2
|
||||
%license LICENSE.txt
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%changelog
|
||||
* Tue Oct 25 2022 yaoxin <yaoxin30@h-partners.com> - 1.1.1-1
|
||||
- Upgrade to version 1.1.1
|
||||
|
||||
* Wed Jan 12 2022 Chengshaowei <chenshaowei3@huawei.com> - 1.0.0-1
|
||||
- update to v 1.0.0
|
||||
|
||||
* Fri Jan 08 2021 maminjie <maminjie1@huawei.com> - 0.7.0-5
|
||||
- update source and port to pytest4
|
||||
|
||||
* 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
|
||||
@ -1,4 +0,0 @@
|
||||
version_control: github
|
||||
src_repo: suds-community/suds
|
||||
tag_prefix: "^v"
|
||||
separator: "."
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user