1 |
commit: 78b64f930c2041093bd74805d15346c60626dcf4 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 30 14:32:53 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 30 17:43:18 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78b64f93 |
7 |
|
8 |
dev-python/pytest-catchlog: New package, ebuild written by me |
9 |
|
10 |
Package-Manager: portage-2.2.22 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
dev-python/pytest-catchlog/Manifest | 1 + |
14 |
dev-python/pytest-catchlog/metadata.xml | 9 ++++++ |
15 |
.../pytest-catchlog/pytest-catchlog-1.1.ebuild | 34 ++++++++++++++++++++++ |
16 |
3 files changed, 44 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/pytest-catchlog/Manifest b/dev-python/pytest-catchlog/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..77ac4ef |
21 |
--- /dev/null |
22 |
+++ b/dev-python/pytest-catchlog/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST pytest-catchlog-1.1.tar.gz 6540 SHA256 7ad18d77b93d70c4ea30ed4593b164be104efc50a9112a5733304a71f2cb1119 SHA512 7a272874f9fb4231a7b3a42742b752f0f9750fb861abfed0411bf8edae5ab3e67a0a33fe166e485d530a1ecf1834d131d3affcfc43a735fc5d28018ba155129a WHIRLPOOL cf04096c01176fc077c45ca26b5002e10cdc145e3d3ea83cc7594eb2cbaa3a7636ba661253b1a8e47e316407e672c5ee424df10d8026bc6adb2c04499d386d3f |
25 |
|
26 |
diff --git a/dev-python/pytest-catchlog/metadata.xml b/dev-python/pytest-catchlog/metadata.xml |
27 |
new file mode 100644 |
28 |
index 0000000..812a53f |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pytest-catchlog/metadata.xml |
31 |
@@ -0,0 +1,9 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+ <herd>python</herd> |
36 |
+ <upstream> |
37 |
+ <remote-id type="pypi">pytest-catchlog</remote-id> |
38 |
+ <remote-id type="github">eisensheng/pytest-catchlog</remote-id> |
39 |
+ </upstream> |
40 |
+</pkgmetadata> |
41 |
|
42 |
diff --git a/dev-python/pytest-catchlog/pytest-catchlog-1.1.ebuild b/dev-python/pytest-catchlog/pytest-catchlog-1.1.ebuild |
43 |
new file mode 100644 |
44 |
index 0000000..c539e0c |
45 |
--- /dev/null |
46 |
+++ b/dev-python/pytest-catchlog/pytest-catchlog-1.1.ebuild |
47 |
@@ -0,0 +1,34 @@ |
48 |
+# Copyright 1999-2015 Gentoo Foundation |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+# $Id$ |
51 |
+ |
52 |
+EAPI=5 |
53 |
+ |
54 |
+PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 ) |
55 |
+ |
56 |
+inherit distutils-r1 |
57 |
+ |
58 |
+DESCRIPTION="py.test plugin to catch log messages, fork of pytest-capturelog" |
59 |
+HOMEPAGE="https://pypi.python.org/pypi/pytest-catchlog https://github.com/eisensheng/pytest-catchlog" |
60 |
+#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
61 |
+SRC_URI="https://github.com/eisensheng/pytest-catchlog/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
62 |
+ |
63 |
+SLOT="0" |
64 |
+LICENSE="MIT" |
65 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
66 |
+IUSE="test" |
67 |
+ |
68 |
+RDEPEND=">=dev-python/py-1.1.1[${PYTHON_USEDEP}]" |
69 |
+DEPEND=" |
70 |
+ test? ( |
71 |
+ ${RDEPEND} |
72 |
+ >=dev-python/pytest-2.7.1[${PYTHON_USEDEP}] |
73 |
+ )" |
74 |
+ |
75 |
+# Cannot figure out how to run them |
76 |
+RESTRICT=test |
77 |
+ |
78 |
+python_test() { |
79 |
+ PYTHONPATH="${S}:${PYTONPATH}" \ |
80 |
+ py.test -v -v -x || die |
81 |
+} |