aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-gitpython/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-gitpython/APKBUILD')
-rw-r--r--community/py3-gitpython/APKBUILD38
1 files changed, 28 insertions, 10 deletions
diff --git a/community/py3-gitpython/APKBUILD b/community/py3-gitpython/APKBUILD
index 7a0efa1ac5e..f4443e2b2aa 100644
--- a/community/py3-gitpython/APKBUILD
+++ b/community/py3-gitpython/APKBUILD
@@ -1,8 +1,8 @@
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-gitpython
-pkgver=3.1.18
-pkgrel=0
+pkgver=3.1.43
+pkgrel=1
pkgdesc="Python3 Git Library"
url="https://github.com/gitpython-developers/GitPython"
arch="noarch"
@@ -11,26 +11,44 @@ depends="
git
py3-gitdb2
py3-typing-extensions
- python3
"
-makedepends="py3-setuptools"
-checkdepends="py3-pytest"
+makedepends="
+ py3-gpep517
+ py3-setuptools
+ py3-wheel
+ "
+checkdepends="
+ py3-pytest
+ py3-pytest-cov
+ py3-pytest-sugar
+ py3-toml
+ "
+subpackages="$pkgname-pyc"
source="https://github.com/gitpython-developers/GitPython/archive/$pkgver/GitPython-$pkgver.tar.gz"
builddir="$srcdir/GitPython-$pkgver"
+# secfixes:
+# 3.1.37-r0:
+# - CVE-2023-41040
+
build() {
- python3 setup.py build
+ gpep517 build-wheel \
+ --wheel-dir .dist \
+ --output-fd 3 3>&1 >&2
}
check() {
- # There are more tests but they require a specific git configuration
- pytest test/test_config.py
+ python3 -m venv --clear --without-pip --system-site-packages .testenv
+ .testenv/bin/python3 -m installer .dist/*.whl
+ # There are more tests but they require testing/py3-ddt
+ .testenv/bin/python3 -m pytest test/test_config.py
}
package() {
- python3 setup.py install --prefix=/usr --root="$pkgdir"
+ python3 -m installer -d "$pkgdir" \
+ .dist/*.whl
}
sha512sums="
-c72c1e23db4f2a6394a000d2a7298da8d3bbdf4e5a971267e92f93cf7cfd4390ac0c60ec9bbd350c5739b212d957492a0170544a608a1108f3cbd4bc683c1fed GitPython-3.1.18.tar.gz
+02296a19743346eefc2c1fdf0f5ccf612edf8bdf95a1dfbb4e69f9c64e327d10f9c25abc97d4d4178acba236bd3495b0c408ce2575fcca5d5903ddace5882ec4 GitPython-3.1.43.tar.gz
"