Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-evdev/
Date: Tue, 12 May 2020 13:58:10
Message-Id: 1589291833.9291018632baa450f7bef0d31157c40f200e2ae1.juippis@gentoo
1 commit: 9291018632baa450f7bef0d31157c40f200e2ae1
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Sun May 3 11:37:45 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue May 12 13:57:13 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92910186
7
8 dev-python/python-evdev: bump version to 1.3.0 + new proxy-maint
9
10 Also added support for python 3.8 with minimal testing on amd64
11
12 Closes: https://bugs.gentoo.org/720780
13 Package-Manager: Portage-2.3.89, Repoman-2.3.20
14 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
15 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
16
17 dev-python/python-evdev/Manifest | 1 +
18 dev-python/python-evdev/metadata.xml | 12 ++++++---
19 dev-python/python-evdev/python-evdev-1.3.0.ebuild | 30 +++++++++++++++++++++++
20 3 files changed, 39 insertions(+), 4 deletions(-)
21
22 diff --git a/dev-python/python-evdev/Manifest b/dev-python/python-evdev/Manifest
23 index 0fc035a8789..d3c4e07a420 100644
24 --- a/dev-python/python-evdev/Manifest
25 +++ b/dev-python/python-evdev/Manifest
26 @@ -1 +1,2 @@
27 DIST python-evdev-1.1.2.tar.gz 83067 BLAKE2B 6434d5c62e4a072928d555bfc92e94e7f63ef98ebbf9cd95795a92d6ccdf7b5d4b0f3133a4b3f2524083b842f78ccc305a5da13af59052be3724d83ea4039328 SHA512 054b2e5af532079dc52919d90791d12d7caf75cade07d18b94ea519869659413ea059570b16ebb236a715c541b17016db380bea4e3c1cd21f96824c6303b45d6
28 +DIST python-evdev-1.3.0.tar.gz 85018 BLAKE2B ba5c391631ecf8cc0a46f21830209c59b1217940ff25e051e027bc8896d71965a394f222f4e3d629ba2a2f8056ccbdc0dfaf43a37684d7157c7456d61f2d8314 SHA512 392fb4fabed344e6db4e257d4cfc7043393efda15d940be80b013e4c4e350334148a7b04aa0a7239f824ad2c7e0bb057c5cff1c0f320d30b25b0c9aab65a6891
29
30 diff --git a/dev-python/python-evdev/metadata.xml b/dev-python/python-evdev/metadata.xml
31 index 1bdf4307150..52c3f63cafa 100644
32 --- a/dev-python/python-evdev/metadata.xml
33 +++ b/dev-python/python-evdev/metadata.xml
34 @@ -1,8 +1,12 @@
35 <?xml version="1.0" encoding="UTF-8"?>
36 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
37 <pkgmetadata>
38 - <!-- maintainer-needed -->
39 - <upstream>
40 - <remote-id type="github">gvalkov/python-evdev</remote-id>
41 - </upstream>
42 + <maintainer type="person">
43 + <email>gentoo@×××××.cc</email>
44 + <name>Aisha Tammy</name>
45 + </maintainer>
46 + <maintainer type="project">
47 + <email>proxy-maint@g.o</email>
48 + <name>Proxy Maintainers</name>
49 + </maintainer>
50 </pkgmetadata>
51
52 diff --git a/dev-python/python-evdev/python-evdev-1.3.0.ebuild b/dev-python/python-evdev/python-evdev-1.3.0.ebuild
53 new file mode 100644
54 index 00000000000..32265562544
55 --- /dev/null
56 +++ b/dev-python/python-evdev/python-evdev-1.3.0.ebuild
57 @@ -0,0 +1,30 @@
58 +# Copyright 1999-2020 Gentoo Authors
59 +# Distributed under the terms of the GNU General Public License v2
60 +
61 +EAPI=7
62 +
63 +PYTHON_COMPAT=( python3_{6,7,8} )
64 +
65 +inherit distutils-r1
66 +
67 +DESCRIPTION="Python library for evdev bindings"
68 +HOMEPAGE="https://python-evdev.readthedocs.org/"
69 +SRC_URI="https://github.com/gvalkov/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
70 +
71 +LICENSE="BSD"
72 +SLOT="0"
73 +KEYWORDS="~amd64 ~arm ~x86"
74 +
75 +distutils_enable_tests pytest
76 +
77 +python_compile() {
78 + distutils-r1_python_compile build_ecodes \
79 + --evdev-headers \
80 + "${SYSROOT}"/usr/include/linux/input.h:"${SYSROOT}"/usr/include/linux/input-event-codes.h
81 +}
82 +
83 +python_test() {
84 + pytest -vv tests/test_ecodes.py || die "ecodes test failed for ${EPYTHON}"
85 + pytest -vv tests/test_events.py || die "events test failed for ${EPYTHON}"
86 + pytest -vv tests/test_uinput.py || die "uinput test failed foe ${EPYTHON}"
87 +}