[packages/python3-suds] Up to 1.2.0

arekm arekm at pld-linux.org
Sun May 4 15:38:43 CEST 2025


commit 7dfeae2463d225632f16a7c53f8fff6dcd0cc3c1
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun May 4 14:58:56 2025 +0200

    Up to 1.2.0

 python-suds-pytest.patch |  23 ----------
 python-suds.spec         | 108 -----------------------------------------------
 python3-suds.spec        |  54 ++++++++++++++++++++++++
 3 files changed, 54 insertions(+), 131 deletions(-)
---
diff --git a/python-suds.spec b/python-suds.spec
deleted file mode 100644
index 3217b4f..0000000
--- a/python-suds.spec
+++ /dev/null
@@ -1,108 +0,0 @@
-#
-%bcond_without	doc	# Sphinx documentation
-%bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	Python 2 SOAP client library
-Summary(pl.UTF-8):	Biblioteka klienta SOAP dla Pythona 2
-Name:		python-suds
-Version:	0.8.4
-Release:	6
-License:	LGPL v3+
-Group:		Development/Languages/Python
-#Source0Download: https://github.com/suds-community/suds/releases
-Source0:	https://github.com/suds-community/suds/archive/v%{version}/suds-%{version}.tar.gz
-# Source0-md5:	d4c47fec087d81f9a02f70bcc48c92c4
-Patch0:		%{name}-pytest.patch
-URL:		https://github.com/suds-community/suds
-%if %{with python2}
-BuildRequires:	python-devel >= 1:2.4
-%{?with_tests:BuildRequires:	python-pytest}
-BuildRequires:	python-setuptools
-%endif
-%if %{with python3}
-BuildRequires:	python3-2to3 >= 1:3.2
-BuildRequires:	python3-devel >= 1:3.2
-%{?with_tests:BuildRequires:	python3-pytest}
-BuildRequires:	python3-setuptools
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.4
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Suds is a lightweight SOAP Python client for consuming Web Services.
-
-%description -l pl.UTF-8
-Suds to lekka implementacja klienta SOAP dla języka Python.
-
-%package -n python3-suds
-Summary:	Python 3 SOAP client library
-Summary(pl.UTF-8):	Biblioteka klienta SOAP dla Pythona 3
-Group:		Development/Languages/Python
-Requires:	python3-modules >= 1:3.2
-
-%description -n python3-suds
-Suds is a lightweight SOAP Python client for consuming Web Services.
-
-%description -n python3-suds -l pl.UTF-8
-Suds to lekka implementacja klienta SOAP dla języka Python.
-
-%prep
-%setup -q -n suds-%{version}
-%patch -P 0 -p1
-
-%build
-topdir=$(pwd)
-%if %{with python2}
-%py_build
-
-PYTHONPATH=$(pwd)/build-2/lib \
-%{__python} -m pytest tests
-%endif
-
-%if %{with python3}
-%py3_build
-
-# python2 version of suds (before 2to3) must not be in cwd when running python3 tests
-cd build-3
-PYTHONPATH=$(pwd)/lib \
-%{__python3} -m pytest ../tests
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc CHANGELOG.md README.md TODO.txt
-%{py_sitescriptdir}/suds
-%if "%{py_ver}" > "2.4"
-%{py_sitescriptdir}/suds_community-%{version}-py*.egg-info
-%endif
-%endif
-
-%if %{with python3}
-%files -n python3-suds
-%defattr(644,root,root,755)
-%doc CHANGELOG.md README.md TODO.txt
-%{py3_sitescriptdir}/suds
-%{py3_sitescriptdir}/suds_community-%{version}-py*.egg-info
-%endif
diff --git a/python3-suds.spec b/python3-suds.spec
new file mode 100644
index 0000000..25d3e6b
--- /dev/null
+++ b/python3-suds.spec
@@ -0,0 +1,54 @@
+#
+%bcond_without	doc	# Sphinx documentation
+%bcond_without	tests	# unit tests
+
+Summary:	Python 2 SOAP client library
+Summary(pl.UTF-8):	Biblioteka klienta SOAP dla Pythona 2
+Name:		python3-suds
+Version:	1.2.0
+Release:	1
+License:	LGPL v3+
+Group:		Development/Languages/Python
+#Source0Download: https://github.com/suds-community/suds/releases
+Source0:	https://github.com/suds-community/suds/archive/v%{version}/suds-%{version}.tar.gz
+# Source0-md5:	202af9679d27986db550d922112db170
+URL:		https://github.com/suds-community/suds
+BuildRequires:	python3-devel >= 1:3.2
+%{?with_tests:BuildRequires:	python3-pytest}
+BuildRequires:	python3-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.2
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Suds is a lightweight SOAP Python client for consuming Web Services.
+
+%description -l pl.UTF-8
+Suds to lekka implementacja klienta SOAP dla języka Python.
+
+%prep
+%setup -q -n suds-%{version}
+
+%build
+topdir=$(pwd)
+%py3_build
+
+cd build-3
+PYTHONPATH=$(pwd)/lib \
+%{__python3} -m pytest ../tests
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md README.md TODO.txt
+%{py3_sitescriptdir}/suds
+%{py3_sitescriptdir}/suds_community-%{version}-py*.egg-info
diff --git a/python-suds-pytest.patch b/python-suds-pytest.patch
deleted file mode 100644
index 7c1b8d9..0000000
--- a/python-suds-pytest.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-tests/test_xsd_builtins.py:165
-  tests/test_xsd_builtins.py:165: RemovedInPytest4Warning: Applying marks directly to parameters is deprecated, please use pytest.param(..., marks=...) instead.  For more details, see: https://docs.pytest.org/en/latest/parametrize.html
-    @pytest.mark.parametrize("source", (
-  tests/test_xsd_builtins.py:165: RemovedInPytest4Warning: Applying marks directly to parameters is deprecated, please use pytest.param(..., marks=...) instead.  For more details, see: https://docs.pytest.org/en/latest/parametrize.html
-    @pytest.mark.parametrize("source", (
-
---- suds-0.8.4/tests/test_xsd_builtins.py.orig	2019-12-21 17:42:34.000000000 +0100
-+++ suds-0.8.4/tests/test_xsd_builtins.py	2020-03-26 18:04:05.338252432 +0100
-@@ -164,10 +164,10 @@
- 
-     @pytest.mark.parametrize("source", (
-         None,
--        pytest.mark.skipif(sys.version_info >= (3,),
--            reason="int == long since Python 3.0")(long(0)),
--        pytest.mark.skipif(sys.version_info >= (3,),
--            reason="int == long since Python 3.0")(long(1)),
-+        pytest.param(long(0), marks=pytest.mark.skipif(sys.version_info >= (3,),
-+                                    reason="int == long since Python 3.0")),
-+        pytest.param(long(1), marks=pytest.mark.skipif(sys.version_info >= (3,),
-+                                    reason="int == long since Python 3.0")),
-         "x",
-         "True",
-         "False",
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-suds.git/commitdiff/7dfeae2463d225632f16a7c53f8fff6dcd0cc3c1



More information about the pld-cvs-commit mailing list