1 |
commit: 4644ff18014566d65fdbda87b8fafd6f76b24a99 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 5 11:10:20 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 5 11:10:20 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4644ff18 |
7 |
|
8 |
dev-python/google-api-python-client: Eliminate unittest2 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../google-api-python-client-2.11.0.ebuild | 7 ++++++- |
13 |
.../google-api-python-client/google-api-python-client-2.8.0.ebuild | 7 ++++++- |
14 |
2 files changed, 12 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/google-api-python-client/google-api-python-client-2.11.0.ebuild b/dev-python/google-api-python-client/google-api-python-client-2.11.0.ebuild |
17 |
index 53fb3737825..08eb44b4eda 100644 |
18 |
--- a/dev-python/google-api-python-client/google-api-python-client-2.11.0.ebuild |
19 |
+++ b/dev-python/google-api-python-client/google-api-python-client-2.11.0.ebuild |
20 |
@@ -32,11 +32,16 @@ BDEPEND=" |
21 |
dev-python/oauth2client[${PYTHON_USEDEP}] |
22 |
dev-python/pandas[${PYTHON_USEDEP}] |
23 |
dev-python/parameterized[${PYTHON_USEDEP}] |
24 |
- dev-python/unittest2[${PYTHON_USEDEP}] |
25 |
)" |
26 |
|
27 |
distutils_enable_tests --install pytest |
28 |
|
29 |
+src_prepare() { |
30 |
+ find tests -name '*.py' -exec \ |
31 |
+ sed -i -e 's:unittest2 as ::' {} + || die |
32 |
+ distutils-r1_src_prepare |
33 |
+} |
34 |
+ |
35 |
python_test() { |
36 |
local deselect=( |
37 |
# require Internet access (and credentials) |
38 |
|
39 |
diff --git a/dev-python/google-api-python-client/google-api-python-client-2.8.0.ebuild b/dev-python/google-api-python-client/google-api-python-client-2.8.0.ebuild |
40 |
index 69b970850c5..e52f1f75567 100644 |
41 |
--- a/dev-python/google-api-python-client/google-api-python-client-2.8.0.ebuild |
42 |
+++ b/dev-python/google-api-python-client/google-api-python-client-2.8.0.ebuild |
43 |
@@ -32,11 +32,16 @@ BDEPEND=" |
44 |
dev-python/oauth2client[${PYTHON_USEDEP}] |
45 |
dev-python/pandas[${PYTHON_USEDEP}] |
46 |
dev-python/parameterized[${PYTHON_USEDEP}] |
47 |
- dev-python/unittest2[${PYTHON_USEDEP}] |
48 |
)" |
49 |
|
50 |
distutils_enable_tests --install pytest |
51 |
|
52 |
+src_prepare() { |
53 |
+ find tests -name '*.py' -exec \ |
54 |
+ sed -i -e 's:unittest2 as ::' {} + || die |
55 |
+ distutils-r1_src_prepare |
56 |
+} |
57 |
+ |
58 |
python_test() { |
59 |
local deselect=( |
60 |
# require Internet access (and credentials) |