Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-evdev for openSUSE:Factory 
checked in at 2022-03-26 22:31:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-evdev (Old)
 and      /work/SRC/openSUSE:Factory/.python-evdev.new.1900 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-evdev"

Sat Mar 26 22:31:07 2022 rev:10 rq:965009 version:1.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-evdev/python-evdev.changes        
2022-01-17 22:35:30.782302024 +0100
+++ /work/SRC/openSUSE:Factory/.python-evdev.new.1900/python-evdev.changes      
2022-03-26 22:31:20.313976028 +0100
@@ -1,0 +2,9 @@
+Sat Mar 26 11:04:09 UTC 2022 - Matthias Bach <[email protected]> - 1.5.0
+
+- Update to 1.5.0
+  * Input device is now closed from main thread in
+    InputDevice.close()
+  * util.find_ecodes_by_regex now works across all Python versions
+- Drop evdev-re-Pattern.patch now included upstream
+
+-------------------------------------------------------------------

Old:
----
  evdev-re-Pattern.patch
  v1.4.0.tar.gz

New:
----
  v1.5.0.tar.gz

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

Other differences:
------------------
++++++ python-evdev.spec ++++++
--- /var/tmp/diff_new_pack.lJHlFQ/_old  2022-03-26 22:31:20.941976888 +0100
+++ /var/tmp/diff_new_pack.lJHlFQ/_new  2022-03-26 22:31:20.945976894 +0100
@@ -18,7 +18,7 @@
 
 %define modname evdev
 Name:           python-evdev
-Version:        1.4.0
+Version:        1.5.0
 Release:        0
 Summary:        Python bindings to the Linux input handling subsystem
 License:        BSD-3-Clause
@@ -26,8 +26,6 @@
 URL:            https://github.com/gvalkov/python-evdev
 # Source needs to be pulled form Github as the source distribution on PyPI 
lacks the test directory
 Source:         
https://github.com/gvalkov/python-evdev/archive/v%{version}.tar.gz
-# PATCH-FIX-UPSTREAM evdev-re-Pattern.patch -- gh#gvalkov/python-evdev#152
-Patch1:         evdev-re-Pattern.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}

++++++ v1.4.0.tar.gz -> v1.5.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.4.0/docs/changelog.rst 
new/python-evdev-1.5.0/docs/changelog.rst
--- old/python-evdev-1.4.0/docs/changelog.rst   2021-01-16 14:50:51.000000000 
+0100
+++ new/python-evdev-1.5.0/docs/changelog.rst   2022-03-24 01:29:19.000000000 
+0100
@@ -1,6 +1,22 @@
 Changelog
 ---------
 
+1.5.0 (Mar 24, 2022)
+==================
+
+- Fix documentation (`#163 
<https://github.com/gvalkov/python-evdev/pull/163>`_, `#160 
<https://github.com/gvalkov/python-evdev/pull/160>`_).
+
+- Re-enable TTY echo at evtest exit (`#155 
<https://github.com/gvalkov/python-evdev/pull/155>`_).
+
+- Fix ``ImportError: sys.meta_path is None, Python is likely shutting down`` 
(`#154 <https://github.com/gvalkov/python-evdev/pull/154>`_).
+
+- Closing the input device file descriptor in ``InputDevice.close()`` now
+  happens in the main thread, instead of in a new thread (reverts `#146
+  <https://github.com/gvalkov/python-evdev/pull/146>`_).
+
+- Fix ``util.find_ecodes_by_regex`` not working across all supported Python 
versions (`#152 <https://github.com/gvalkov/python-evdev/pull/152>`_).
+
+
 
 1.4.0 (Jan 16, 2021)
 ====================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.4.0/docs/conf.py 
new/python-evdev-1.5.0/docs/conf.py
--- old/python-evdev-1.4.0/docs/conf.py 2021-01-16 14:50:51.000000000 +0100
+++ new/python-evdev-1.5.0/docs/conf.py 2022-03-24 01:29:19.000000000 +0100
@@ -31,10 +31,11 @@
 # Add any Sphinx extension module names here, as strings. They can be 
extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
 extensions = [
-       'sphinx.ext.autodoc',
-       'sphinx.ext.viewcode',
-       'sphinx.ext.intersphinx',
-       'sphinx.ext.napoleon',
+    'sphinx.ext.autodoc',
+    'sphinx.ext.viewcode',
+    'sphinx.ext.intersphinx',
+    'sphinx.ext.napoleon',
+    'sphinx_copybutton',
 ]
 
 autodoc_member_order = 'bysource'
@@ -53,14 +54,14 @@
 
 # General information about the project.
 project = u'python-evdev'
-copyright = u'2012-2016, Georgi Valkov'
+copyright = u'2012-2022, Georgi Valkov'
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
 # built documents.
 #
 # The full version, including alpha/beta/rc tags.
-release = '1.4.0'
+release = '1.5.0'
 
 # The short X.Y version.
 version = release
@@ -258,3 +259,8 @@
 
 # How to display URL addresses: 'footnote', 'no', or 'inline'.
 #texinfo_show_urls = 'footnote'
+
+# Copybutton config
+#copybutton_prompt_text = r">>> "
+#copybutton_prompt_is_regexp = True
+#copybutton_only_copy_prompt_lines = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.4.0/docs/tutorial.rst 
new/python-evdev-1.5.0/docs/tutorial.rst
--- old/python-evdev-1.4.0/docs/tutorial.rst    2021-01-16 14:50:51.000000000 
+0100
+++ new/python-evdev-1.5.0/docs/tutorial.rst    2022-03-24 01:29:19.000000000 
+0100
@@ -175,14 +175,14 @@
    from evdev import InputDevice
    from selectors import DefaultSelector, EVENT_READ
 
-   selector = selectors.DefaultSelector()
+   selector = DefaultSelector()
 
-   mouse = evdev.InputDevice('/dev/input/event1')
-   keybd = evdev.InputDevice('/dev/input/event2')
+   mouse = InputDevice('/dev/input/event1')
+   keybd = InputDevice('/dev/input/event2')
 
    # This works because InputDevice has a `fileno()` method.
-   selector.register(mouse, selectors.EVENT_READ)
-   selector.register(keybd, selectors.EVENT_READ)
+   selector.register(mouse, EVENT_READ)
+   selector.register(keybd, EVENT_READ)
 
    while True:
        for key, mask in selector.select():
@@ -425,10 +425,11 @@
 
 ::
 
-    from evdev import ecodes, InputDevice, ff
+    from evdev import ecodes, InputDevice, ff, list_devices
+    import time
 
     # Find first EV_FF capable event device (that we have permissions to use).
-    for name in evdev.list_devices():
+    for name in list_devices():
         dev = InputDevice(name)
         if ecodes.EV_FF in dev.capabilities():
             break
@@ -446,5 +447,6 @@
 
     repeat_count = 1
     effect_id = dev.upload_effect(effect)
-    dev.write(e.EV_FF, effect_id, repeat_count)
+    dev.write(ecodes.EV_FF, effect_id, repeat_count)
+    time.sleep(duration_ms)
     dev.erase_effect(effect_id)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.4.0/evdev/device.py 
new/python-evdev-1.5.0/evdev/device.py
--- old/python-evdev-1.4.0/evdev/device.py      2021-01-16 14:50:51.000000000 
+0100
+++ new/python-evdev-1.5.0/evdev/device.py      2022-03-24 01:29:19.000000000 
+0100
@@ -4,7 +4,6 @@
 import warnings
 import contextlib
 import collections
-import threading
 
 from evdev import _input, ecodes, util
 from evdev.events import InputEvent
@@ -158,7 +157,7 @@
         if hasattr(self, 'fd') and self.fd is not None:
             try:
                 self.close()
-            except OSError:
+            except (OSError, ImportError, AttributeError):
                 pass
 
     def _capabilities(self, absinfo=True):
@@ -303,9 +302,7 @@
         if self.fd > -1:
             try:
                 super().close()
