14
0
forked from pool/python-evdev

Accepting request 1241259 from devel:languages:python

- 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.

OBS-URL: https://build.opensuse.org/request/show/1241259
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-evdev?expand=0&rev=16
This commit is contained in:
2025-01-30 13:52:15 +00:00
committed by Git OBS Bridge
6 changed files with 50 additions and 6 deletions

View File

@@ -1,3 +1,3 @@
<services>
<service name="download_files" mode="disabled" />
<service name="download_files" mode="manual" />
</services>

25
fix-tests.patch Normal file
View File

@@ -0,0 +1,25 @@
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:9f09ccbb89880dd82c7f71482b662fb1ebb5824968cac0cd3d4e50b9f7715f6a
size 88275

View File

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

View File

@@ -1,3 +1,21 @@
-------------------------------------------------------------------
Wed Jan 29 19:36:45 UTC 2025 - Matthias Bach <marix@marix.org> - 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 <marix@marix.org> - 1.7.1

View File

@@ -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}