From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C8C101382C5 for ; Tue, 8 Dec 2020 05:53:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BE8C3E087C; Tue, 8 Dec 2020 05:53:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A951EE087C for ; Tue, 8 Dec 2020 05:53:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A6363340ECC for ; Tue, 8 Dec 2020 05:53:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CE54448D for ; Tue, 8 Dec 2020 05:53:21 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1607406787.a6fc7b6552783b05b15533bdd0e5fdb364bd0a5a.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mkdocs-git-revision-date-localized-plugin/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/mkdocs-git-revision-date-localized-plugin/mkdocs-git-revision-date-localized-plugin-0.8.ebuild X-VCS-Directories: dev-python/mkdocs-git-revision-date-localized-plugin/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: a6fc7b6552783b05b15533bdd0e5fdb364bd0a5a X-VCS-Branch: master Date: Tue, 8 Dec 2020 05:53:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7acd58ce-1398-44e6-9972-e41d806de2a2 X-Archives-Hash: 3ec2e803510f2b34fa2e2b741ff85f40 commit: a6fc7b6552783b05b15533bdd0e5fdb364bd0a5a Author: Andrew Ammerlaan riseup net> AuthorDate: Tue Dec 8 05:42:29 2020 +0000 Commit: Joonas Niilola gentoo 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 riseup.net> Signed-off-by: Joonas Niilola 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 "you@example.com" || die + git config --global user.name "Your Name" || die + git add . + git commit -m 'init' + fi + + distutils-r1_python_prepare_all +}