commit: 5c461318d728bb1805abb2cc7a427b927fefff5d
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Thu Mar 12 10:20:04 2020 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Thu Mar 12 10:20:04 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5c461318
dev-python/GitPython: add py3_8
Package-Manager: Portage-2.3.93, Repoman-2.3.20
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
dev-python/GitPython/GitPython-3.1.0.ebuild | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/dev-python/GitPython/GitPython-3.1.0.ebuild
b/dev-python/GitPython/GitPython-3.1.0.ebuild
index 9c0bcb4..abbc706 100644
--- a/dev-python/GitPython/GitPython-3.1.0.ebuild
+++ b/dev-python/GitPython/GitPython-3.1.0.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_{6,7} )
+PYTHON_COMPAT=( python3_{6,7,8} )
inherit distutils-r1
@@ -15,11 +15,22 @@ LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-RESTRICT="test" #requires git repository
+RESTRICT="test" # only works inside upstream git repo
RDEPEND="dev-python/gitdb[${PYTHON_USEDEP}]"
BDEPEND="test? ( dev-python/ddt[${PYTHON_USEDEP}] )"
-distutils_enable_tests nose
+distutils_enable_tests pytest
distutils_enable_sphinx doc/source dev-python/sphinx_rtd_theme
+
+python_test() {
+ cd "${S}" || die
+ git init || die
+ git config user.email "[email protected]" || die
+ git config user.name "Your Name" || die
+ git add -A || die
+ git commit -q -m ".." || die
+
+ pytest -vv || die "Tests fail with ${EPYTHON}"
+}