Repository navigation
Expand file tree
/
Copy pathpython-gitdb.avhb
More file actions
66 lines (62 loc) · 1.63 KB
/
Copy pathpython-gitdb.avhb
File metadata and controls
66 lines (62 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright 2010-2024 Avouch Authors
# Distributed under the terms of the GNU General Public License v2
# Maintainer: Qurban Ullah <[email protected]>
# Contributor: Qurban Ullah <[email protected]>
_name=gitdb
pkgdesc="A pure-Python git object database"
pkgname=python-gitdb
_commit=3324a91f7b68043a0a21bcf585f31a4f15892433 # refs/tags/4.0.11
pkgver=4.0.11
pkgrel=3
epoch=1
url="https://github.com/gitpython-developers/gitdb"
license=(BSD-3-Clause)
arch=(any)
groups=('dev-python')
depends=(
git
python
python-smmap
)
makedepends=(
git
python-build
python-installer
python-setuptools
python-wheel
)
checkdepends=(
python-pytest
)
source=("git+$url#tag=$_commit?signed")
sha512sums=('SKIP')
validpgpkeys=('27C50E7F590947D7273A741E85194C08421980C9') # Sebastian Thiel (In Rust I trust!) <[email protected]>
build() {
cd $_name
python -m build --wheel --no-isolation
}
# some tests need to be disabled, because of coupling with the project
# repository: https://github.com/gitpython-developers/gitdb/issues/51
check() {
cd $_name
local TEST_TMPDIR=$(mktemp -d)
(
cd "$TEST_TMPDIR"
git init
git config user.name "Test User"
git config user.email "[email protected]"
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"
pytest -vv -k "not test_pack_writing"
}
package() {
cd $_name
python -m installer --destdir="$pkgdir" dist/*.whl
install -vDm 644 {AUTHORS,README.rst} -t "$pkgdir/usr/share/doc/$pkgname/"
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}