Gentoo Archives: gentoo-commits

From: "Tiziano Müller" <dev-zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/gitdb2/
Date: Sun, 11 Feb 2018 17:38:32
Message-Id: 1518370676.f238ae9f0d409d8bb44d9654c2c4dba30e8f593b.dev-zero@gentoo
1 commit: f238ae9f0d409d8bb44d9654c2c4dba30e8f593b
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Fri Nov 10 08:42:57 2017 +0000
4 Commit: Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 11 17:37:56 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f238ae9f
7
8 dev-python/gitdb2: Version bump to 2.0.3
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.3
11
12 dev-python/gitdb2/Manifest | 1 +
13 dev-python/gitdb2/gitdb2-2.0.3.ebuild | 56 +++++++++++++++++++++++++++++++++++
14 2 files changed, 57 insertions(+)
15
16 diff --git a/dev-python/gitdb2/Manifest b/dev-python/gitdb2/Manifest
17 index 508b37f522f..cd2ef2ef1dd 100644
18 --- a/dev-python/gitdb2/Manifest
19 +++ b/dev-python/gitdb2/Manifest
20 @@ -1 +1,2 @@
21 DIST gitdb2-2.0.2.tar.gz 393188 BLAKE2B ccd57931b6483bc4d1f142644619f6ac0e4fb852a9a2f58f261513d10f2ed1124e4bf7413190809ede95e79c8b667edbbb084ea8d4df56574310a3c14582b4c3 SHA512 685af97dcb1f352255024b8a382255dacea00aa6312f71d2a16eab00d0204ebf6d46c90d804a4778ea0ef35eae7e5a2f5ae71c16851206fdaf27be8af59499d9
22 +DIST gitdb2-2.0.3.tar.gz 392632 BLAKE2B c1313a8f571706cfb651dc114df98e85e385fbd7df40688386faf290cf177d282e6e3760ee43eb54d1562582755b6070a992f1f55a1821fef1e0e015f5cd09b0 SHA512 4be643b933b47f5511702aa9df5c3210847f059dff9a4794779040660cd60c5af7de5072eb18bc17971edba9a5551e9ba51dbe360194b7d454ee4f23348c8063
23
24 diff --git a/dev-python/gitdb2/gitdb2-2.0.3.ebuild b/dev-python/gitdb2/gitdb2-2.0.3.ebuild
25 new file mode 100644
26 index 00000000000..4aa4893fc03
27 --- /dev/null
28 +++ b/dev-python/gitdb2/gitdb2-2.0.3.ebuild
29 @@ -0,0 +1,56 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
36 +
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="GitDB is a pure-Python git object database"
40 +HOMEPAGE="
41 + https://github.com/gitpython-developers/gitdb
42 + https://pypi.python.org/pypi/gitdb2"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="test"
49 +
50 +RDEPEND="
51 + !dev-python/gitdb[${PYTHON_USEDEP}]
52 + >=dev-python/smmap2-2.0.1[${PYTHON_USEDEP}]"
53 +DEPEND="${RDEPEND}
54 + test? (
55 + dev-python/nose[${PYTHON_USEDEP}]
56 + dev-vcs/git
57 + )"
58 +
59 +src_test() {
60 + local i
61 +
62 + mkdir "${T}"/repo || die
63 + cd "${T}"/repo || die
64 +
65 + for (( i = 0; i < 2500; ++i )); do
66 + echo "${i}" > file"${i}" || die
67 + done
68 +
69 + git init || die
70 + git config user.email "you@×××××××.com" || die
71 + git config user.name "Your Name" || die
72 + git add -A || die
73 + git commit -q -m ".." || die
74 + git clone --bare "${T}"/repo "${T}"/repo.git || die
75 + cd "${S}" || die
76 +
77 + distutils-r1_src_test
78 +}
79 +
80 +python_test() {
81 + #TRAVIS=1 disables performance tests which rely on the gitdb repo
82 + local -x TRAVIS=1
83 + local -x GITDB_TEST_GIT_REPO_BASE="${T}"/repo.git
84 + nosetests -v || die "Tests fail with ${EPYTHON}"
85 +}