summaryrefslogtreecommitdiff
path: root/dev-python/gitdb2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/gitdb2
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/gitdb2')
-rw-r--r--dev-python/gitdb2/Manifest3
-rw-r--r--dev-python/gitdb2/gitdb2-2.0.2.ebuild56
-rw-r--r--dev-python/gitdb2/metadata.xml12
3 files changed, 71 insertions, 0 deletions
diff --git a/dev-python/gitdb2/Manifest b/dev-python/gitdb2/Manifest
new file mode 100644
index 000000000000..7e844c20e29c
--- /dev/null
+++ b/dev-python/gitdb2/Manifest
@@ -0,0 +1,3 @@
+DIST gitdb2-2.0.2.tar.gz 393188 SHA256 f2e36d7561e91f30a6a44858756dc020d8f1e81ca6e4185979d5c6c24c648070 SHA512 685af97dcb1f352255024b8a382255dacea00aa6312f71d2a16eab00d0204ebf6d46c90d804a4778ea0ef35eae7e5a2f5ae71c16851206fdaf27be8af59499d9 WHIRLPOOL d79705c7bca170f98f47ec7b437af6b9d2b0d1c5fffa57b863ade7a3d4b8e950860f9b1a08aceb5a8c5a2135266a671b7a35bd56f39777a40e8b1afaaadcfdc8
+EBUILD gitdb2-2.0.2.ebuild 1232 SHA256 efc076bca5afa3b0eddc081f1b350ab908c15310002cb0f08b31a632a2f8a008 SHA512 a175742c8e932e8303a1e7410a9d73f616b243b12b8c360a14ec58235faec98cd3b6cac66a5a5415e91babf10251245895045ff9aa6784f2f20f1fac3c4e105e WHIRLPOOL a0642c03b0e400b1be5aeed8bcaf9143f7bd7d55f919126bc276dbb36e92e1d63840f84587c2f7f01f401b15d1253d70482541a56ad1b955b4531b3d4bde9d48
+MISC metadata.xml 387 SHA256 a1bb06b927c5604c6c96d2a37b6a1ed4f86c1d40c5d174a9c67feafbe6a6705a SHA512 09f4154dd271adbf328fcc0ef35267b1c3648c919f6c5d3de480a815f5d5b49b4c4f6661f9f1839bede87834c01c2b27145c6295b8f99804aa45df3eba669eeb WHIRLPOOL 05c9f4e356cf0dd98ae6199f9e2be37b9fa1467f938c19513292e22d120104a9cb13008f1d8d39affc7a08eee898f67b7d20006b98efe1c8b33390a2a77ad44d
diff --git a/dev-python/gitdb2/gitdb2-2.0.2.ebuild b/dev-python/gitdb2/gitdb2-2.0.2.ebuild
new file mode 100644
index 000000000000..4aa4893fc037
--- /dev/null
+++ b/dev-python/gitdb2/gitdb2-2.0.2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit distutils-r1
+
+DESCRIPTION="GitDB is a pure-Python git object database"
+HOMEPAGE="
+ https://github.com/gitpython-developers/gitdb
+ https://pypi.python.org/pypi/gitdb2"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="
+ !dev-python/gitdb[${PYTHON_USEDEP}]
+ >=dev-python/smmap2-2.0.1[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? (
+ dev-python/nose[${PYTHON_USEDEP}]
+ dev-vcs/git
+ )"
+
+src_test() {
+ local i
+
+ mkdir "${T}"/repo || die
+ cd "${T}"/repo || die
+
+ for (( i = 0; i < 2500; ++i )); do
+ echo "${i}" > file"${i}" || die
+ done
+
+ git init || die
+ git config user.email "you@example.com" || die
+ git config user.name "Your Name" || die
+ git add -A || die
+ git commit -q -m ".." || die
+ git clone --bare "${T}"/repo "${T}"/repo.git || die
+ cd "${S}" || die
+
+ distutils-r1_src_test
+}
+
+python_test() {
+ #TRAVIS=1 disables performance tests which rely on the gitdb repo
+ local -x TRAVIS=1
+ local -x GITDB_TEST_GIT_REPO_BASE="${T}"/repo.git
+ nosetests -v || die "Tests fail with ${EPYTHON}"
+}
diff --git a/dev-python/gitdb2/metadata.xml b/dev-python/gitdb2/metadata.xml
new file mode 100644
index 000000000000..005b63ca8056
--- /dev/null
+++ b/dev-python/gitdb2/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">gitdb2</remote-id>
+ <remote-id type="github">gitpython-developers/gitdb</remote-id>
+ </upstream>
+</pkgmetadata>