1 |
commit: ab3ec2595d0398dae2a2856122229b4454fe6a54 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 27 16:51:40 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 27 16:51:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab3ec259 |
7 |
|
8 |
app-i18n/transifex-client: un-rev bump for test-only fix |
9 |
|
10 |
The fix here is only for the test itself, not the installed contents, so |
11 |
there's no need to force a reinstall for a fix to be applied on systems. |
12 |
|
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
... => transifex-client-0.14.2-r1-timestamp.patch} | 8 +++-- |
16 |
.../transifex-client-0.14.2-r1.ebuild | 7 +++- |
17 |
.../transifex-client-0.14.2-r2.ebuild | 37 ---------------------- |
18 |
3 files changed, 11 insertions(+), 41 deletions(-) |
19 |
|
20 |
diff --git a/app-i18n/transifex-client/files/transifex-client-timestamp.patch b/app-i18n/transifex-client/files/transifex-client-0.14.2-r1-timestamp.patch |
21 |
similarity index 65% |
22 |
rename from app-i18n/transifex-client/files/transifex-client-timestamp.patch |
23 |
rename to app-i18n/transifex-client/files/transifex-client-0.14.2-r1-timestamp.patch |
24 |
index 9d1b2c46c76..0943621243c 100644 |
25 |
--- a/app-i18n/transifex-client/files/transifex-client-timestamp.patch |
26 |
+++ b/app-i18n/transifex-client/files/transifex-client-0.14.2-r1-timestamp.patch |
27 |
@@ -1,6 +1,8 @@ |
28 |
-diff -Naur ../transifex-client-0.14.2.orig/tests/test_project.py ./tests/test_project.py |
29 |
---- ../transifex-client-0.14.2.orig/tests/test_project.py 2020-06-19 14:48:52.000000000 +0200 |
30 |
-+++ ./tests/test_project.py 2021-02-25 22:08:29.353477306 +0100 |
31 |
+https://github.com/transifex/transifex-client/pull/316 |
32 |
+https://bugs.gentoo.org/771660 |
33 |
+Fix tests on 32-bit systems |
34 |
+--- a/tests/test_project.py |
35 |
++++ b/tests/test_project.py |
36 |
@@ -717,8 +717,8 @@ |
37 |
) |
38 |
self.assertEqual(res, True) |
39 |
|
40 |
diff --git a/app-i18n/transifex-client/transifex-client-0.14.2-r1.ebuild b/app-i18n/transifex-client/transifex-client-0.14.2-r1.ebuild |
41 |
index a1c433b28a7..49ec7a70457 100644 |
42 |
--- a/app-i18n/transifex-client/transifex-client-0.14.2-r1.ebuild |
43 |
+++ b/app-i18n/transifex-client/transifex-client-0.14.2-r1.ebuild |
44 |
@@ -25,10 +25,15 @@ RDEPEND="dev-python/GitPython[${PYTHON_USEDEP}] |
45 |
<dev-python/six-2.0.0[${PYTHON_USEDEP}] |
46 |
dev-python/urllib3[${PYTHON_USEDEP}]" |
47 |
|
48 |
+PATCHES=( |
49 |
+ "${FILESDIR}/${PN}-0.14.2-r1-timestamp.patch" |
50 |
+) |
51 |
+ |
52 |
distutils_enable_tests setup.py |
53 |
|
54 |
src_prepare() { |
55 |
- eapply_user |
56 |
+ default |
57 |
+ |
58 |
sed -i -e 's:test_fetch_timestamp_from_git_tree:_&:' \ |
59 |
tests/test_utils.py || die |
60 |
sed -i '/tests_require=\["mock>=3.0.5,<4.0"\]/d' setup.py || die |
61 |
|
62 |
diff --git a/app-i18n/transifex-client/transifex-client-0.14.2-r2.ebuild b/app-i18n/transifex-client/transifex-client-0.14.2-r2.ebuild |
63 |
deleted file mode 100644 |
64 |
index 7efb2192722..00000000000 |
65 |
--- a/app-i18n/transifex-client/transifex-client-0.14.2-r2.ebuild |
66 |
+++ /dev/null |
67 |
@@ -1,37 +0,0 @@ |
68 |
-# Copyright 1999-2021 Gentoo Authors |
69 |
-# Distributed under the terms of the GNU General Public License v2 |
70 |
- |
71 |
-EAPI=7 |
72 |
- |
73 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
74 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
75 |
- |
76 |
-inherit eutils distutils-r1 |
77 |
- |
78 |
-DESCRIPTION="A command line interface for Transifex" |
79 |
-HOMEPAGE="https://pypi.org/project/transifex-client/ https://www.transifex.net/ https://github.com/transifex/transifex-client" |
80 |
-SRC_URI="mirror://pypi/t/${PN}/${P}.tar.gz" |
81 |
- |
82 |
-LICENSE="GPL-2" |
83 |
-SLOT="0" |
84 |
-KEYWORDS="~amd64 ~ppc64 ~x86" |
85 |
-IUSE="test" |
86 |
-RESTRICT="!test? ( test )" |
87 |
- |
88 |
-BDEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )" |
89 |
-RDEPEND="dev-python/GitPython[${PYTHON_USEDEP}] |
90 |
- <dev-python/python-slugify-5.0.0[${PYTHON_USEDEP}] |
91 |
- dev-python/requests[${PYTHON_USEDEP}] |
92 |
- <dev-python/six-2.0.0[${PYTHON_USEDEP}] |
93 |
- dev-python/urllib3[${PYTHON_USEDEP}]" |
94 |
- |
95 |
-distutils_enable_tests setup.py |
96 |
- |
97 |
-src_prepare() { |
98 |
- eapply_user |
99 |
- sed -i -e 's:test_fetch_timestamp_from_git_tree:_&:' \ |
100 |
- tests/test_utils.py || die |
101 |
- sed -i '/tests_require=\["mock>=3.0.5,<4.0"\]/d' setup.py || die |
102 |
- # Bug 771660 |
103 |
- eapply "${FILESDIR}"/${PN}-timestamp.patch |
104 |
-} |