summaryrefslogtreecommitdiff
path: root/dev-python/pytest-testinfra
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
commitb590c8d7572b727d565cc0b8ff660d43569845de (patch)
tree06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/pytest-testinfra
parent24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff)
downloadbaldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip
Adding metadata
Diffstat (limited to 'dev-python/pytest-testinfra')
-rw-r--r--dev-python/pytest-testinfra/Manifest2
-rw-r--r--dev-python/pytest-testinfra/metadata.xml16
-rw-r--r--dev-python/pytest-testinfra/pytest-testinfra-10.2.2.ebuild56
3 files changed, 74 insertions, 0 deletions
diff --git a/dev-python/pytest-testinfra/Manifest b/dev-python/pytest-testinfra/Manifest
new file mode 100644
index 000000000000..075dc72ba967
--- /dev/null
+++ b/dev-python/pytest-testinfra/Manifest
@@ -0,0 +1,2 @@
+DIST pytest_testinfra-10.2.2.tar.gz 76153 BLAKE2B 85d25268eacbdbf97fcbfdd32cea92228475a76cc057cd633fd096375a1e5397f31628cffed1cafcbb41ef5f29ef5ea55f5134c3455d562e3d644006a897b706 SHA512 bcbc4d60bfbc030d0ca37f710c3b300890f18275830e0e7758bbceee3eb37ed020b9053e32ece1f5ce0be6cb341adff87e2842dabb2100280f4ec8f4acec1113
+DIST pytest_testinfra-10.2.2.tar.gz.provenance 9233 BLAKE2B 9825deae04b10c238bd220a1db316bbacf3e528382861448e13d68359474878421fd0b29c384ad90187ccc1dad5ccb98929bc035308ebcd73756bcac7fb3ce28 SHA512 697940bc33d4b3cee8b856633a8958cbab9151cf7f496977222bda14afa3f90bf89daf4bb53dd4c9aae9a6fc8c78cbac5095590e88ca264b18be5205a6607f17
diff --git a/dev-python/pytest-testinfra/metadata.xml b/dev-python/pytest-testinfra/metadata.xml
new file mode 100644
index 000000000000..483909f46119
--- /dev/null
+++ b/dev-python/pytest-testinfra/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription>
+ With Testinfra you can write unit tests in Python to test actual state of your servers
+ configured by management tools like Salt, Ansible, Puppet, Chef and so on.
+
+ Testinfra aims to be a Serverspec equivalent in Python.
+ </longdescription>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <stabilize-allarches />
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>
diff --git a/dev-python/pytest-testinfra/pytest-testinfra-10.2.2.ebuild b/dev-python/pytest-testinfra/pytest-testinfra-10.2.2.ebuild
new file mode 100644
index 000000000000..6c25ee7330dd
--- /dev/null
+++ b/dev-python/pytest-testinfra/pytest-testinfra-10.2.2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYPI_VERIFY_REPO=https://github.com/pytest-dev/pytest-testinfra
+PYTHON_COMPAT=( python3_{13..14} )
+
+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 arm64 ~riscv"
+
+RDEPEND="
+ dev-python/pytest[${PYTHON_USEDEP}]
+"
+# Ansible is called via its CLI
+BDEPEND="
+ dev-python/setuptools-scm[${PYTHON_USEDEP}]
+ test? (
+ app-admin/ansible
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ dev-python/pywinrm[${PYTHON_USEDEP}]
+ )
+"
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
+python_test() {
+ local 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"
+}