Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-testinfra/
Date: Tue, 11 Jan 2022 18:38:33
Message-Id: 1641926299.e278132bbcd5b443c696ba46e96cb17aab10fd04.marecki@gentoo
1 commit: e278132bbcd5b443c696ba46e96cb17aab10fd04
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 11 16:58:19 2022 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 11 18:38:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e278132b
7
8 dev-python/pytest-testinfra: enable py3.10
9
10 Enough waiting for app-admin/salt.
11
12 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
13
14 .../pytest-testinfra/pytest-testinfra-6.5.0.ebuild | 18 +++++++++++++++---
15 1 file changed, 15 insertions(+), 3 deletions(-)
16
17 diff --git a/dev-python/pytest-testinfra/pytest-testinfra-6.5.0.ebuild b/dev-python/pytest-testinfra/pytest-testinfra-6.5.0.ebuild
18 index c336646d0373..a10a5d492b91 100644
19 --- a/dev-python/pytest-testinfra/pytest-testinfra-6.5.0.ebuild
20 +++ b/dev-python/pytest-testinfra/pytest-testinfra-6.5.0.ebuild
21 @@ -1,9 +1,9 @@
22 -# Copyright 1999-2021 Gentoo Authors
23 +# Copyright 1999-2022 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=8
27
28 -PYTHON_COMPAT=( python3_{8..9} )
29 +PYTHON_COMPAT=( python3_{8..10} )
30
31 inherit distutils-r1
32
33 @@ -20,13 +20,25 @@ RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]"
34 BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}]
35 test? (
36 app-admin/ansible
37 - app-admin/salt[${PYTHON_USEDEP}]
38 dev-python/paramiko[${PYTHON_USEDEP}]
39 dev-python/pywinrm[${PYTHON_USEDEP}]
40 + $(python_gen_cond_dep '
41 + app-admin/salt[${PYTHON_USEDEP}]
42 + ' python3_{8..9} )
43 )"
44
45 distutils_enable_tests pytest
46
47 +python_test() {
48 + if [[ ${EPYTHON} == "python3.10" ]]; then
49 + ewarn "Some of the tests are skipped on ${EPYTHON} because it still isn't supported by app-admin/salt"
50 + local EPYTEST_DESELECT=(
51 + test/test_backends.py::test_backend_importables
52 + )
53 + fi
54 + epytest
55 +}
56 +
57 pkg_postinst() {
58 elog "For the list of available connection back-ends and their dependencies,"
59 elog "please consult https://testinfra.readthedocs.io/en/latest/backends.html"