14
0
forked from pool/python-evdev

Accepting request 1244849 from devel:languages:python

- Update to 1.9.0
  * Slightly faster reading of events in device.read() and
    device.read_one().
  * Drop deprecated InputDevice.fn (use InputDevice.path instead).
  * Improve type hint coverage and add a py.typed file.
- Remove fix-tests.patch as it was included upstream.

OBS-URL: https://build.opensuse.org/request/show/1244849
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-evdev?expand=0&rev=17
This commit is contained in:
2025-02-11 20:23:26 +00:00
committed by Git OBS Bridge
5 changed files with 14 additions and 30 deletions

View File

@@ -1,25 +0,0 @@
From: Georgi Valkov <georgi.t.valkov@gmail.com>
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),

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:886a7d55fd734ec9bda65e3620d401ad3147201ea9dbc086ca5dbb3e70c505b5
size 47568

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9783a80dca381b9258f74a80a8f7be3fcd7e1c8206752bc428b1b88be22ab369
size 47965

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Feb 10 19:03:30 UTC 2025 - Matthias Bach <marix@marix.org> - 1.9.0
- Update to 1.9.0
* Slightly faster reading of events in device.read() and
device.read_one().
* Drop deprecated InputDevice.fn (use InputDevice.path instead).
* Improve type hint coverage and add a py.typed file.
- Remove fix-tests.patch as it was included upstream.
-------------------------------------------------------------------
Wed Jan 29 19:36:45 UTC 2025 - Matthias Bach <marix@marix.org> - 1.8.0

View File

@@ -19,7 +19,7 @@
%define modname evdev
%{?sle15_python_module_pythons}
Name: python-evdev
Version: 1.8.0
Version: 1.9.0
Release: 0
Summary: Python bindings to the Linux input handling subsystem
License: BSD-3-Clause
@@ -27,7 +27,6 @@ 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}