15
0
forked from pool/python-suds

Accepting request 1285979 from devel:languages:python

- Switch to pyroject macros.

OBS-URL: https://build.opensuse.org/request/show/1285979
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-suds?expand=0&rev=5
This commit is contained in:
2025-06-16 09:13:16 +00:00
committed by Git OBS Bridge
2 changed files with 14 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 16 06:12:25 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyroject macros.
-------------------------------------------------------------------
Fri Dec 20 09:22:13 UTC 2024 - Matej Cepl <mcepl@cepl.eu>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-suds
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -22,14 +22,15 @@ Version: 1.2.0
Release: 0
Summary: Lightweight SOAP client
License: LGPL-3.0-or-later
Group: Development/Languages/Python
URL: https://github.com/suds-community/suds
Source: https://files.pythonhosted.org/packages/source/s/suds/suds-%{version}.tar.gz
BuildRequires: %{python_module devel}
# Test requirements
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module xml}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -54,11 +55,13 @@ package).
%autosetup -p1 -n suds-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%python_expand %fdupes %{buildroot}/%{$python_sitelib}/suds*
%pyproject_install
# remove tests/ dir from global site-packages
%python_expand rm -rf %{buildroot}/%{$python_sitelib}/tests
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
%check
%pytest
@@ -67,6 +70,6 @@ package).
%doc README.md
%license LICENSE.txt
%{python_sitelib}/suds
%{python_sitelib}/suds_community-%{version}-py%{python_version}.egg-info
%{python_sitelib}/suds_community-%{version}.dist-info
%changelog