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 40B8515806E for ; Mon, 22 May 2023 05:53:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79F57E0A7F; Mon, 22 May 2023 05:53:40 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 639DCE0A7F for ; Mon, 22 May 2023 05:53:40 +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 A1802340C43 for ; Mon, 22 May 2023 05:53:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C5794A7A for ; Mon, 22 May 2023 05:53:36 +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: <1684734807.066d1921bf3f096425f46d2713c83119e06e1a4e.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-8.1.0.ebuild X-VCS-Directories: dev-python/pytest-testinfra/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 066d1921bf3f096425f46d2713c83119e06e1a4e X-VCS-Branch: master Date: Mon, 22 May 2023 05:53:36 +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: e2acf329-c6e9-43f0-a55c-f1ca446a1946 X-Archives-Hash: b55cc59e7d8bfe2d27040d7ff41cbdac commit: 066d1921bf3f096425f46d2713c83119e06e1a4e Author: Michał Górny gentoo org> AuthorDate: Mon May 22 04:01:11 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon May 22 05:53:27 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=066d1921 dev-python/pytest-testinfra: Bump to 8.1.0 Signed-off-by: Michał Górny gentoo.org> dev-python/pytest-testinfra/Manifest | 1 + .../pytest-testinfra/pytest-testinfra-8.1.0.ebuild | 56 ++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/dev-python/pytest-testinfra/Manifest b/dev-python/pytest-testinfra/Manifest index 2821fbb33404..aae2c6529d7a 100644 --- a/dev-python/pytest-testinfra/Manifest +++ b/dev-python/pytest-testinfra/Manifest @@ -1,2 +1,3 @@ DIST pytest-testinfra-7.0.0.tar.gz 79296 BLAKE2B b0870cbf466627daff0ed6a3063c15c9b725fab4009fc24c3779b56765901e6b8d3a42fce429f1e42151b78d61f52c38955772e562c74d78c717a61a5fe74f04 SHA512 507d7a434c2eb159e2c36b1be3d447e386d3a4e614f2717ed8add456358f644c18f801db6774a4854e4ec7936643febd332aa4096ab26ae0080aceeff420c78e DIST pytest-testinfra-8.0.0.tar.gz 83448 BLAKE2B e1dcd7f685183ad0d1c79f3fe7542797f2c91839faf79e2b368c0e330aec22a420621859d419f7816b72df4aad9ac9d5ecc99d257804311d6b8b77c20b5b833b SHA512 ee8e8df7ba0422ea60d55149495a682b88a62646b6b601dd95a135a5d3a131d5cc57cb0f0cc0ff7166d004758619283480e52b8507cc2eedbc25c46a16da60b5 +DIST pytest-testinfra-8.1.0.tar.gz 84156 BLAKE2B 169ccd6afc4260f3dd42c8eff8112395adc7216cfd3e5f7abeb9b9d3db0cd766465dd94a5ca500d610db469f0e51298b6fc26f3c0ffd27f2fc215d859c99e52d SHA512 2f98cc15952c5607ecc1db76bae90aa9d299951cd1f4c5f8ba6085a7f4e6babac7f4ef4e44e089829f7382139164259007125f505c18129cc7135b840d709931 diff --git a/dev-python/pytest-testinfra/pytest-testinfra-8.1.0.ebuild b/dev-python/pytest-testinfra/pytest-testinfra-8.1.0.ebuild new file mode 100644 index 000000000000..ac3689c80baf --- /dev/null +++ b/dev-python/pytest-testinfra/pytest-testinfra-8.1.0.ebuild @@ -0,0 +1,56 @@ +# 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 EPYTEST_DESELECT=() + + # This is the only test which actually fails if salt cannot be imported + if [[ ${EPYTHON} == python3.11 ]]; 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" +}