[arch-commits] Commit in python-gitdb/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Sun Sep 29 12:01:21 UTC 2019
Date: Sunday, September 29, 2019 @ 12:01:20
Author: dvzrv
Revision: 512066
upgpkg: python-gitdb 2.0.6-1
Upgrading to 2.0.6. Enabling tests by creating a dummy git repository in accordance with upstream recommendation (one performance test still remains disabled).
Modified:
python-gitdb/trunk/PKGBUILD
----------+
PKGBUILD | 34 ++++++++++++++++++++++------------
1 file changed, 22 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-09-29 11:58:25 UTC (rev 512065)
+++ PKGBUILD 2019-09-29 12:01:20 UTC (rev 512066)
@@ -5,8 +5,8 @@
_name=gitdb2
pkgdesc="A pure-Python git object database"
pkgname=python-gitdb
-pkgver=2.0.5
-pkgrel=2
+pkgver=2.0.6
+pkgrel=1
url="https://github.com/gitpython-developers/gitdb"
license=('BSD')
arch=('any')
@@ -15,7 +15,7 @@
checkdepends=('python-nose')
source=("${pkgname}-${pkgver}.tar.gz::https://pypi.org/packages/source/g/${_name}/${_name}-${pkgver}.tar.gz"
"${pkgname}-${pkgver}.tar.gz.asc::https://pypi.org/packages/source/g/${_name}/${_name}-${pkgver}.tar.gz.asc")
-sha512sums=('a1d52529afa10d01ce96fc33ba7e78e36e841fca8041a416a873075cb0b11b8bdc0bcfaf787918962f3c4eb442ae938c9cd280f85cb3ce71e1c916816018ad10'
+sha512sums=('a7b5166cb36adfef92e9ec8f2aff690295a657d23f7078a27d0c0fe68208b12356c82c11e589c7f7321b76ccaa0747229d9c5405415c63c5e355f81084e18935'
'SKIP')
validpgpkeys=('2CF6E0B51AAF73F09B1C21174D1DA68C88710E60') # Sebastian Thiel (In Rust I trust!) <byronimo at gmail.com>
@@ -28,15 +28,25 @@
python setup.py build
}
-# # tests fail due to test repo coupling with development environment
-# # https://github.com/gitpython-developers/gitdb/issues/51
-# check() {
-# cd "${pkgname}-${pkgver}"
-# local TEST_TMPDIR=$(mktemp -d)
-# ( cd "$TEST_TMPDIR" && git init . )
-# export GITDB_TEST_GIT_REPO_BASE="${TEST_TMPDIR}/.git"
-# nosetests -vd
-# }
+# some tests need to be disabled, because of coupling with the project
+# repository: https://github.com/gitpython-developers/gitdb/issues/51
+check() {
+ cd "${pkgname}-${pkgver}"
+ local TEST_TMPDIR=$(mktemp -d)
+ (
+ cd "$TEST_TMPDIR"
+ git init
+ git config user.name "Test User"
+ git config user.email "test at user.org"
+ for commit in {1..50}; do
+ touch "file${commit}"
+ git add "file${commit}"
+ git commit -m "file${commit}"
+ done
+ )
+ export GITDB_TEST_GIT_REPO_BASE="${TEST_TMPDIR}/.git"
+ nosetests -vd -e 'test_pack_writing'
+}
package() {
cd "${pkgname}-${pkgver}"
More information about the arch-commits
mailing list