commit: a6fc7b6552783b05b15533bdd0e5fdb364bd0a5a Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> AuthorDate: Tue Dec 8 05:42:29 2020 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Tue Dec 8 05:53:07 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6fc7b65
dev-python/mkdocs-git-revision-date-localized-plugin: fix test phase Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> .../mkdocs-git-revision-date-localized-plugin-0.8.ebuild | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-0.8.ebuild b/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-0.8.ebuild index 45794cc41c7..55eb83b82cf 100644 --- a/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-0.8.ebuild +++ b/dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-0.8.ebuild @@ -29,3 +29,16 @@ DEPEND="test? ( )" distutils_enable_tests --install pytest + +python_prepare_all() { + # mkdocs-git-revision-date-localized-plugin's tests need git repo + if use test; then + git init + git config --global user.email "y...@example.com" || die + git config --global user.name "Your Name" || die + git add . + git commit -m 'init' + fi + + distutils-r1_python_prepare_all +}