1 |
commit: 23242b4ed787969ed33289df14a3d1655a2e9e87 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 3 18:57:59 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 3 18:57:59 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=23242b4e |
7 |
|
8 |
dev-python/pytest-console-scripts: add new package |
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/metadata.xml | 8 ++++++ |
14 |
.../pytest-console-scripts-1.2.0.ebuild | 33 ++++++++++++++++++++++ |
15 |
2 files changed, 41 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pytest-console-scripts/metadata.xml b/dev-python/pytest-console-scripts/metadata.xml |
18 |
new file mode 100644 |
19 |
index 000000000..ae9640ffb |
20 |
--- /dev/null |
21 |
+++ b/dev-python/pytest-console-scripts/metadata.xml |
22 |
@@ -0,0 +1,8 @@ |
23 |
+<?xml version="1.0" encoding="UTF-8"?> |
24 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
25 |
+<pkgmetadata> |
26 |
+ <maintainer type="project"> |
27 |
+ <email>sci@g.o</email> |
28 |
+ <name>Gentoo Science Project</name> |
29 |
+ </maintainer> |
30 |
+</pkgmetadata> |
31 |
|
32 |
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 |
33 |
new file mode 100644 |
34 |
index 000000000..6a673ce97 |
35 |
--- /dev/null |
36 |
+++ b/dev-python/pytest-console-scripts/pytest-console-scripts-1.2.0.ebuild |
37 |
@@ -0,0 +1,33 @@ |
38 |
+# Copyright 1999-2021 Gentoo Authors |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=8 |
42 |
+ |
43 |
+PYTHON_COMPAT=( python3_{8..10} ) |
44 |
+ |
45 |
+inherit distutils-r1 |
46 |
+ |
47 |
+DESCRIPTION="Pytest plugin for testing console scripts" |
48 |
+HOMEPAGE="https://github.com/kvas-it/pytest-console-scripts" |
49 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="MIT" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ >=dev-python/pytest-4.0.0[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
58 |
+" |
59 |
+BDEPEND=" |
60 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
61 |
+" |
62 |
+ |
63 |
+distutils_enable_tests --install pytest |
64 |
+ |
65 |
+python_prepare_all() { |
66 |
+ # allow newer setuptools_scm |
67 |
+ sed -i -e 's/setuptools_scm<6/setuptools_scm/g' setup.py || die |
68 |
+ |
69 |
+ distutils-r1_python_prepare_all |
70 |
+} |