From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3DCC715802F for ; Fri, 24 Feb 2023 21:19:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 49A8BE08F3; Fri, 24 Feb 2023 21:19:38 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0B816E08F3 for ; Fri, 24 Feb 2023 21:19:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1DC21340F70 for ; Fri, 24 Feb 2023 21:19:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BE0A08AE for ; Fri, 24 Feb 2023 21:19:34 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1677273568.e1eb1d05c8b13107b6ab83f3c104250b7418c6b4.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-testinfra/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytest-testinfra/pytest-testinfra-7.0.0.ebuild X-VCS-Directories: dev-python/pytest-testinfra/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: e1eb1d05c8b13107b6ab83f3c104250b7418c6b4 X-VCS-Branch: master Date: Fri, 24 Feb 2023 21:19:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: eaf4b195-2913-416d-bfb1-2b1ea00e239f X-Archives-Hash: 36f2cda6671b799223e3e78860544a75 commit: e1eb1d05c8b13107b6ab83f3c104250b7418c6b4 Author: Marek Szuba gentoo org> AuthorDate: Fri Feb 24 20:41:35 2023 +0000 Commit: Marek Szuba gentoo org> CommitDate: Fri Feb 24 21:19:28 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1eb1d05 dev-python/pytest-testinfra: enable py3.11 ...with one test disabled for that version because it depends on app-admin/salt having 3.11 support as well - and if adding 3.10 support in it was anything to go by, it will take a while. Signed-off-by: Marek Szuba gentoo.org> .../pytest-testinfra/pytest-testinfra-7.0.0.ebuild | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/dev-python/pytest-testinfra/pytest-testinfra-7.0.0.ebuild b/dev-python/pytest-testinfra/pytest-testinfra-7.0.0.ebuild index 8969cefa4304..6e95a5f30b3f 100644 --- a/dev-python/pytest-testinfra/pytest-testinfra-7.0.0.ebuild +++ b/dev-python/pytest-testinfra/pytest-testinfra-7.0.0.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_10 ) +PYTHON_COMPAT=( python3_{10..11} ) inherit distutils-r1 @@ -30,7 +30,9 @@ BDEPEND=" dev-python/setuptools_scm[${PYTHON_USEDEP}] test? ( app-admin/ansible - app-admin/salt[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + app-admin/salt[${PYTHON_USEDEP}] + ' python3_10) dev-python/paramiko[${PYTHON_USEDEP}] dev-python/pywinrm[${PYTHON_USEDEP}] sys-apps/which @@ -39,6 +41,19 @@ BDEPEND=" distutils_enable_tests pytest +python_test() { + local -x EPYTEST_IGNORE=() + + # This is the only test which actually fails if salt cannot be imported + if [[ ${EPYTHON} == python3.11 ]]; then + EPYTEST_IGNORE+=( + test/test_backends.py::test_backend_importables + ) + fi + + epytest +} + pkg_postinst() { elog "For the list of available connection back-ends and their dependencies," elog "please consult https://testinfra.readthedocs.io/en/latest/backends.html"