From fb5186d30a5581666964754822e348b2b52c1a178b5630be3ac3e4cf7e75e3b0 Mon Sep 17 00:00:00 2001 From: Matthias Bach Date: Mon, 19 Feb 2024 21:20:43 +0000 Subject: [PATCH 1/2] - Update to 1.7.0 * Add the uniq address to the string representation of InputDevice. * Improved method for finding the device node corresponding to a uinput device - Adjust package build to upstream's switch to pyproject.toml. - Switch package to modern Python * On Python 3.6 there is no new enough setuptools anyhow. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=29 --- python-evdev-1.6.1.tar.gz | 3 --- python-evdev-1.7.0.tar.gz | 3 +++ python-evdev.changes | 9 +++++++++ python-evdev.spec | 13 ++++++++----- 4 files changed, 20 insertions(+), 8 deletions(-) delete mode 100644 python-evdev-1.6.1.tar.gz create mode 100644 python-evdev-1.7.0.tar.gz diff --git a/python-evdev-1.6.1.tar.gz b/python-evdev-1.6.1.tar.gz deleted file mode 100644 index 74e4abe..0000000 --- a/python-evdev-1.6.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6b412da2d3b206feff86bb3b6456b8dde8e2b0b9ce23dfd4e556ced125c6ac4f -size 86199 diff --git a/python-evdev-1.7.0.tar.gz b/python-evdev-1.7.0.tar.gz new file mode 100644 index 0000000..a95c51d --- /dev/null +++ b/python-evdev-1.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3bf81c674412298531d26dd1e83b4b555faf392ba8a761c546aecd7ce4d8a7ba +size 87773 diff --git a/python-evdev.changes b/python-evdev.changes index 8b0b8ba..589bb96 100644 --- a/python-evdev.changes +++ b/python-evdev.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Feb 19 18:59:44 UTC 2024 - Matthias Bach - 1.7.0 + +- Update to 1.7.0 + * Add the uniq address to the string representation of InputDevice. + * Improved method for finding the device node corresponding to a + uinput device +- Adjust package build to upstream's switch to pyproject.toml. + ------------------------------------------------------------------- Wed Jul 12 12:35:05 UTC 2023 - ecsos diff --git a/python-evdev.spec b/python-evdev.spec index 07453bb..4ca7084 100644 --- a/python-evdev.spec +++ b/python-evdev.spec @@ -1,7 +1,7 @@ # # spec file for package python-evdev # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 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.6.1 +Version: 1.7.0 Release: 0 Summary: Python bindings to the Linux input handling subsystem License: BSD-3-Clause @@ -28,8 +28,10 @@ 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 BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module setuptools >= 61.0} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros %python_subpackages @@ -49,11 +51,12 @@ subsystem. %autosetup -p1 %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}/%{$python_sitearch} +%python_expand rm %{buildroot}/%{$python_sitearch}/%{modname}/*.c %check %if 0%{?sle_version} == 150300 && 0%{?is_opensuse} From 1b1e1432d00739361fa39867c1e615e4ac87cc9a23785ff1653654e1963b7636 Mon Sep 17 00:00:00 2001 From: Matthias Bach Date: Mon, 19 Feb 2024 22:13:11 +0000 Subject: [PATCH 2/2] - Drop obsolete Leap 15.3 compatiblity handling in spec file. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=30 --- python-evdev.changes | 1 + python-evdev.spec | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/python-evdev.changes b/python-evdev.changes index 589bb96..9982ca5 100644 --- a/python-evdev.changes +++ b/python-evdev.changes @@ -6,6 +6,7 @@ Mon Feb 19 18:59:44 UTC 2024 - Matthias Bach - 1.7.0 * Improved method for finding the device node corresponding to a uinput device - Adjust package build to upstream's switch to pyproject.toml. +- Drop obsolete Leap 15.3 compatiblity handling in spec file. ------------------------------------------------------------------- Wed Jul 12 12:35:05 UTC 2023 - ecsos diff --git a/python-evdev.spec b/python-evdev.spec index 4ca7084..1e29b3a 100644 --- a/python-evdev.spec +++ b/python-evdev.spec @@ -59,10 +59,6 @@ subsystem. %python_expand rm %{buildroot}/%{$python_sitearch}/%{modname}/*.c %check -%if 0%{?sle_version} == 150300 && 0%{?is_opensuse} -# Work around broken pytest macro on Leap 15.3 -PYTHONPATH=dummy -%endif %pytest_arch tests -k 'not test_uinput' %files %{python_files}