Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-ethtool for openSUSE:Factory checked in at 2022-01-15 20:05:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ethtool (Old) and /work/SRC/openSUSE:Factory/.python-ethtool.new.1892 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ethtool" Sat Jan 15 20:05:20 2022 rev:7 rq:946654 version:0.15 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ethtool/python-ethtool.changes 2020-05-28 09:18:39.677136500 +0200 +++ /work/SRC/openSUSE:Factory/.python-ethtool.new.1892/python-ethtool.changes 2022-01-15 20:05:38.577779733 +0100 @@ -1,0 +2,8 @@ +Sat Jan 15 16:02:46 UTC 2022 - Dirk M??ller <dmuel...@suse.com> + +- update to 0.15: + - Tests are now skipped for wireguard devices + - pifconfig is now able to show more than one IPv4 address per interface + - pifconfig supports interfaces with no IPv4 address + +------------------------------------------------------------------- Old: ---- ethtool-0.14.tar.gz New: ---- ethtool-0.15.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ethtool.spec ++++++ --- /var/tmp/diff_new_pack.uHXitg/_old 2022-01-15 20:05:39.005780067 +0100 +++ /var/tmp/diff_new_pack.uHXitg/_new 2022-01-15 20:05:39.009780070 +0100 @@ -1,7 +1,7 @@ # -# spec file for package python-ethtool +# spec file # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %global pypi_name ethtool %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-%{pypi_name} -Version: 0.14 +Version: 0.15 Release: 0 Summary: Ethernet settings Python bindings License: GPL-2.0-only @@ -35,7 +35,7 @@ BuildRequires: pkgconfig BuildRequires: python-rpm-macros Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives %python_subpackages %description @@ -60,7 +60,7 @@ %python_clone -a %{buildroot}%{_sbindir}/pethtool %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest discover -v +%pyunittest_arch -v %post # %%python_install_alternative for %{_sbindir} binaries ++++++ ethtool-0.14.tar.gz -> ethtool-0.15.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ethtool-0.14/CHANGES.rst new/ethtool-0.15/CHANGES.rst --- old/ethtool-0.14/CHANGES.rst 2018-09-13 11:16:52.000000000 +0200 +++ new/ethtool-0.15/CHANGES.rst 2021-08-02 12:05:30.000000000 +0200 @@ -1,6 +1,14 @@ Changelog ========= +0.15 +---- +Thu Jul 29 2021 Lum??r Balhar <lbal...@redhat.com> + +- Tests are now skipped for wireguard devices +- pifconfig is now able to show more than one IPv4 address per interface +- pifconfig supports interfaces with no IPv4 address + 0.14 ---- Wed Sep 12 2018 Miro Hron??ok <mhron...@redhat.com> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ethtool-0.14/PKG-INFO new/ethtool-0.15/PKG-INFO --- old/ethtool-0.14/PKG-INFO 2018-09-13 11:19:03.000000000 +0200 +++ new/ethtool-0.15/PKG-INFO 2021-08-02 12:06:20.828416600 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: ethtool -Version: 0.14 +Version: 0.15 Summary: Python module to interface with ethtool Home-page: https://github.com/fedora-python/python-ethtool Author: Harald Hoyer, Arnaldo Carvalho de Melo, David Sommerseth @@ -119,7 +119,6 @@ * Lum??r Balhar <lbal...@redhat.com> * Miro Hron??ok <mhron...@redhat.com> * Charalampos Stratakis <cstra...@redhat.com> - * Sanqui <dlab...@redhat.com> Contributing ------------ @@ -141,6 +140,14 @@ Changelog ========= + 0.15 + ---- + Thu Jul 29 2021 Lum??r Balhar <lbal...@redhat.com> + + - Tests are now skipped for wireguard devices + - pifconfig is now able to show more than one IPv4 address per interface + - pifconfig supports interfaces with no IPv4 address + 0.14 ---- Wed Sep 12 2018 Miro Hron??ok <mhron...@redhat.com> @@ -273,6 +280,9 @@ Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Topic :: Software Development :: Libraries Classifier: Topic :: System :: Networking diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ethtool-0.14/README.rst new/ethtool-0.15/README.rst --- old/ethtool-0.14/README.rst 2018-09-12 15:38:50.000000000 +0200 +++ new/ethtool-0.15/README.rst 2019-08-28 11:15:53.000000000 +0200 @@ -109,7 +109,6 @@ * Lum??r Balhar <lbal...@redhat.com> * Miro Hron??ok <mhron...@redhat.com> * Charalampos Stratakis <cstra...@redhat.com> -* Sanqui <dlab...@redhat.com> Contributing ------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ethtool-0.14/ethtool.egg-info/PKG-INFO new/ethtool-0.15/ethtool.egg-info/PKG-INFO --- old/ethtool-0.14/ethtool.egg-info/PKG-INFO 2018-09-13 11:19:02.000000000 +0200 +++ new/ethtool-0.15/ethtool.egg-info/PKG-INFO 2021-08-02 12:06:20.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: ethtool -Version: 0.14 +Version: 0.15 Summary: Python module to interface with ethtool Home-page: https://github.com/fedora-python/python-ethtool Author: Harald Hoyer, Arnaldo Carvalho de Melo, David Sommerseth @@ -119,7 +119,6 @@ * Lum??r Balhar <lbal...@redhat.com> * Miro Hron??ok <mhron...@redhat.com> * Charalampos Stratakis <cstra...@redhat.com> - * Sanqui <dlab...@redhat.com> Contributing ------------ @@ -141,6 +140,14 @@ Changelog ========= + 0.15 + ---- + Thu Jul 29 2021 Lum??r Balhar <lbal...@redhat.com> + + - Tests are now skipped for wireguard devices + - pifconfig is now able to show more than one IPv4 address per interface + - pifconfig supports interfaces with no IPv4 address + 0.14 ---- Wed Sep 12 2018 Miro Hron??ok <mhron...@redhat.com> @@ -273,6 +280,9 @@ Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Topic :: Software Development :: Libraries Classifier: Topic :: System :: Networking diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ethtool-0.14/scripts/pifconfig new/ethtool-0.15/scripts/pifconfig --- old/ethtool-0.14/scripts/pifconfig 2018-02-14 14:36:14.000000000 +0100 +++ new/ethtool-0.15/scripts/pifconfig 2019-08-28 11:15:53.000000000 +0200 @@ -17,10 +17,17 @@ from __future__ import unicode_literals, print_function import ethtool +import socket +import struct import sys from optparse import OptionParser +def bits2netmask(bits): + mask = (1 << 32) - (1 << 32 >> bits) + return socket.inet_ntoa(struct.pack(">L", mask)) + + def flags2str(flags): string = '' if flags & ethtool.IFF_UP: @@ -60,17 +67,19 @@ def show_config(device): - ipaddr = ethtool.get_ipaddr(device) - netmask = ethtool.get_netmask(device) flags = ethtool.get_flags(device) - print('%s' % device) - if not (flags & ethtool.IFF_LOOPBACK): - print('\tHWaddr %s' % ethtool.get_hwaddr(device)) - print('\tinet addr:%s' % ipaddr) - if not (flags & (ethtool.IFF_LOOPBACK | ethtool.IFF_POINTOPOINT)): - print('\tBcast:%s' % ethtool.get_broadcast(device)) - print('\tMask:%s' % netmask) + for info in ethtool.get_interfaces_info(device): + print(device) + if not (flags & ethtool.IFF_LOOPBACK): + print('\tHWaddr %s' % ethtool.get_hwaddr(device)) + + for addr in info.get_ipv4_addresses(): + print('\tinet addr:%s' % addr.address, end=" ") + if not (flags & (ethtool.IFF_LOOPBACK | ethtool.IFF_POINTOPOINT)): + print('Bcast:%s' % addr.broadcast, end=" ") + print('Mask:%s' % bits2netmask(addr.netmask)) + for addr in info.get_ipv6_addresses(): print('\tinet6 addr: %s/%s Scope: %s' % (addr.address, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ethtool-0.14/setup.py new/ethtool-0.15/setup.py --- old/ethtool-0.14/setup.py 2018-09-13 11:16:52.000000000 +0200 +++ new/ethtool-0.15/setup.py 2021-08-02 12:05:30.000000000 +0200 @@ -12,7 +12,7 @@ except ImportError: import subprocess as commands -version = '0.14' +version = '0.15' class PkgConfigExtension(Extension): @@ -126,6 +126,9 @@ 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: Implementation :: CPython', 'Topic :: Software Development :: Libraries', 'Topic :: System :: Networking', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ethtool-0.14/tests/test_ethtool.py new/ethtool-0.15/tests/test_ethtool.py --- old/ethtool-0.14/tests/test_ethtool.py 2018-09-12 15:38:50.000000000 +0200 +++ new/ethtool-0.15/tests/test_ethtool.py 2019-08-28 11:15:53.000000000 +0200 @@ -175,17 +175,20 @@ scraped = None self.assertIsStringOrNone(ei.ipv4_address) - if scraped: - self.assertEqual(ei.ipv4_address, scraped.inet) + if scraped and scraped.inet: + addresses = [ip.address for ip in ei.get_ipv4_addresses()] + self.assertTrue(scraped.inet in addresses) self.assertIsStringOrNone(ei.ipv4_broadcast) - if scraped and scraped.broadcast: + if scraped and scraped.broadcast not in (None, '0.0.0.0'): # Broadcast is optional - self.assertEqual(ei.ipv4_broadcast, scraped.broadcast) + broadcasts = [ip.broadcast for ip in ei.get_ipv4_addresses()] + self.assertTrue(scraped.broadcast in broadcasts) self.assertIsInt(ei.ipv4_netmask) - if scraped: - self.assertEqual(ei.ipv4_netmask, scraped.get_netmask_bits()) + if scraped and scraped.netmask: + netmasks = [ip.netmask for ip in ei.get_ipv4_addresses()] + self.assertTrue(scraped.get_netmask_bits(), netmasks) self.assertIsStringOrNone(ei.mac_address) if scraped and scraped.hwaddr and scraped.hwtitle.lower() != 'unspec': @@ -251,8 +254,8 @@ def test_get_active_devices(self): for devname in ethtool.get_active_devices(): - # Skip these test on tun devices - if devname.startswith('tun'): + # Skip these test on tun and wg devices + if devname.startswith('tun') or devname.startswith('wg'): continue self._functions_accepting_devnames(devname)