1 |
commit: 6dbb73f2ae6f225bfcb067323428e95ba7eeb16b |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 9 12:42:04 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 9 13:39:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6dbb73f2 |
7 |
|
8 |
dev-python/pytest-console-scripts: import from ::sci |
9 |
|
10 |
Package-Manager: Portage-3.0.22, Repoman-3.0.3 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
12 |
|
13 |
dev-python/pytest-console-scripts/Manifest | 1 + |
14 |
dev-python/pytest-console-scripts/metadata.xml | 13 +++++++++ |
15 |
.../pytest-console-scripts-1.2.0.ebuild | 33 ++++++++++++++++++++++ |
16 |
3 files changed, 47 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/pytest-console-scripts/Manifest b/dev-python/pytest-console-scripts/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..2d4349eda3b |
21 |
--- /dev/null |
22 |
+++ b/dev-python/pytest-console-scripts/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST pytest-console-scripts-1.2.0.tar.gz 13976 BLAKE2B 1452ecfdc47d3341d8f3f30d49f371ae89d6138d56e4dc3a230f6a3803c6c36f542df40e2785c99c3cfd5080fa03b5b3d4926bb742dc99bd2127d47305fbf788 SHA512 07c9baab85035265ab6a21cc0c754b076dba87f08e1ab51319ef47a0a8af0b44f7d42422014c68cf93ed28b508138a70e14b968707cc831682885b3ca8106aa7 |
25 |
|
26 |
diff --git a/dev-python/pytest-console-scripts/metadata.xml b/dev-python/pytest-console-scripts/metadata.xml |
27 |
new file mode 100644 |
28 |
index 00000000000..9d775e8a4ca |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pytest-console-scripts/metadata.xml |
31 |
@@ -0,0 +1,13 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+ <maintainer type="project"> |
36 |
+ <email>sci@g.o</email> |
37 |
+ <name>Gentoo Science Project</name> |
38 |
+ </maintainer> |
39 |
+ <stabilize-allarches/> |
40 |
+ <upstream> |
41 |
+ <remote-id type="pypi">pytest-console-scripts</remote-id> |
42 |
+ <remote-id type="github">kvas-it/pytest-console-scripts</remote-id> |
43 |
+ </upstream> |
44 |
+</pkgmetadata> |
45 |
|
46 |
diff --git a/dev-python/pytest-console-scripts/pytest-console-scripts-1.2.0.ebuild b/dev-python/pytest-console-scripts/pytest-console-scripts-1.2.0.ebuild |
47 |
new file mode 100644 |
48 |
index 00000000000..6a673ce9730 |
49 |
--- /dev/null |
50 |
+++ b/dev-python/pytest-console-scripts/pytest-console-scripts-1.2.0.ebuild |
51 |
@@ -0,0 +1,33 @@ |
52 |
+# Copyright 1999-2021 Gentoo Authors |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI=8 |
56 |
+ |
57 |
+PYTHON_COMPAT=( python3_{8..10} ) |
58 |
+ |
59 |
+inherit distutils-r1 |
60 |
+ |
61 |
+DESCRIPTION="Pytest plugin for testing console scripts" |
62 |
+HOMEPAGE="https://github.com/kvas-it/pytest-console-scripts" |
63 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
64 |
+ |
65 |
+LICENSE="MIT" |
66 |
+SLOT="0" |
67 |
+KEYWORDS="~amd64" |
68 |
+ |
69 |
+RDEPEND=" |
70 |
+ >=dev-python/pytest-4.0.0[${PYTHON_USEDEP}] |
71 |
+ >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
72 |
+" |
73 |
+BDEPEND=" |
74 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
75 |
+" |
76 |
+ |
77 |
+distutils_enable_tests --install pytest |
78 |
+ |
79 |
+python_prepare_all() { |
80 |
+ # allow newer setuptools_scm |
81 |
+ sed -i -e 's/setuptools_scm<6/setuptools_scm/g' setup.py || die |
82 |
+ |
83 |
+ distutils-r1_python_prepare_all |
84 |
+} |