1 |
commit: b79a44c86e275d9ebef960ed9fb962950a3ce048 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 1 13:52:39 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 1 14:56:21 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b79a44c8 |
7 |
|
8 |
dev-python/pytest-subtesthack: New package, needed for vdirsyncer tests |
9 |
|
10 |
dev-python/pytest-subtesthack/Manifest | 1 + |
11 |
dev-python/pytest-subtesthack/metadata.xml | 11 ++++++++ |
12 |
.../pytest-subtesthack-0.1.1.ebuild | 30 ++++++++++++++++++++++ |
13 |
3 files changed, 42 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/pytest-subtesthack/Manifest b/dev-python/pytest-subtesthack/Manifest |
16 |
new file mode 100644 |
17 |
index 00000000000..a8eb1fa1cf1 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/pytest-subtesthack/Manifest |
20 |
@@ -0,0 +1 @@ |
21 |
+DIST pytest-subtesthack-0.1.1.tar.gz 2410 SHA256 9700cc25e9dbe49a2d399b14ea107ab985ee40ebd0d1a7d457b05d15aa9ae632 SHA512 0bf6425b535e65dc7f06f74493d10fbb6451e78a817174638661d7525f39f092f67db8da010228cbd54b400485e71e443118f91ebef660b9c00d2b354062a55f WHIRLPOOL e8e05351eaf140148f5fc6e3023cd564253e62781d69578f330e3393c0dffaa3ee265c457fb9234f066ece28d42280402401abba540f780d5137d79b5f161fdf |
22 |
|
23 |
diff --git a/dev-python/pytest-subtesthack/metadata.xml b/dev-python/pytest-subtesthack/metadata.xml |
24 |
new file mode 100644 |
25 |
index 00000000000..6979d31debc |
26 |
--- /dev/null |
27 |
+++ b/dev-python/pytest-subtesthack/metadata.xml |
28 |
@@ -0,0 +1,11 @@ |
29 |
+<?xml version="1.0" encoding="UTF-8"?> |
30 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
31 |
+<pkgmetadata> |
32 |
+ <maintainer type="project"> |
33 |
+ <email>python@g.o</email> |
34 |
+ <name>Python</name> |
35 |
+ </maintainer> |
36 |
+ <upstream> |
37 |
+ <remote-id type="pypi">pytest-subtesthack</remote-id> |
38 |
+ </upstream> |
39 |
+</pkgmetadata> |
40 |
|
41 |
diff --git a/dev-python/pytest-subtesthack/pytest-subtesthack-0.1.1.ebuild b/dev-python/pytest-subtesthack/pytest-subtesthack-0.1.1.ebuild |
42 |
new file mode 100644 |
43 |
index 00000000000..5213ff6241f |
44 |
--- /dev/null |
45 |
+++ b/dev-python/pytest-subtesthack/pytest-subtesthack-0.1.1.ebuild |
46 |
@@ -0,0 +1,30 @@ |
47 |
+# Copyright 1999-2017 Gentoo Foundation |
48 |
+# Distributed under the terms of the GNU General Public License v2 |
49 |
+ |
50 |
+EAPI=6 |
51 |
+ |
52 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
53 |
+inherit distutils-r1 |
54 |
+ |
55 |
+DESCRIPTION="A hack for test fixtures, needed for hypothesis inside py.test" |
56 |
+HOMEPAGE="https://github.com/untitaker/pytest-subtesthack/" |
57 |
+# pypi tarball misses tests |
58 |
+SRC_URI="https://github.com/untitaker/pytest-subtesthack/archive/${PV}.tar.gz -> ${P}.tar.gz" |
59 |
+ |
60 |
+LICENSE="public-domain" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="~amd64 ~x86" |
63 |
+IUSE="test" |
64 |
+ |
65 |
+RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]" |
66 |
+DEPEND="${RDEPEND} |
67 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
68 |
+ test? ( |
69 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
70 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
71 |
+ )" |
72 |
+ |
73 |
+python_test() { |
74 |
+ distutils_install_for_testing |
75 |
+ py.test -v || die "Tests fail with ${EPYTHON}" |
76 |
+} |