Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/GitPython/
Date: Thu, 12 Mar 2020 10:21:03
Message-Id: 1584008404.5c461318d728bb1805abb2cc7a427b927fefff5d.andrewammerlaan@gentoo
1 commit: 5c461318d728bb1805abb2cc7a427b927fefff5d
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Thu Mar 12 10:20:04 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Thu Mar 12 10:20:04 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5c461318
7
8 dev-python/GitPython: add py3_8
9
10 Package-Manager: Portage-2.3.93, Repoman-2.3.20
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
12
13 dev-python/GitPython/GitPython-3.1.0.ebuild | 17 ++++++++++++++---
14 1 file changed, 14 insertions(+), 3 deletions(-)
15
16 diff --git a/dev-python/GitPython/GitPython-3.1.0.ebuild b/dev-python/GitPython/GitPython-3.1.0.ebuild
17 index 9c0bcb4..abbc706 100644
18 --- a/dev-python/GitPython/GitPython-3.1.0.ebuild
19 +++ b/dev-python/GitPython/GitPython-3.1.0.ebuild
20 @@ -3,7 +3,7 @@
21
22 EAPI=7
23
24 -PYTHON_COMPAT=( python3_{6,7} )
25 +PYTHON_COMPAT=( python3_{6,7,8} )
26
27 inherit distutils-r1
28
29 @@ -15,11 +15,22 @@ LICENSE="BSD"
30 SLOT="0"
31 KEYWORDS="~amd64 ~x86"
32
33 -RESTRICT="test" #requires git repository
34 +RESTRICT="test" # only works inside upstream git repo
35
36 RDEPEND="dev-python/gitdb[${PYTHON_USEDEP}]"
37
38 BDEPEND="test? ( dev-python/ddt[${PYTHON_USEDEP}] )"
39
40 -distutils_enable_tests nose
41 +distutils_enable_tests pytest
42 distutils_enable_sphinx doc/source dev-python/sphinx_rtd_theme
43 +
44 +python_test() {
45 + cd "${S}" || die
46 + git init || die
47 + git config user.email "you@×××××××.com" || die
48 + git config user.name "Your Name" || die
49 + git add -A || die
50 + git commit -q -m ".." || die
51 +
52 + pytest -vv || die "Tests fail with ${EPYTHON}"
53 +}