Repository navigation
Expand file tree
/
Copy pathpython-gitpython.avhb
More file actions
75 lines (69 loc) · 2.82 KB
/
Copy pathpython-gitpython.avhb
File metadata and controls
75 lines (69 loc) · 2.82 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
67
68
69
70
71
72
73
74
75
# 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=gitpython
pkgdesc="A python library used to interact with Git repositories"
pkgname=python-gitpython
pkgver=3.1.42
pkgrel=1
url="https://github.com/gitpython-developers/gitpython"
license=(BSD-3-Clause)
arch=(any)
groups=('dev-python')
depends=(
git
python
python-gitdb
)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
checkdepends=(
python-ddt
python-pytest
python-pytest-mock
)
source=("git+$url.git?signed#tag=$pkgver")
sha512sums=('dc54bb0d60eb1e0467fef52d9cc9927c7406b006c597ac750a473cd9d45cbeefdc545d3309158ca6fa394beaa4512aba1e7984b09dfe98c5d36271ac9bf717c9')
b2sums=('b05dd57f6f131c1ae55003d3512924a70d6f63727ffa22082cc1923455eb9700cefb069be6e34c97380b0a28d1e939de53c0e4f5ec18c110787875336c5d492a')
validpgpkeys=('27C50E7F590947D7273A741E85194C08421980C9') # Sebastian Thiel (In Rust I trust!) <[email protected]>
pkgver() {
cd $_name
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $_name
python -m build --wheel --no-isolation
}
check() {
local deselected=(
--deselect git/ext/gitdb/gitdb/test/db/test_git.py::TestGitDB::test_reading
--deselect git/ext/gitdb/gitdb/test/db/test_ref.py::TestReferenceDB::test_writing
--deselect git/ext/gitdb/gitdb/test/performance/test_pack.py::TestPackedDBPerformance::test_correctness
--deselect git/ext/gitdb/gitdb/test/performance/test_pack.py::TestPackedDBPerformance::test_loose_correctness
--deselect git/ext/gitdb/gitdb/test/performance/test_pack.py::TestPackedDBPerformance::test_pack_random_access
--deselect git/ext/gitdb/gitdb/test/performance/test_pack_streaming.py::TestPackStreamingPerformance::test_pack_writing
--deselect git/ext/gitdb/gitdb/test/performance/test_pack_streaming.py::TestPackStreamingPerformance::test_stream_reading
--deselect git/ext/gitdb/gitdb/test/test_example.py::TestExamples::test_base
--deselect test/test_submodule.py::TestSubmodule::test_git_submodules_and_add_sm_with_new_commit
--deselect test/test_submodule.py::TestSubmodule::test_list_only_valid_submodules
# https://github.com/gitpython-developers/GitPython/issues/1797
--ignore test/test_index.py
)
cd $_name
export TRAVIS="VERY CONVENIENT"
git config --global user.name "Test User"
git config --global user.email "[email protected]"
./init-tests-after-clone.sh
PYTHONDONTWRITEBYTECODE=1 pytest -vv -c /dev/null "${deselected[@]}"
}
package() {
cd $_name
python -m installer --destdir="$pkgdir" dist/*.whl
install -vDm 644 {AUTHORS,CHANGES,{CONTRIBUTING,README}.md} -t "$pkgdir/usr/share/doc/$pkgname/"
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}