diff --git a/_service b/_service index 413b85c..eb0b1ca 100644 --- a/_service +++ b/_service @@ -1,3 +1,3 @@ - + diff --git a/fix-tests.patch b/fix-tests.patch new file mode 100644 index 0000000..742d20e --- /dev/null +++ b/fix-tests.patch @@ -0,0 +1,25 @@ +From: Georgi Valkov +Date: Sat, 25 Jan 2025 18:04:39 +0100 +Subject: [PATCH] Fix tests +Upstream: merged + +This is pulled from upstream main branch where it was committed right after the release. + +--- + tests/test_util.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/test_util.py b/tests/test_util.py +index 5a979df..7112927 100644 +--- a/tests/test_util.py ++++ b/tests/test_util.py +@@ -6,7 +6,7 @@ def test_match_ecodes_a(): + assert res == {1: [372, 418, 419, 420]} + assert dict(util.resolve_ecodes_dict(res)) == { + ("EV_KEY", 1): [ +- (["KEY_FULL_SCREEN", "KEY_ZOOM"], 372), ++ (("KEY_FULL_SCREEN", "KEY_ZOOM"), 372), + ("KEY_ZOOMIN", 418), + ("KEY_ZOOMOUT", 419), + ("KEY_ZOOMRESET", 420), + diff --git a/python-evdev-1.7.1.tar.gz b/python-evdev-1.7.1.tar.gz deleted file mode 100644 index 9b45ed1..0000000 --- a/python-evdev-1.7.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9f09ccbb89880dd82c7f71482b662fb1ebb5824968cac0cd3d4e50b9f7715f6a -size 88275 diff --git a/python-evdev-1.8.0.tar.gz b/python-evdev-1.8.0.tar.gz new file mode 100644 index 0000000..1407bcf --- /dev/null +++ b/python-evdev-1.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:886a7d55fd734ec9bda65e3620d401ad3147201ea9dbc086ca5dbb3e70c505b5 +size 47568 diff --git a/python-evdev.changes b/python-evdev.changes index 110e464..c7968a4 100644 --- a/python-evdev.changes +++ b/python-evdev.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Wed Jan 29 19:36:45 UTC 2025 - Matthias Bach - 1.8.0 + +- Update to 1.8.0 + * The evdev.ecodes module is now generated at install time and + contains only constants. This allows type checking and + introspection of the evdev.ecodes module, without having to + execute it first. The old module is available as + evdev.ecodes_runtime. + * Reverse mappings in evdev.ecodes that point to more than one + value are now tuples instead of lists. + * Fix keyboard delay and repeat being swapped. + * Move the syn() convenience method from InputDevice to EventIO. +- Add fix-tests.patch to pull in test fixes that upstream only + included after tagging their release. +- Switch source download during packaging from disabledrun to + manualrun. + ------------------------------------------------------------------- Thu May 9 09:18:42 UTC 2024 - Matthias Bach - 1.7.1 diff --git a/python-evdev.spec b/python-evdev.spec index 82e1046..97a8496 100644 --- a/python-evdev.spec +++ b/python-evdev.spec @@ -1,7 +1,7 @@ # # spec file for package python-evdev # -# 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 @@ -19,7 +19,7 @@ %define modname evdev %{?sle15_python_module_pythons} Name: python-evdev -Version: 1.7.1 +Version: 1.8.0 Release: 0 Summary: Python bindings to the Linux input handling subsystem License: BSD-3-Clause @@ -27,6 +27,7 @@ Group: Development/Languages/Python 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/refs/tags/v%{version}.tar.gz#/python-evdev-%{version}.tar.gz +Patch0: fix-tests.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest}