1 |
commit: d0e9ec302e67bfdcb4965c2b46eeadf7a8aea401 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Mon Aug 17 16:50:31 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 15 08:09:19 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0e9ec30 |
7 |
|
8 |
dev-python/pytest-xvfb: A pytest plugin to run Xvfb for tests |
9 |
|
10 |
Package-Manager: Portage-3.0.2, Repoman-2.3.23 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
dev-python/pytest-xvfb/Manifest | 1 + |
15 |
dev-python/pytest-xvfb/metadata.xml | 12 ++++++++++ |
16 |
dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild | 30 +++++++++++++++++++++++++ |
17 |
3 files changed, 43 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/pytest-xvfb/Manifest b/dev-python/pytest-xvfb/Manifest |
20 |
new file mode 100644 |
21 |
index 00000000000..2132937334b |
22 |
--- /dev/null |
23 |
+++ b/dev-python/pytest-xvfb/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST pytest-xvfb-2.0.0.tar.gz 6855 BLAKE2B 338802ccbf5fc0c9ab3fccd7c172b31867cc86869dfc50dbb30daf396ecd9865e71c6486cc96c2485e2d5b6195dc2eff83a033864f88e1b2c64a3937b6b48c84 SHA512 42c2119b2c529a45b5de9f8ac2781306cfb9f00c1d0e0e9045ed40ccb7260cb6f400683802ab845ce2481dcadfcef007c8417a481e9c04f14ee1bdc68244d391 |
26 |
|
27 |
diff --git a/dev-python/pytest-xvfb/metadata.xml b/dev-python/pytest-xvfb/metadata.xml |
28 |
new file mode 100644 |
29 |
index 00000000000..d22e99d7357 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/pytest-xvfb/metadata.xml |
32 |
@@ -0,0 +1,12 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+<pkgmetadata> |
36 |
+ <maintainer type="person"> |
37 |
+ <email>andrewammerlaan@××××××.net</email> |
38 |
+ <name>Andrew Ammerlaan</name> |
39 |
+ </maintainer> |
40 |
+ <maintainer type="project"> |
41 |
+ <email>proxy-maint@g.o</email> |
42 |
+ <name>Proxy Maintainers</name> |
43 |
+ </maintainer> |
44 |
+</pkgmetadata> |
45 |
|
46 |
diff --git a/dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild b/dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild |
47 |
new file mode 100644 |
48 |
index 00000000000..f6108d71158 |
49 |
--- /dev/null |
50 |
+++ b/dev-python/pytest-xvfb/pytest-xvfb-2.0.0.ebuild |
51 |
@@ -0,0 +1,30 @@ |
52 |
+# Copyright 1999-2020 Gentoo Authors |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI=7 |
56 |
+ |
57 |
+PYTHON_COMPAT=( python3_{7,8} ) |
58 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
59 |
+ |
60 |
+inherit distutils-r1 |
61 |
+ |
62 |
+DESCRIPTION="A pytest plugin to run Xvfb for tests" |
63 |
+HOMEPAGE="https://pypi.org/project/pytest-xvfb/" |
64 |
+SRC_URI="https://github.com/The-Compiler/pytest-xvfb/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
65 |
+ |
66 |
+LICENSE="MIT" |
67 |
+SLOT="0" |
68 |
+KEYWORDS="~amd64 ~x86" |
69 |
+ |
70 |
+DEPEND=" |
71 |
+ >=dev-python/pytest-2.8.1[${PYTHON_USEDEP}] |
72 |
+ >=dev-python/pyvirtualdisplay-1.3[${PYTHON_USEDEP}] |
73 |
+ x11-base/xorg-server[xvfb] |
74 |
+" |
75 |
+ |
76 |
+distutils_enable_tests pytest |
77 |
+ |
78 |
+python_test() { |
79 |
+ distutils_install_for_testing |
80 |
+ pytest -vv || die "Tests failed with ${EPYTHON}" |
81 |
+} |