mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 01:44:40 +02:00
47 lines
1.2 KiB
Text
47 lines
1.2 KiB
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer:
|
|
pkgname=py3-gitdb2
|
|
pkgver=4.0.12
|
|
pkgrel=0
|
|
pkgdesc="Git Object Database"
|
|
url="https://github.com/gitpython-developers/gitdb"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3 py3-smmap2"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/gitpython-developers/gitdb/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/gitdb-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
git init -q .
|
|
git config --local user.name "example"
|
|
git config --local user.email "example@example.com"
|
|
git add .
|
|
git commit -m "tests"
|
|
}
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest \
|
|
-k 'not test_pack_writing'
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
2cdd1ea5c0262c887586e5d96a7db73ee224c046ae11185a82da2520aeb287bdf911c1b7181286d3602a79cdd22a4fb36f64982e00315cb54152077dce91f9f5 py3-gitdb2-4.0.12.tar.gz
|
|
"
|