Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pyudev for openSUSE:Factory 
checked in at 2023-05-04 17:09:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyudev (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyudev.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyudev"

Thu May  4 17:09:30 2023 rev:32 rq:1084226 version:0.24.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyudev/python-pyudev.changes      
2023-04-22 21:58:20.460456173 +0200
+++ /work/SRC/openSUSE:Factory/.python-pyudev.new.1533/python-pyudev.changes    
2023-05-04 17:09:40.232047383 +0200
@@ -1,0 +2,9 @@
+Wed May  3 09:11:27 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- update to 0.24.1:
+  * Recommended development release: Fedora 37
+  * Add support for PySide6
+  * Add missing 'priority' argument for GLib.to_add_watch()
+  * Tidies and Maintenance fixes
+
+-------------------------------------------------------------------

Old:
----
  python-pyudev-0.24.0-gh.tar.gz

New:
----
  python-pyudev-0.24.1-gh.tar.gz

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

Other differences:
------------------
++++++ python-pyudev.spec ++++++
--- /var/tmp/diff_new_pack.4P4UVw/_old  2023-05-04 17:09:40.780050592 +0200
+++ /var/tmp/diff_new_pack.4P4UVw/_new  2023-05-04 17:09:40.784050615 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %{?sle15_python_module_pythons}
 Name:           python-pyudev
-Version:        0.24.0
+Version:        0.24.1
 Release:        0
 Summary:        Udev bindings for Python
 License:        LGPL-2.1-or-later

++++++ pytest_register_mark.patch ++++++
--- /var/tmp/diff_new_pack.4P4UVw/_old  2023-05-04 17:09:40.812050779 +0200
+++ /var/tmp/diff_new_pack.4P4UVw/_new  2023-05-04 17:09:40.816050803 +0200
@@ -1,7 +1,7 @@
-Index: pyudev-0.24.0/pytest.ini
+Index: pyudev-0.24.1/pytest.ini
 ===================================================================
---- pyudev-0.24.0.orig/pytest.ini
-+++ pyudev-0.24.0/pytest.ini
+--- pyudev-0.24.1.orig/pytest.ini
++++ pyudev-0.24.1/pytest.ini
 @@ -1,3 +1,6 @@
 -[tool:pytest]
 +[pytest]
@@ -10,22 +10,10 @@
 +markers =
 +    conversion
 +    real_udev
-Index: pyudev-0.24.0/tests/_device_tests/_attributes_tests.py
+Index: pyudev-0.24.1/tests/_device_tests/_device_tests.py
 ===================================================================
---- pyudev-0.24.0.orig/tests/_device_tests/_attributes_tests.py
-+++ pyudev-0.24.0/tests/_device_tests/_attributes_tests.py
-@@ -125,6 +125,7 @@ class TestAttributes(object):
-                     except KeyError:
-                         pass
- 
-+    @pytest.mark.real_udev
-     @_UDEV_TEST(167, "test_available_attributes")
-     @given(strategies.sampled_from(_DEVICES))
-     @settings(max_examples=5)
-Index: pyudev-0.24.0/tests/_device_tests/_device_tests.py
-===================================================================
---- pyudev-0.24.0.orig/tests/_device_tests/_device_tests.py
-+++ pyudev-0.24.0/tests/_device_tests/_device_tests.py
+--- pyudev-0.24.1.orig/tests/_device_tests/_device_tests.py
++++ pyudev-0.24.1/tests/_device_tests/_device_tests.py
 @@ -212,6 +212,7 @@ class TestDevice(object):
          if device.device_node:
              assert is_unicode_string(device.device_node)
@@ -34,10 +22,10 @@
      @given(_CONTEXT_STRATEGY, strategies.sampled_from(_DEVICE_DATA))
      @settings(max_examples=5)
      def test_device_number(self, a_context, device_datum):
-Index: pyudev-0.24.0/tests/_device_tests/_devices_tests.py
+Index: pyudev-0.24.1/tests/_device_tests/_devices_tests.py
 ===================================================================
---- pyudev-0.24.0.orig/tests/_device_tests/_devices_tests.py
-+++ pyudev-0.24.0/tests/_device_tests/_devices_tests.py
+--- pyudev-0.24.1.orig/tests/_device_tests/_devices_tests.py
++++ pyudev-0.24.1/tests/_device_tests/_devices_tests.py
 @@ -125,6 +125,7 @@ class TestDevices(object):
          assert error.subsystem == "no_such_subsystem"
          assert error.sys_name == "foobar"
@@ -62,10 +50,10 @@
      @failed_health_check_wrapper
      @given(
          _CONTEXT_STRATEGY,
-Index: pyudev-0.24.0/tests/test_enumerate.py
+Index: pyudev-0.24.1/tests/test_enumerate.py
 ===================================================================
---- pyudev-0.24.0.orig/tests/test_enumerate.py
-+++ pyudev-0.24.0/tests/test_enumerate.py
+--- pyudev-0.24.1.orig/tests/test_enumerate.py
++++ pyudev-0.24.1/tests/test_enumerate.py
 @@ -101,7 +101,7 @@ class TestEnumerator(object):
  
      @failed_health_check_wrapper
@@ -75,11 +63,11 @@
      def test_match_subsystem_nomatch_unfulfillable(self, context, subsystem):
          """
          Combining match and no match should give an empty result.
-Index: pyudev-0.24.0/tests/test_util.py
+Index: pyudev-0.24.1/tests/test_util.py
 ===================================================================
---- pyudev-0.24.0.orig/tests/test_util.py
-+++ pyudev-0.24.0/tests/test_util.py
-@@ -129,6 +129,7 @@ def raise_valueerror():
+--- pyudev-0.24.1.orig/tests/test_util.py
++++ pyudev-0.24.1/tests/test_util.py
+@@ -119,6 +119,7 @@ def raise_valueerror():
  _CHAR_DEVICES = list(_CONTEXT.list_devices(subsystem="tty"))
  
  
@@ -87,7 +75,7 @@
  @pytest.mark.skipif(len(_CHAR_DEVICES) == 0, reason="no tty devices")
  @given(strategies.sampled_from(_CHAR_DEVICES))
  @settings(max_examples=5)
-@@ -142,6 +143,7 @@ def test_get_device_type_character_devic
+@@ -132,6 +133,7 @@ def test_get_device_type_character_devic
  _BLOCK_DEVICES = list(_CONTEXT.list_devices(subsystem="block"))
  
  

++++++ python-pyudev-0.24.0-gh.tar.gz -> python-pyudev-0.24.1-gh.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyudev-0.24.0/.github/workflows/main.yml 
new/pyudev-0.24.1/.github/workflows/main.yml
--- old/pyudev-0.24.0/.github/workflows/main.yml        2022-08-25 
18:21:35.000000000 +0200
+++ new/pyudev-0.24.1/.github/workflows/main.yml        2023-04-22 
01:45:53.000000000 +0200
@@ -18,21 +18,21 @@
       matrix:
         include:
           # MANDATORY CHECKS USING CURRENT DEVELOPMENT INTERPRETER
-          - python-version: "3.10"
+          - python-version: "3.11"
             dependencies: pytest hypothesis
             task: PYTHONPATH=./src make -f Makefile test-travis
           # MANDATORY CHECKS USING LOWEST SUPPORTED INTERPRETER
-          - python-version: "3.9"
+          - python-version: "3.10"
             dependencies: pytest hypothesis
             task: PYTHONPATH=./src make -f Makefile test-travis
           # MANDATORY CHECKS USING PYPY INTERPRETER
-          - python-version: pypy3
+          - python-version: pypy-3.9
             dependencies: pytest hypothesis
             task: PYTHONPATH=./src make -f Makefile test-travis
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v2
-      - uses: actions/setup-python@v2
+      - uses: actions/checkout@v3
+      - uses: actions/setup-python@v4
         with:
           python-version: ${{ matrix.python-version }}
       - name: Install dependencies
@@ -57,9 +57,9 @@
           - dependencies: pylint
             task: lint
     runs-on: ubuntu-latest
-    container: fedora:36  # CURRENT DEVELOPMENT ENVIRONMENT
+    container: fedora:37  # CURRENT DEVELOPMENT ENVIRONMENT
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
       - name: Install dependencies
         run: >
           dnf install -y
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyudev-0.24.0/.github/workflows/weekly.yml 
new/pyudev-0.24.1/.github/workflows/weekly.yml
--- old/pyudev-0.24.0/.github/workflows/weekly.yml      2022-08-25 
18:21:35.000000000 +0200
+++ new/pyudev-0.24.1/.github/workflows/weekly.yml      2023-04-22 
01:45:53.000000000 +0200
@@ -21,9 +21,9 @@
           - dependencies: pylint
             task: lint
     runs-on: ubuntu-latest
-    container: fedora:36  # NEXT DEVELOPMENT ENVIRONMENT
+    container: fedora:38  # NEXT DEVELOPMENT ENVIRONMENT
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
       - name: Install dependencies
         run: >
           dnf install -y
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyudev-0.24.0/CHANGES.rst 
new/pyudev-0.24.1/CHANGES.rst
--- old/pyudev-0.24.0/CHANGES.rst       2022-08-25 18:21:35.000000000 +0200
+++ new/pyudev-0.24.1/CHANGES.rst       2023-04-22 01:45:53.000000000 +0200
@@ -1,3 +1,23 @@
+0.24.1
+======
+Recommended development release: Fedora 37
+
+- Add support for PySide6:
+  https://github.com/pyudev/pyudev/pull/487
+
+- Add missing 'priority' argument for GLib.to_add_watch()
+  https://github.com/pyudev/pyudev/pull/479
+
+- Tidies and Maintenance:
+  https://github.com/pyudev/pyudev/pull/486
+  https://github.com/pyudev/pyudev/pull/485
+  https://github.com/pyudev/pyudev/pull/484
+  https://github.com/pyudev/pyudev/pull/481
+  https://github.com/pyudev/pyudev/pull/480
+  https://github.com/pyudev/pyudev/pull/477
+  https://github.com/pyudev/pyudev/pull/474
+
+
 0.24.0
 ======
 Recommended development release: Fedora 36
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyudev-0.24.0/README.rst new/pyudev-0.24.1/README.rst
--- old/pyudev-0.24.0/README.rst        2022-08-25 18:21:35.000000000 +0200
+++ new/pyudev-0.24.1/README.rst        2023-04-22 01:45:53.000000000 +0200
@@ -78,7 +78,7 @@
 .. _Python: http://www.python.org/
 .. _CPython: http://www.python.org/
 .. _PyPy: http://www.pypy.org/
-.. _libudev: http://www.kernel.org/pub/linux/utils/kernel/hotplug/libudev/
+.. _libudev: https://www.freedesktop.org/software/systemd/man/libudev.html
 .. _website: http://pyudev.readthedocs.org
 .. _user guide: http://pyudev.readthedocs.org/en/latest/guide.html
 .. _api reference: http://pyudev.readthedocs.org/en/latest/api/index.html
@@ -89,10 +89,11 @@
 
 Request a New Release
 ---------------------
-I continue to maintain this project, but I do not schedule regular releases.
+I will be doing regular releases of this project every August and October,
+shortly after Fedora releases are branched from rawhide.
 
-If you believe a new release would help you in some way, please file an issue,
-explaining why you need the new release, and I expect I'll put one up.
+If you believe an extra release would help you in some way, please file an
+issue, explaining why you need the new release, and I expect I'll put one up.
 
 Why should you explain why you need the new release? Well, it is helpful to me,
 because pyudev is not at all part of my regular work, and I tend not to know
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyudev-0.24.0/src/pyudev/glib.py 
new/pyudev-0.24.1/src/pyudev/glib.py
--- old/pyudev-0.24.0/src/pyudev/glib.py        2022-08-25 18:21:35.000000000 
+0200
+++ new/pyudev-0.24.1/src/pyudev/glib.py        2023-04-22 01:45:53.000000000 
+0200
@@ -65,7 +65,10 @@
             # pylint: disable=attribute-defined-outside-init
             # pylint: disable=no-member
             self.event_source = GLib.io_add_watch(
-                self.monitor, GLib.IO_IN, self._process_udev_event
+                self.monitor,
+                GLib.PRIORITY_DEFAULT,
+                GLib.IO_IN,
+                self._process_udev_event,
             )
         elif not value and self.event_source is not None:
             # pylint: disable=no-member
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyudev-0.24.0/src/pyudev/pyside6.py 
new/pyudev-0.24.1/src/pyudev/pyside6.py
--- old/pyudev-0.24.0/src/pyudev/pyside6.py     1970-01-01 01:00:00.000000000 
+0100
+++ new/pyudev-0.24.1/src/pyudev/pyside6.py     2023-04-22 01:45:53.000000000 
+0200
@@ -0,0 +1,44 @@
+# -*- coding: utf-8 -*-
+# Copyright (C) 2010, 2011, 2012, 2013 Sebastian Wiesner <lunary...@gmail.com>
+
+# This library is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by the
+# Free Software Foundation; either version 2.1 of the License, or (at your
+# option) any later version.
+
+# This library is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+# for more details.
+
+# You should have received a copy of the GNU Lesser General Public License
+# along with this library; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+"""
+    pyudev.pyside
+    =============
+
+    PySide integration.
+
+    :class:`QUDevMonitorObserver` integrates device monitoring into the
+    PySide\\_ mainloop by turing device events into Qt signals.
+
+    :mod:`PySide.QtCore` from PySide\\_ must be available when importing this
+    module.
+
+    .. _PySide: http://www.pyside.org
+
+    .. moduleauthor::  Sebastian Wiesner  <lunary...@gmail.com>
+    .. versionadded:: 0.6
+"""
+
+# isort: THIRDPARTY
+from PySide6 import QtCore  # pylint: disable=import-error
+
+from ._qt_base import MonitorObserverGenerator
+
+# pylint: disable=invalid-name
+MonitorObserver = MonitorObserverGenerator.make_monitor_observer(
+    QtCore.QObject, QtCore.Signal, QtCore.QSocketNotifier
+)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyudev-0.24.0/src/pyudev/version.py 
new/pyudev-0.24.1/src/pyudev/version.py
--- old/pyudev-0.24.0/src/pyudev/version.py     2022-08-25 18:21:35.000000000 
+0200
+++ new/pyudev-0.24.1/src/pyudev/version.py     2023-04-22 01:45:53.000000000 
+0200
@@ -23,7 +23,7 @@
     .. moduleauthor::  mulhern  <amulh...@redhat.com>
 """
 
-__version_info__ = (0, 24, 0, "")
+__version_info__ = (0, 24, 1, "")
 __version__ = "%s%s" % (
     ".".join(str(x) for x in __version_info__[:3]),
     "".join(str(x) for x in __version_info__[3:]),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pyudev-0.24.0/tests/_device_tests/_attributes_tests.py 
new/pyudev-0.24.1/tests/_device_tests/_attributes_tests.py
--- old/pyudev-0.24.0/tests/_device_tests/_attributes_tests.py  2022-08-25 
18:21:35.000000000 +0200
+++ new/pyudev-0.24.1/tests/_device_tests/_attributes_tests.py  2023-04-22 
01:45:53.000000000 +0200
@@ -124,27 +124,3 @@
                         device.attributes.asbool(key)
                     except KeyError:
                         pass
-
-    @_UDEV_TEST(167, "test_available_attributes")
-    @given(strategies.sampled_from(_DEVICES))
-    @settings(max_examples=5)
-    def test_available_attributes(self, a_device):
-        """
-        Test that the available attributes are exactly the names of files
-        in the sysfs directory that are regular files or softlinks.
-        """
-        available_attributes = sorted(a_device.attributes.available_attributes)
-
-        attribute_filenames = []
-        sys_path = a_device.sys_path
-        for filename in sorted(os.listdir(sys_path)):
-            filepath = os.path.join(sys_path, filename)
-            status = os.lstat(filepath)
-            mode = status.st_mode
-            if not stat.S_ISLNK(mode) and not stat.S_ISREG(mode):
-                continue
-            if not stat.S_IRUSR & mode:
-                continue
-            attribute_filenames.append(filename)
-
-        assert available_attributes == attribute_filenames
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyudev-0.24.0/tests/test_util.py 
new/pyudev-0.24.1/tests/test_util.py
--- old/pyudev-0.24.0/tests/test_util.py        2022-08-25 18:21:35.000000000 
+0200
+++ new/pyudev-0.24.1/tests/test_util.py        2023-04-22 01:45:53.000000000 
+0200
@@ -38,7 +38,6 @@
 _CONTEXT = Context()
 
 
-@pytest.mark.conversion
 def test_ensure_byte_string():
     assert isinstance(_util.ensure_byte_string("hello world"), bytes)
     assert _util.ensure_byte_string("hello world") == b"hello world"
@@ -46,13 +45,11 @@
     assert _util.ensure_byte_string(hello) is hello
 
 
-@pytest.mark.conversion
 def test_ensure_byte_string_none():
     with pytest.raises(AttributeError):
         _util.ensure_byte_string(None)
 
 
-@pytest.mark.conversion
 def test_ensure_unicode_string():
     assert is_unicode_string(_util.ensure_unicode_string(b"hello world"))
     assert _util.ensure_unicode_string(b"hello world") == "hello world"
@@ -60,13 +57,11 @@
     assert _util.ensure_unicode_string(hello) is hello
 
 
-@pytest.mark.conversion
 def test_ensure_unicode_string_none():
     with pytest.raises(AttributeError):
         _util.ensure_unicode_string(None)
 
 
-@pytest.mark.conversion
 def test_property_value_to_bytes_string():
     hello = "hello world".encode(sys.getfilesystemencoding())
     assert _util.property_value_to_bytes(hello) is hello
@@ -74,13 +69,11 @@
     assert _util.property_value_to_bytes("hello world") == hello
 
 
-@pytest.mark.conversion
 def test_property_value_to_bytes_int():
     assert _util.property_value_to_bytes(10000) == b"10000"
     assert isinstance(_util.property_value_to_bytes(10000), bytes)
 
 
-@pytest.mark.conversion
 def test_property_value_to_bytes_bool():
     assert _util.property_value_to_bytes(True) == b"1"
     assert isinstance(_util.property_value_to_bytes(True), bytes)
@@ -88,19 +81,16 @@
     assert isinstance(_util.property_value_to_bytes(False), bytes)
 
 
-@pytest.mark.conversion
 def test_string_to_bool_true():
     assert isinstance(_util.string_to_bool("1"), bool)
     assert _util.string_to_bool("1")
 
 
-@pytest.mark.conversion
 def test_string_to_bool_false():
     assert isinstance(_util.string_to_bool("0"), bool)
     assert not _util.string_to_bool("0")
 
 
-@pytest.mark.conversion
 def test_string_to_bool_invalid_value():
     with pytest.raises(ValueError) as exc_info:
         _util.string_to_bool("foo")

Reply via email to