Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-utils/
Date: Sat, 01 Jan 2022 08:23:34
Message-Id: 1641025405.c87ae91060b7888de3577bed3e1ebaea0db21789.mgorny@gentoo
1 commit: c87ae91060b7888de3577bed3e1ebaea0db21789
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 1 08:23:05 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 1 08:23:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c87ae910
7
8 dev-python/python-utils: Ignore docs when collecting tests
9
10 The docs directory does not contain any tests but it triggers import
11 failures when doc dependencies are not installed.
12
13 Closes: https://bugs.gentoo.org/830383
14 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
15
16 dev-python/python-utils/python-utils-2.7.0.ebuild | 4 ++++
17 1 file changed, 4 insertions(+)
18
19 diff --git a/dev-python/python-utils/python-utils-2.7.0.ebuild b/dev-python/python-utils/python-utils-2.7.0.ebuild
20 index 151ae849531a..325baeedb039 100644
21 --- a/dev-python/python-utils/python-utils-2.7.0.ebuild
22 +++ b/dev-python/python-utils/python-utils-2.7.0.ebuild
23 @@ -18,6 +18,10 @@ RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
24
25 distutils_enable_tests pytest
26
27 +EPYTEST_IGNORE=(
28 + docs
29 +)
30 +
31 python_prepare_all() {
32 sed -i -e '/--cov/d' -e '/--flake8/d' pytest.ini || die
33 distutils-r1_python_prepare_all