projects/aports·blob master · refs

67 lines · 1.4 KiB

1maintainer="Wen Heping <[email protected]>"
2pkgname=py3-gitpython
3pkgver=3.2.0
4pkgrel=0
5pkgdesc="Python3 Git Library"
6url="https://github.com/gitpython-developers/GitPython"
7arch="noarch"
8license="BSD-3-Clause"
9depends="
10 git
11 py3-gitdb2
12 py3-typing-extensions
13 "
14makedepends="
15 py3-gpep517
16 py3-setuptools
17 py3-wheel
18 "
19checkdepends="
20 py3-pytest
21 py3-pytest-cov
22 py3-pytest-sugar
23 py3-toml
24 "
25subpackages="$pkgname-pyc"
26source="https://github.com/gitpython-developers/GitPython/archive/$pkgver/GitPython-$pkgver.tar.gz"
27builddir="$srcdir/GitPython-$pkgver"
28
29# secfixes:
30# 3.1.61-r0:
31# - CVE-2026-76217
32# - CVE-2026-76218
33# - CVE-2026-76219
34# - CVE-2026-76220
35# - CVE-2026-76221
36# - CVE-2026-76222
37# - CVE-2026-78675
38# - CVE-2026-78676
39# - CVE-2026-78677
40# - CVE-2026-78678
41# 3.1.49-r0:
42# - CVE-2026-42215
43# - CVE-2026-42284
44# 3.1.37-r0:
45# - CVE-2023-41040
46
47build() {
48 gpep517 build-wheel \
49 --wheel-dir .dist \
50 --output-fd 3 3>&1 >&2
51}
52
53check() {
54 python3 -m venv --clear --without-pip --system-site-packages .testenv
55 .testenv/bin/python3 -m installer .dist/*.whl
56 # There are more tests but they require testing/py3-ddt
57 .testenv/bin/python3 -m pytest test/test_config.py
58}
59
60package() {
61 python3 -m installer -d "$pkgdir" \
62 .dist/*.whl
63}
64
65sha512sums="
66fa2862a8fd18c8bb26ed6bf523ec79d8a1eaa41364f29f2265774561ddf6a10eb67d47bd0df29023bda7bd9940ef64486210513f3dcc6dcf345c6dcf8480cd68 GitPython-3.2.0.tar.gz
67"