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 69BA615801B for ; Fri, 25 Aug 2023 09:49:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AFF2F2BC01D; Fri, 25 Aug 2023 09:49:36 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 9A7B62BC01A for ; Fri, 25 Aug 2023 09:49:36 +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 DF4C5340B7E for ; Fri, 25 Aug 2023 09:49:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 17160108D for ; Fri, 25 Aug 2023 09:49:33 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1692956969.8916d7f05e64aeb62e5adb4b7cc206d8829ad72e.mgorny@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/Manifest dev-python/pytest-testinfra/pytest-testinfra-9.0.0.ebuild X-VCS-Directories: dev-python/pytest-testinfra/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 8916d7f05e64aeb62e5adb4b7cc206d8829ad72e X-VCS-Branch: master Date: Fri, 25 Aug 2023 09:49:33 +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: f351f9c8-6e8e-4060-9909-5d0ac18e509f X-Archives-Hash: 7b09ba0ffbbb9a50498a9b7da2584e6b commit: 8916d7f05e64aeb62e5adb4b7cc206d8829ad72e Author: Michał Górny gentoo org> AuthorDate: Fri Aug 25 09:48:11 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Aug 25 09:49:29 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8916d7f0 dev-python/pytest-testinfra: Bump to 9.0.0 Signed-off-by: Michał Górny gentoo.org> dev-python/pytest-testinfra/Manifest | 1 + .../pytest-testinfra/pytest-testinfra-9.0.0.ebuild | 57 ++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/dev-python/pytest-testinfra/Manifest b/dev-python/pytest-testinfra/Manifest index 9edeb078a9b6..09885e963357 100644 --- a/dev-python/pytest-testinfra/Manifest +++ b/dev-python/pytest-testinfra/Manifest @@ -1 +1,2 @@ DIST pytest-testinfra-8.1.0.tar.gz 84156 BLAKE2B 169ccd6afc4260f3dd42c8eff8112395adc7216cfd3e5f7abeb9b9d3db0cd766465dd94a5ca500d610db469f0e51298b6fc26f3c0ffd27f2fc215d859c99e52d SHA512 2f98cc15952c5607ecc1db76bae90aa9d299951cd1f4c5f8ba6085a7f4e6babac7f4ef4e44e089829f7382139164259007125f505c18129cc7135b840d709931 +DIST pytest-testinfra-9.0.0.tar.gz 83896 BLAKE2B 8d75bf051ec91916dcb9bc727409eefbf53f8635b5dd953d2c1d05a1d4daa37ade01a23bcc004f77ced37d8fb30684df211d16d95839c1a8d8e5d5c4df5336ca SHA512 bbf66597c473b868f0dde0437d666f8235e835a35bfd12b4a86f9970e26c1963d83101e7e0e3b3817e23798bee342f47ac7666041f0e09038236f9ddca4afecf diff --git a/dev-python/pytest-testinfra/pytest-testinfra-9.0.0.ebuild b/dev-python/pytest-testinfra/pytest-testinfra-9.0.0.ebuild new file mode 100644 index 000000000000..6af6abc9e956 --- /dev/null +++ b/dev-python/pytest-testinfra/pytest-testinfra-9.0.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Write unit tests in Python to test actual state of your servers" +HOMEPAGE=" + https://github.com/pytest-dev/pytest-testinfra/ + https://pypi.org/project/pytest-testinfra/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~riscv" + +RDEPEND=" + dev-python/pytest[${PYTHON_USEDEP}] +" +# Ansible is called via its CLI +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + app-admin/ansible + $(python_gen_cond_dep ' + app-admin/salt[${PYTHON_USEDEP}] + ' python3_10) + dev-python/paramiko[${PYTHON_USEDEP}] + dev-python/pywinrm[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x EPYTEST_DESELECT=() + + # This is the only test which actually fails if salt cannot be imported + if ! has_version "dev-python/salt[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + 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" +}