summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2020-12-08 07:42:29 +0200
committerJoonas Niilola <juippis@gentoo.org>2020-12-08 07:53:07 +0200
commita6fc7b6552783b05b15533bdd0e5fdb364bd0a5a (patch)
treea4a6a37f4b860d51916725ba707cc6c50d719820 /dev-python/mkdocs-git-revision-date-localized-plugin
parentdev-python/bracex: add missing test dep (diff)
downloadgentoo-a6fc7b6552783b05b15533bdd0e5fdb364bd0a5a.tar.gz
gentoo-a6fc7b6552783b05b15533bdd0e5fdb364bd0a5a.tar.bz2
gentoo-a6fc7b6552783b05b15533bdd0e5fdb364bd0a5a.zip
dev-python/mkdocs-git-revision-date-localized-plugin: fix test phase
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python/mkdocs-git-revision-date-localized-plugin')
-rw-r--r--dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-0.8.ebuild13
1 files changed, 13 insertions, 0 deletions
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 45794cc41c7c..55eb83b82cff 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 "you@example.com" || die
+ git config --global user.name "Your Name" || die
+ git add .
+ git commit -m 'init'
+ fi
+
+ distutils-r1_python_prepare_all
+}