1 |
commit: 897be22576a166416a7f2b15e757b6690d024d9b |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 6 22:56:10 2020 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 6 22:57:11 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=897be225 |
7 |
|
8 |
app-crypt/certbot: fix testing, again |
9 |
|
10 |
Closes: https://bugs.gentoo.org/708506 |
11 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
12 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
13 |
|
14 |
.../{certbot-1.2.0.ebuild => certbot-1.2.0-r1.ebuild} | 18 ++++++++---------- |
15 |
app-crypt/certbot/certbot-9999.ebuild | 18 ++++++++---------- |
16 |
2 files changed, 16 insertions(+), 20 deletions(-) |
17 |
|
18 |
diff --git a/app-crypt/certbot/certbot-1.2.0.ebuild b/app-crypt/certbot/certbot-1.2.0-r1.ebuild |
19 |
similarity index 84% |
20 |
rename from app-crypt/certbot/certbot-1.2.0.ebuild |
21 |
rename to app-crypt/certbot/certbot-1.2.0-r1.ebuild |
22 |
index ec673774775..c81039179f5 100644 |
23 |
--- a/app-crypt/certbot/certbot-1.2.0.ebuild |
24 |
+++ b/app-crypt/certbot/certbot-1.2.0-r1.ebuild |
25 |
@@ -38,14 +38,12 @@ RDEPEND=" |
26 |
dev-python/pytz[${PYTHON_USEDEP}] |
27 |
dev-python/zope-component[${PYTHON_USEDEP}] |
28 |
dev-python/zope-interface[${PYTHON_USEDEP}]" |
29 |
-DEPEND=" |
30 |
- ${CDEPEND} |
31 |
- test? ( |
32 |
- dev-python/pytest[${PYTHON_USEDEP}] |
33 |
- )" |
34 |
- |
35 |
-python_test() { |
36 |
- # acme is not installed, removing it here is fine, the dir just confuses tests |
37 |
- rm -R ../acme |
38 |
- pytest -vv ${PN} || die |
39 |
+DEPEND="${CDEPEND}" |
40 |
+ |
41 |
+distutils_enable_tests pytest |
42 |
+ |
43 |
+python_prepare_all() { |
44 |
+ # required as deps of deps can trigger this too... |
45 |
+ echo ' ignore:.*collections\.abc:DeprecationWarning' >> ../pytest.ini |
46 |
+ distutils-r1_python_prepare_all |
47 |
} |
48 |
|
49 |
diff --git a/app-crypt/certbot/certbot-9999.ebuild b/app-crypt/certbot/certbot-9999.ebuild |
50 |
index ec673774775..c81039179f5 100644 |
51 |
--- a/app-crypt/certbot/certbot-9999.ebuild |
52 |
+++ b/app-crypt/certbot/certbot-9999.ebuild |
53 |
@@ -38,14 +38,12 @@ RDEPEND=" |
54 |
dev-python/pytz[${PYTHON_USEDEP}] |
55 |
dev-python/zope-component[${PYTHON_USEDEP}] |
56 |
dev-python/zope-interface[${PYTHON_USEDEP}]" |
57 |
-DEPEND=" |
58 |
- ${CDEPEND} |
59 |
- test? ( |
60 |
- dev-python/pytest[${PYTHON_USEDEP}] |
61 |
- )" |
62 |
- |
63 |
-python_test() { |
64 |
- # acme is not installed, removing it here is fine, the dir just confuses tests |
65 |
- rm -R ../acme |
66 |
- pytest -vv ${PN} || die |
67 |
+DEPEND="${CDEPEND}" |
68 |
+ |
69 |
+distutils_enable_tests pytest |
70 |
+ |
71 |
+python_prepare_all() { |
72 |
+ # required as deps of deps can trigger this too... |
73 |
+ echo ' ignore:.*collections\.abc:DeprecationWarning' >> ../pytest.ini |
74 |
+ distutils-r1_python_prepare_all |
75 |
} |