Gentoo Archives: gentoo-commits

From: Ronny Gutbrod <gentoo@××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/i3ipc/
Date: Tue, 01 Nov 2022 02:55:10
Message-Id: 1667095192.244a0037d5bbdc3dafd6fe828d37bf4973bf54b0.tastytea@gentoo
1 commit: 244a0037d5bbdc3dafd6fe828d37bf4973bf54b0
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Sun Oct 30 01:46:56 2022 +0000
4 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
5 CommitDate: Sun Oct 30 01:59:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=244a0037
7
8 dev-python/i3ipc: fix some of the tests, disable tests
9
10 Tests never worked, it seems. Most of the remaining errors are
11 AttributeError: 'async_generator' object has no attribute 'foo'
12
13 Bug: https://bugs.gentoo.org/800269
14 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
15
16 dev-python/i3ipc/i3ipc-2.2.1-r1.ebuild | 16 +++++++++++++++-
17 1 file changed, 15 insertions(+), 1 deletion(-)
18
19 diff --git a/dev-python/i3ipc/i3ipc-2.2.1-r1.ebuild b/dev-python/i3ipc/i3ipc-2.2.1-r1.ebuild
20 index 584d9d7e3..1a00b25ab 100644
21 --- a/dev-python/i3ipc/i3ipc-2.2.1-r1.ebuild
22 +++ b/dev-python/i3ipc/i3ipc-2.2.1-r1.ebuild
23 @@ -6,7 +6,7 @@ EAPI=8
24 DISTUTILS_USE_PEP517="setuptools"
25 PYTHON_COMPAT=( python3_{8..11} )
26
27 -inherit distutils-r1
28 +inherit distutils-r1 virtualx
29
30 DESCRIPTION="An improved Python library to control i3wm and sway."
31 HOMEPAGE="https://github.com/altdesktop/i3ipc-python"
32 @@ -21,5 +21,19 @@ RDEPEND="
33 dev-python/python-xlib[${PYTHON_USEDEP}]
34 "
35 DEPEND="${RDEPEND}"
36 +BDEPEND="
37 + ${BDEPEND}
38 + test? (
39 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
40 + dev-python/pytest-timeout[${PYTHON_USEDEP}]
41 + x11-wm/i3
42 + )
43 +"
44 +
45 +RESTRICT="test"
46
47 distutils_enable_tests pytest
48 +
49 +src_test() {
50 + virtx distutils-r1_src_test
51 +}