-                # avoid blocking at the end of functions when the destructor
-                # is called.
-                threading.Thread(target=os.close, args=(self.fd,)).start()
+                os.close(self.fd)
             finally:
                 self.fd = -1
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.4.0/evdev/evtest.py 
new/python-evdev-1.5.0/evdev/evtest.py
--- old/python-evdev-1.4.0/evdev/evtest.py      2021-01-16 14:50:51.000000000 
+0100
+++ new/python-evdev-1.5.0/evdev/evtest.py      2022-03-24 01:29:19.000000000 
+0100
@@ -67,7 +67,7 @@
     # Disable tty echoing if stdin is a tty.
     if sys.stdin.isatty():
         toggle_tty_echo(sys.stdin, enable=False)
-        atexit.register(toggle_tty_echo, sys.stdin, enable=False)
+        atexit.register(toggle_tty_echo, sys.stdin, enable=True)
 
     print('Listening for events (press ctrl-c to exit) ...')
     fd_to_device = {dev.fd: dev for dev in devices}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.4.0/evdev/util.py 
new/python-evdev-1.5.0/evdev/util.py
--- old/python-evdev-1.4.0/evdev/util.py        2021-01-16 14:50:51.000000000 
+0100
+++ new/python-evdev-1.5.0/evdev/util.py        2022-03-24 01:29:19.000000000 
+0100
@@ -118,6 +118,8 @@
     '''
     Find ecodes matching a regex and return a mapping of event type to event 
codes.
 
+    regex can be a pattern string or a compiled regular expression object.
+
     Example
     -------
     >>> find_ecodes_by_regex(r'(ABS|KEY)_BR(AKE|EAK)')
@@ -130,7 +132,7 @@
     }
     '''
 
-    regex = regex if isinstance(regex, re.Pattern) else re.compile(regex)
+    regex = re.compile(regex)  # re.compile is idempotent
     result = collections.defaultdict(list)
 
     for type_code, codes in ecodes.bytype.items():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.4.0/requirements-dev.txt 
new/python-evdev-1.5.0/requirements-dev.txt
--- old/python-evdev-1.4.0/requirements-dev.txt 2021-01-16 14:50:51.000000000 
+0100
+++ new/python-evdev-1.5.0/requirements-dev.txt 2022-03-24 01:29:19.000000000 
+0100
@@ -1,5 +1,6 @@
-pytest>=3.4.0
-Sphinx>=1.7.0
+pytest ~= 7.1.0
+Sphinx ~= 4.4.0
+sphinx-copybutton ~= 0.5.0
 bump2version
 sphinx_rtd_theme
 twine
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.4.0/setup.cfg 
new/python-evdev-1.5.0/setup.cfg
--- old/python-evdev-1.4.0/setup.cfg    2021-01-16 14:50:51.000000000 +0100
+++ new/python-evdev-1.5.0/setup.cfg    2022-03-24 01:29:19.000000000 +0100
@@ -1,5 +1,5 @@
 [bumpversion]
-current_version = 1.4.0
+current_version = 1.5.0
 message = Bump version: {current_version} -> {new_version}
 commit = True
 tag = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.4.0/setup.py 
new/python-evdev-1.5.0/setup.py
--- old/python-evdev-1.4.0/setup.py     2021-01-16 14:50:51.000000000 +0100
+++ new/python-evdev-1.5.0/setup.py     2022-03-24 01:29:19.000000000 +0100
@@ -22,12 +22,12 @@
 #-----------------------------------------------------------------------------
 classifiers = [
     'Development Status :: 5 - Production/Stable',
-    'Programming Language :: Python :: 2.7',
     'Programming Language :: Python :: 3',
-    'Programming Language :: Python :: 3.3',
-    'Programming Language :: Python :: 3.4',
-    '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',
     'Operating System :: POSIX :: Linux',
     'Intended Audience :: Developers',
     'Topic :: Software Development :: Libraries',
@@ -44,7 +44,7 @@
 #-----------------------------------------------------------------------------
 kw = {
     'name':                 'evdev',
-    'version':              '1.4.0',
+    'version':              '1.5.0',
 
     'description':          'Bindings to the Linux input handling subsystem',
     'long_description':     open(pjoin(here, 'README.rst')).read(),

Reply via email to