Skip to content

Commit

Permalink
app-i18n/transifex-client: un-rev bump for test-only fix
Browse files Browse the repository at this point in the history
The fix here is only for the test itself, not the installed contents, so
there's no need to force a reinstall for a fix to be applied on systems.

Signed-off-by: Sam James <sam@gentoo.org>
  • Loading branch information
thesamesam committed Feb 27, 2021
1 parent b6ad4d9 commit ab3ec25
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 41 deletions.
@@ -1,6 +1,8 @@
diff -Naur ../transifex-client-0.14.2.orig/tests/test_project.py ./tests/test_project.py
--- ../transifex-client-0.14.2.orig/tests/test_project.py 2020-06-19 14:48:52.000000000 +0200
+++ ./tests/test_project.py 2021-02-25 22:08:29.353477306 +0100
https://github.com/transifex/transifex-client/pull/316
https://bugs.gentoo.org/771660
Fix tests on 32-bit systems
--- a/tests/test_project.py
+++ b/tests/test_project.py
@@ -717,8 +717,8 @@
)
self.assertEqual(res, True)
Expand Down
7 changes: 6 additions & 1 deletion app-i18n/transifex-client/transifex-client-0.14.2-r1.ebuild
Expand Up @@ -25,10 +25,15 @@ RDEPEND="dev-python/GitPython[${PYTHON_USEDEP}]
<dev-python/six-2.0.0[${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]"

PATCHES=(
"${FILESDIR}/${PN}-0.14.2-r1-timestamp.patch"
)

distutils_enable_tests setup.py

src_prepare() {
eapply_user
default

sed -i -e 's:test_fetch_timestamp_from_git_tree:_&:' \
tests/test_utils.py || die
sed -i '/tests_require=\["mock>=3.0.5,<4.0"\]/d' setup.py || die
Expand Down
37 changes: 0 additions & 37 deletions app-i18n/transifex-client/transifex-client-0.14.2-r2.ebuild

This file was deleted.

0 comments on commit ab3ec25

Please sign in to comment.