Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-iptables for openSUSE:Factory 
checked in at 2024-08-23 22:26:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-iptables (Old)
 and      /work/SRC/openSUSE:Factory/.python-iptables.new.2698 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-iptables"

Fri Aug 23 22:26:52 2024 rev:9 rq:1195631 version:1.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-iptables/python-iptables.changes  
2023-12-08 22:32:52.153800900 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-iptables.new.2698/python-iptables.changes    
    2024-08-23 22:27:54.379990164 +0200
@@ -1,0 +2,8 @@
+Fri Aug 23 04:18:10 UTC 2024 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Do not use setup.py test to "run" the testsuite, use pytest to
+  actually run it.
+- Switch to pyproject macros.
+- No more greedy globs in %files.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-iptables.spec ++++++
--- /var/tmp/diff_new_pack.s56ISI/_old  2024-08-23 22:27:54.792007301 +0200
+++ /var/tmp/diff_new_pack.s56ISI/_new  2024-08-23 22:27:54.796007467 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-iptables
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,19 +16,24 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-iptables
 Version:        1.0.1
 Release:        0
 Summary:        Python bindings for iptables
 License:        Apache-2.0
-Group:          Development/Languages/Python
 URL:            https://github.com/ldx/python-iptables
 Source:         
https://github.com/ldx/python-iptables/archive/v%{version}.tar.gz
 BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module pip}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
+BuildRequires:  libiptc-devel
+BuildRequires:  libxtables-devel
+BuildRequires:  pkg-config
 BuildRequires:  python-rpm-macros
+BuildRequires:  xtables-plugins
 %python_subpackages
 
 %description
@@ -43,17 +48,21 @@
 chmod -x README.md
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 %check
-%python_exec setup.py clean build test --help
+export XTABLES_LIBDIR=$(pkg-config xtables --variable=xtlibdir)
+# Most of the tests require root
+%pytest_arch -k 'TestChain and not (test_chain or test_create_chain)'
 
 %files %{python_files}
 %license NOTICE
 %doc doc README.md
-%{python_sitearch}/*
+%{python_sitearch}/iptc
+%{python_sitearch}/libxtwrapper.cpython*-linux-gnu.so
+%{python_sitearch}/python_iptables-%{version}.dist-info
 

Reply via email to