mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 18:25:41 +03:00
we never use pip in the venv manually made for tests- this might break 1-2 things unexpectedly, but - those should be looked at anyway - this has a severe speedup- even on a desktop machine with nvme, this makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small optimisation.
54 lines
1.7 KiB
Text
54 lines
1.7 KiB
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Contributor: Pierre-Gildas MILLON <pgmillon@gmail.com>
|
|
# Maintainer: Drew DeVault <sir@cmpwn.com>
|
|
pkgname=py3-pygit2
|
|
_pkgname=pygit2
|
|
pkgver=1.11.1
|
|
pkgrel=2
|
|
pkgdesc="Python bindings for libgit2"
|
|
url="https://github.com/libgit2/pygit2"
|
|
arch="all"
|
|
license="GPL-2.0-only WITH GCC-exception-2.0"
|
|
depends="py3-cffi py3-cached-property"
|
|
makedepends="
|
|
libgit2-dev
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
python3-dev
|
|
"
|
|
checkdepends="py3-pytest py3-hypothesis"
|
|
source="https://pypi.io/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz
|
|
s390x-patch-context-mark-xfail.patch
|
|
test-skip-ls-remote-github.patch
|
|
"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
replaces="py-pygit" # Backward compat
|
|
provides="py-pygit=$pkgver-r$pkgrel" # Backward compat
|
|
|
|
# 2/6 tests fail https://github.com/libgit2/pygit2/issues/812
|
|
[ "$CARCH" = "s390x" ] && options="!check"
|
|
|
|
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
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
fe15e699e170d6fb768bfeedbd90f2b1d71cd54a7a461f6be38b306e486b891a11dc38623669f04298c9402618e29b80ddb1e468fb5d9819278997bed48393d6 pygit2-1.11.1.tar.gz
|
|
e7f3a43f2de1503d75c5583c4d9a30027dd3d619ba02e7e62bed3b912e8c91e4bc58ad395b110eb506b365bebf99d4245837c65c9988f15e4dc41f0f87fe7c13 s390x-patch-context-mark-xfail.patch
|
|
c0114b96d0064f272f166a6af915a1abcadc1ec8aac0c84007e4f24d669784d42c24f50ad71118453f0fb25b6f38f991a9d6f968d1a21f017c4662c9ba9c5c41 test-skip-ls-remote-github.patch
|
|
"
|