From 4e89b1094162a2d8e8f4aec2b5c1e2d5a7fb4d4b Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Fri, 2 May 2025 08:04:42 +0000 Subject: Adding metadata --- dev-python/evdev/Manifest | 2 +- dev-python/evdev/evdev-1.8.0.ebuild | 49 --------------------------- dev-python/evdev/evdev-1.9.2.ebuild | 45 ++++++++++++++++++++++++ dev-python/evdev/files/evdev-1.8.0-test.patch | 22 ------------ 4 files changed, 46 insertions(+), 72 deletions(-) delete mode 100644 dev-python/evdev/evdev-1.8.0.ebuild create mode 100644 dev-python/evdev/evdev-1.9.2.ebuild delete mode 100644 dev-python/evdev/files/evdev-1.8.0-test.patch (limited to 'dev-python/evdev') diff --git a/dev-python/evdev/Manifest b/dev-python/evdev/Manifest index 7bd2ee2c8175..b1ab8d7bf7e8 100644 --- a/dev-python/evdev/Manifest +++ b/dev-python/evdev/Manifest @@ -1,2 +1,2 @@ -DIST python-evdev-1.8.0.gh.tar.gz 47568 BLAKE2B 489ebf6eecf2a7212b67f1393e105bbb801236f039bcc2adb805049a4941fc4d064a22b0928c69fa907197c444b49e7446b7641c4b19c1ff10b1fc4ad1a0d1ab SHA512 86b2c08068863473e89f1455ff29f049786c292eaf1bdd44ad584054280aa2d40182640d67301653251ed13b2e7414bc81b7afc6b978a392d95fdce786f23e36 DIST python-evdev-1.9.0.gh.tar.gz 47965 BLAKE2B 0e3f48f6e2e5896647eda50b05f87b3342706ef7d9d962dd01d48f5c03b3ed4f1a26c47a8390cc903ced1be38d0401844a270a8b91348513f2fffc3d57656147 SHA512 dfe9d457f768814ec2f8e610a21503ba3c218f1518cad6ab5ee369b7d5c604e4ffdf3304461b3004d2bf582412d9d6d1d2b3f86ed28bb03e6e663f3de1ff3a25 +DIST python-evdev-1.9.2.gh.tar.gz 48925 BLAKE2B db6ae75edc292f84c9d8d035b371ab08d50b323562b41ae0ef798a3afc1acebdddbc7a9128011bcdd92cb0a61eba75718a4aac4c7e5253421ebe6f9f0404bed0 SHA512 25caf75925de21f90959be131d4fac3c181a2a57175fe598aec72962604e53a41ca233e1380204bb35048d25937701a7e22cc88a3cb40bba0eb343bb1b815921 diff --git a/dev-python/evdev/evdev-1.8.0.ebuild b/dev-python/evdev/evdev-1.8.0.ebuild deleted file mode 100644 index 4ad1e6bda634..000000000000 --- a/dev-python/evdev/evdev-1.8.0.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) - -inherit distutils-r1 - -MY_P=python-evdev-${PV} -DESCRIPTION="Python library for evdev bindings" -HOMEPAGE=" - https://python-evdev.readthedocs.io/ - https://github.com/gvalkov/python-evdev/ - https://pypi.org/project/evdev/ -" -SRC_URI=" - https://github.com/gvalkov/python-evdev/archive/v${PV}.tar.gz - -> ${MY_P}.gh.tar.gz -" -S=${WORKDIR}/${MY_P} - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 x86" - -distutils_enable_tests pytest - -PATCHES=( - # upstream 27eb2ff11bb6b41fa0cfcff4f80d6c26d4b65742 (post 1.8.0) - "${FILESDIR}/${P}-test.patch" -) - -EPYTEST_DESELECT=( - tests/test_uinput.py -) - -python_configure_all() { - esetup.py build_ecodes \ - --evdev-headers \ - "${ESYSROOT}/usr/include/linux/input.h:${ESYSROOT}/usr/include/linux/input-event-codes.h" -} - -src_test() { - cd tests || die - distutils-r1_src_test -} diff --git a/dev-python/evdev/evdev-1.9.2.ebuild b/dev-python/evdev/evdev-1.9.2.ebuild new file mode 100644 index 000000000000..e40c72c24658 --- /dev/null +++ b/dev-python/evdev/evdev-1.9.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 + +MY_P=python-evdev-${PV} +DESCRIPTION="Python library for evdev bindings" +HOMEPAGE=" + https://python-evdev.readthedocs.io/ + https://github.com/gvalkov/python-evdev/ + https://pypi.org/project/evdev/ +" +SRC_URI=" + https://github.com/gvalkov/python-evdev/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # these tests rely on being able to open /dev/uinput + tests/test_uinput.py +) + +python_configure_all() { + esetup.py build_ecodes \ + --evdev-headers \ + "${ESYSROOT}/usr/include/linux/input.h:${ESYSROOT}/usr/include/linux/input-event-codes.h:${ESYSROOT}:/usr/include/linux/uinput.h" +} + +src_test() { + cd tests || die + distutils-r1_src_test +} diff --git a/dev-python/evdev/files/evdev-1.8.0-test.patch b/dev-python/evdev/files/evdev-1.8.0-test.patch deleted file mode 100644 index aa155da3398a..000000000000 --- a/dev-python/evdev/files/evdev-1.8.0-test.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 27eb2ff11bb6b41fa0cfcff4f80d6c26d4b65742 Mon Sep 17 00:00:00 2001 -From: Georgi Valkov -Date: Sat, 25 Jan 2025 18:04:39 +0100 -Subject: [PATCH 1/2] Fix tests - ---- - 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), -- cgit v1.3.1