1 |
commit: ce21e3f6763f60f512de08415874ce8dd3de9159 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 11 16:28:45 2021 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 11 16:32:48 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce21e3f6 |
7 |
|
8 |
dev-python/pytest-testinfra: initial import |
9 |
|
10 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
11 |
|
12 |
dev-python/pytest-testinfra/Manifest | 1 + |
13 |
dev-python/pytest-testinfra/metadata.xml | 19 +++++++++++++ |
14 |
.../pytest-testinfra/pytest-testinfra-6.3.0.ebuild | 32 ++++++++++++++++++++++ |
15 |
3 files changed, 52 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pytest-testinfra/Manifest b/dev-python/pytest-testinfra/Manifest |
18 |
new file mode 100644 |
19 |
index 00000000000..37bc260fa2e |
20 |
--- /dev/null |
21 |
+++ b/dev-python/pytest-testinfra/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST pytest-testinfra-6.3.0.tar.gz 76309 BLAKE2B 95b4a6ac5ea3c3db2afdd537209bfeb2c188ec7c7935b73e831733fbbf2540b8769d1187338b3b9c9da997cd653e800004e7199537d95530967cd73a15cb2c2e SHA512 ff0add6bdadac92f6f997a94734d69d39598bc8d1f7689a6b269e59bc886825fcf8a42968c2d34a9ad7e77ed0112bf4044afede8e0dca2bbddc76c9c5612ae92 |
24 |
|
25 |
diff --git a/dev-python/pytest-testinfra/metadata.xml b/dev-python/pytest-testinfra/metadata.xml |
26 |
new file mode 100644 |
27 |
index 00000000000..75d52d73c62 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pytest-testinfra/metadata.xml |
30 |
@@ -0,0 +1,19 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <longdescription> |
35 |
+ With Testinfra you can write unit tests in Python to test actual state of your servers |
36 |
+ configured by management tools like Salt, Ansible, Puppet, Chef and so on. |
37 |
+ |
38 |
+ Testinfra aims to be a Serverspec equivalent in Python. |
39 |
+ </longdescription> |
40 |
+ <maintainer type="person"> |
41 |
+ <email>marecki@g.o</email> |
42 |
+ <name>Marek Szuba</name> |
43 |
+ </maintainer> |
44 |
+ <stabilize-allarches/> |
45 |
+ <upstream> |
46 |
+ <remote-id type="github">pytest-dev/pytest-testinfra</remote-id> |
47 |
+ <remote-id type="pypi">pytest-testinfra</remote-id> |
48 |
+ </upstream> |
49 |
+</pkgmetadata> |
50 |
|
51 |
diff --git a/dev-python/pytest-testinfra/pytest-testinfra-6.3.0.ebuild b/dev-python/pytest-testinfra/pytest-testinfra-6.3.0.ebuild |
52 |
new file mode 100644 |
53 |
index 00000000000..8081571a974 |
54 |
--- /dev/null |
55 |
+++ b/dev-python/pytest-testinfra/pytest-testinfra-6.3.0.ebuild |
56 |
@@ -0,0 +1,32 @@ |
57 |
+# Copyright 1999-2021 Gentoo Authors |
58 |
+# Distributed under the terms of the GNU General Public License v2 |
59 |
+ |
60 |
+EAPI=7 |
61 |
+ |
62 |
+PYTHON_COMPAT=( python3_{8..9} ) |
63 |
+ |
64 |
+inherit distutils-r1 |
65 |
+ |
66 |
+DESCRIPTION="Write unit tests in Python to test actual state of your servers" |
67 |
+HOMEPAGE="https://github.com/pytest-dev/pytest-testinfra" |
68 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
69 |
+ |
70 |
+LICENSE="Apache-2.0" |
71 |
+SLOT="0" |
72 |
+KEYWORDS="~amd64" |
73 |
+ |
74 |
+RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]" |
75 |
+BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}] |
76 |
+ test? ( |
77 |
+ app-admin/ansible[${PYTHON_USEDEP}] |
78 |
+ app-admin/salt[${PYTHON_USEDEP}] |
79 |
+ dev-python/paramiko[${PYTHON_USEDEP}] |
80 |
+ dev-python/pywinrm[${PYTHON_USEDEP}] |
81 |
+ )" |
82 |
+ |
83 |
+distutils_enable_tests pytest |
84 |
+ |
85 |
+pkg_postinst() { |
86 |
+ elog "For the list of available connection back-ends and their dependencies," |
87 |
+ elog "please consult https://testinfra.readthedocs.io/en/latest/backends.html" |
88 |
+} |