From e6bd0154fd19ac36250b6d942671ffbe59f255ddf6ccbdb3da83cf4e286d62f0 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 28 Apr 2025 14:06:05 +0000 Subject: [PATCH] - update to 1.8.1: * Remove incorrectly merged line for the *Xorg* backend. * Let events know about the new ``injected`` parameter. * Add a flag to callbacks to allow detecting injected input events. * Add ``media_stop`` key for *macOS*. Thanks to *laura-3*! * Add ``eject`` key for *macOS*. Thanks to *DiMNDev*! * Rename method for listeners to not conflict with new ``threading.Thread`` field. * Small corrections to the documentation. * Handle explicit timeout when calling ``join`` on listeners. * Correct regression in hot key handling for special keys. * Reverted changes to lazy loading of ``CoreFoundation`` and ``Quartz``, since this still does not appear to work. * Let the type of values in ``Key`` be ``KeyCode`` so that type checkers are not confused. * Do not crash in ``__del__`` on *Xorg* if display creation fails. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynput?expand=0&rev=9 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + pynput-1.7.6.tar.gz | 3 ++ pynput-1.8.1.tar.gz | 3 ++ python-pynput.changes | 55 ++++++++++++++++++++++++++++++++++ python-pynput.spec | 68 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 153 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pynput-1.7.6.tar.gz create mode 100644 pynput-1.8.1.tar.gz create mode 100644 python-pynput.changes create mode 100644 python-pynput.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pynput-1.7.6.tar.gz b/pynput-1.7.6.tar.gz new file mode 100644 index 0000000..2496efc --- /dev/null +++ b/pynput-1.7.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a5726546da54116b687785d38b1db56997ce1d28e53e8d22fc656d8b92e533c +size 79501 diff --git a/pynput-1.8.1.tar.gz b/pynput-1.8.1.tar.gz new file mode 100644 index 0000000..77c1a2f --- /dev/null +++ b/pynput-1.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70d7c8373ee98911004a7c938742242840a5628c004573d84ba849d4601df81e +size 82289 diff --git a/python-pynput.changes b/python-pynput.changes new file mode 100644 index 0000000..db2a992 --- /dev/null +++ b/python-pynput.changes @@ -0,0 +1,55 @@ +------------------------------------------------------------------- +Mon Apr 28 14:04:49 UTC 2025 - Dirk Müller + +- update to 1.8.1: + * Remove incorrectly merged line for the *Xorg* backend. + * Let events know about the new ``injected`` parameter. + * Add a flag to callbacks to allow detecting injected input + events. + * Add ``media_stop`` key for *macOS*. Thanks to *laura-3*! + * Add ``eject`` key for *macOS*. Thanks to *DiMNDev*! + * Rename method for listeners to not conflict with new + ``threading.Thread`` field. + * Small corrections to the documentation. + * Handle explicit timeout when calling ``join`` on listeners. + * Correct regression in hot key handling for special keys. + * Reverted changes to lazy loading of ``CoreFoundation`` and + ``Quartz``, since this still does not appear to work. + * Let the type of values in ``Key`` be ``KeyCode`` so that type + checkers are not confused. + * Do not crash in ``__del__`` on *Xorg* if display creation fails. + +------------------------------------------------------------------- +Wed Aug 16 09:51:47 UTC 2023 - Dominique Leuenberger + +- Fix dependencies: do not ever use python_module in requires, as + it expands to all python flavors. + +------------------------------------------------------------------- +Sun Aug 13 01:48:04 UTC 2023 - Greg Freemyer + +- boo#1214205 shows the spec file has some serious issues +- This package was not using the latest python packaging guidelines +- I basically re-did it from scratch +- Remove unused patches: + - unicode.patch + - no-setuptools-lint.patch + +------------------------------------------------------------------- +Fri Apr 28 13:43:30 UTC 2023 - Frederic Crozat + +- Update to 1.7.6 +- Ship license as part of generated packages. +- Do not try to build on python2 and simplify Suggests list. +- Only build on primary python. + +------------------------------------------------------------------- +Mon Aug 2 08:18:36 UTC 2021 - Simon Lees + +- Update to 1.7.3 and prep for factory inclusion + * Add no-setuptools-lint.patch from suggestion on #opensuse-python + +------------------------------------------------------------------- +Wed Apr 3 17:05:43 UTC 2019 - Lars Vogdt + +- initial version 1.4.2 diff --git a/python-pynput.spec b/python-pynput.spec new file mode 100644 index 0000000..de24001 --- /dev/null +++ b/python-pynput.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-pynput +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} + +Name: python-pynput +Version: 1.8.1 +Release: 0 +Summary: Monitor and control user input devices +License: LGPL-3.0-only +URL: https://github.com/moses-palmer/pynput +Source: https://files.pythonhosted.org/packages/source/p/pynput/pynput-%{version}.tar.gz +BuildRequires: %{python_module Sphinx >= 1.3.1} +BuildRequires: %{python_module pip} +# this is part of the auto generated spec file, but opensuse +# BuildRequires: %%{python_module setuptools-lint >= 0.5} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module evdev} +BuildRequires: %{python_module python-xlib} +BuildRequires: %{python_module six} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +# SECTION test requirements +# /SECTION +BuildRequires: fdupes +Requires: python-evdev >= 1.3 +Requires: python-six +Suggests: python-enum34 +Suggests: python-pyobjc-framework-ApplicationServices >= 8.0 +Suggests: python-pyobjc-framework-Quartz >= 8.0 +BuildArch: noarch +%python_subpackages + +%description +Monitor and control user input devices + +%prep +%autosetup -p1 -n pynput-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc README.rst +%license COPYING.LGPL +%{python_sitelib}/pynput +%{python_sitelib}/pynput-%{version}.dist-info + +%changelog