1 |
commit: ca556866b799cf28d3e33296c6c7320155db43ed |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 30 00:17:28 2022 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 31 01:28:06 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca556866 |
7 |
|
8 |
dev-python/pytest-shell-utilities: initial import |
9 |
|
10 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
11 |
|
12 |
dev-python/pytest-shell-utilities/Manifest | 1 + |
13 |
dev-python/pytest-shell-utilities/metadata.xml | 11 ++++++ |
14 |
.../pytest-shell-utilities-1.0.5.ebuild | 46 ++++++++++++++++++++++ |
15 |
3 files changed, 58 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pytest-shell-utilities/Manifest b/dev-python/pytest-shell-utilities/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000000..494f83b3252c |
20 |
--- /dev/null |
21 |
+++ b/dev-python/pytest-shell-utilities/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST pytest-shell-utilities-1.0.5.tar.gz 89489 BLAKE2B 9cd7f95c9c1691e19c320378d1c2a4e147cb6fdc35ec6f3c80dc288e70416fce67b60ac86427f1ad322b2c17de3cd762e483d63076fa291b4b7d22d7a29c9e45 SHA512 395107af9eaa13ef39d01858e1674b6dedddc2cf93b9aba61316fd8d847031e1b535cc3bf4f2899dbc7828609b7d45b500aad29bb47668be6e0453ac099e99e4 |
24 |
|
25 |
diff --git a/dev-python/pytest-shell-utilities/metadata.xml b/dev-python/pytest-shell-utilities/metadata.xml |
26 |
new file mode 100644 |
27 |
index 000000000000..16b2592b889f |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pytest-shell-utilities/metadata.xml |
30 |
@@ -0,0 +1,11 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="person"> |
35 |
+ <name>Patrick McLean</name> |
36 |
+ <email>chutzpah@g.o</email> |
37 |
+ </maintainer> |
38 |
+ <upstream> |
39 |
+ <remote-id type="pypi">pytest-shell-utilities</remote-id> |
40 |
+ </upstream> |
41 |
+</pkgmetadata> |
42 |
|
43 |
diff --git a/dev-python/pytest-shell-utilities/pytest-shell-utilities-1.0.5.ebuild b/dev-python/pytest-shell-utilities/pytest-shell-utilities-1.0.5.ebuild |
44 |
new file mode 100644 |
45 |
index 000000000000..f0e89950df2c |
46 |
--- /dev/null |
47 |
+++ b/dev-python/pytest-shell-utilities/pytest-shell-utilities-1.0.5.ebuild |
48 |
@@ -0,0 +1,46 @@ |
49 |
+# Copyright 2022 Gentoo Authors |
50 |
+# Distributed under the terms of the GNU General Public License v2 |
51 |
+ |
52 |
+EAPI=8 |
53 |
+ |
54 |
+DISTUTILS_USE_PEP517=setuptools |
55 |
+PYTHON_COMPAT=( python3_{8..10} ) |
56 |
+inherit distutils-r1 |
57 |
+ |
58 |
+DESCRIPTION="pytest plugin: fixtures and code to help with running shell commands on tests" |
59 |
+HOMEPAGE=" |
60 |
+ https://pypi.org/project/pytest-shell-utilities/ |
61 |
+ https://github.com/saltstack/pytest-shell-utilities |
62 |
+" |
63 |
+SRC_URI="https://github.com/saltstack/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
64 |
+ |
65 |
+LICENSE="Apache-2.0" |
66 |
+SLOT="0" |
67 |
+KEYWORDS="~amd64" |
68 |
+ |
69 |
+RDEPEND=" |
70 |
+ >=dev-python/pytest-6.0.0[${PYTHON_USEDEP}] |
71 |
+ dev-python/attrs[${PYTHON_USEDEP}] |
72 |
+ dev-python/psutil[${PYTHON_USEDEP}] |
73 |
+ dev-python/typing-extensions[${PYTHON_USEDEP}] |
74 |
+ dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] |
75 |
+ dev-python/pytest-skip-markers[${PYTHON_USEDEP}] |
76 |
+" |
77 |
+BDEPEND=" |
78 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
79 |
+ test? ( |
80 |
+ dev-python/pytest-subtests[${PYTHON_USEDEP}] |
81 |
+ ) |
82 |
+" |
83 |
+ |
84 |
+distutils_enable_tests pytest |
85 |
+ |
86 |
+python_prepare_all() { |
87 |
+ sed -e "s/use_scm_version=True/version='${PV}'/" -i setup.py || die |
88 |
+ sed -e "/setuptools_scm/ d" -i setup.cfg || die |
89 |
+ sed -e "s/tool.setuptools_scm/tool.disabled/" -i pyproject.toml || die |
90 |
+ |
91 |
+ printf '__version__ = "${PV}"\n' > src/pytestshellutils/version.py || die |
92 |
+ |
93 |
+ distutils-r1_python_prepare_all |
94 |
+} |