commit:     586c4671b66cd2a74c4d66ec7934fe5cd9fdb164
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jan  3 05:20:19 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jan  3 05:46:58 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=586c4671

dev-python/gitdb: Bump to 4.0.12

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/gitdb/Manifest            |  1 +
 dev-python/gitdb/gitdb-4.0.12.ebuild | 65 ++++++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)

diff --git a/dev-python/gitdb/Manifest b/dev-python/gitdb/Manifest
index 12b6ea50c6d3..c542131a2650 100644
--- a/dev-python/gitdb/Manifest
+++ b/dev-python/gitdb/Manifest
@@ -1 +1,2 @@
 DIST gitdb-4.0.11.tar.gz 394469 BLAKE2B 
a79caf7def6094f1c99ff8621d7a01a9bc438e3ff54c73e5e9f598fada892e0209334edf73415476e31aef1cd0cd344fba6c8fe11c80cc157fdef5b9d2cda292
 SHA512 
024256481c553cd8e4b7fb0c0adc735aa6485c396e43aba73873cd4ad950ca686c3df7000a85acd1ac4f09db3f6ab613018739d24a8a69b4708150c171acf13d
+DIST gitdb-4.0.12.tar.gz 394684 BLAKE2B 
5176e65a3991c2d2bfc925995029b4d8f35ec7206ff0b60400b82ffb20c2e4b8a15d6494c7841c18e642a17ec42491bd44fa8052469e48bfbd3ee3dc7f99c2c4
 SHA512 
10891c05dd238094b6b62ff0346529af98c1110eabc3c26992afb6cd767b938291a1e1ff6dc2c33423cbcf11c0a8daf0718232a20522c06a40fb5113a64a7b6a

diff --git a/dev-python/gitdb/gitdb-4.0.12.ebuild 
b/dev-python/gitdb/gitdb-4.0.12.ebuild
new file mode 100644
index 000000000000..03c7bd60da32
--- /dev/null
+++ b/dev-python/gitdb/gitdb-4.0.12.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="GitDB is a pure-Python git object database"
+HOMEPAGE="
+       https://github.com/gitpython-developers/gitdb/
+       https://pypi.org/project/gitdb/
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
+
+RDEPEND="
+       >=dev-python/smmap-3.0.1[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       test? (
+               dev-vcs/git
+       )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+       # unpin deps
+       sed -i -e 's:,<[0-9.]*::' setup.py || die
+       distutils-r1_src_prepare
+}
+
+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 "[email protected]" || 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() {
+       local EPYTEST_IGNORE=(
+               gitdb/test/performance
+       )
+       local -x GITDB_TEST_GIT_REPO_BASE="${T}"/repo.git
+       epytest
+}

Reply via email to