mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 00:34:41 +02:00
47 lines
1.4 KiB
Text
47 lines
1.4 KiB
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
|
|
pkgname=py3-zope-testrunner
|
|
_pkgname=zope.testrunner
|
|
pkgver=7.4
|
|
pkgrel=0
|
|
pkgdesc="Zope testrunner script"
|
|
url="https://github.com/zopefoundation/zope.testrunner"
|
|
arch="noarch"
|
|
license="ZPL-2.1"
|
|
depends="python3 py3-setuptools py3-zope-exceptions py3-zope-interface"
|
|
makedepends="py3-gpep517 py3-wheel"
|
|
checkdepends="py3-zope-testing"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/${_pkgname/./_}-$pkgver.tar.gz
|
|
skip-tests.patch
|
|
"
|
|
builddir="$srcdir/${_pkgname/./_}-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
#Remove ancient python2.5 reference
|
|
rm -rf $builddir/src/zope/testrunner/tests/testrunner-ex-251759
|
|
}
|
|
|
|
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 --no-compile .dist/*.whl
|
|
.testenv/bin/python3 -m unittest src/zope/testrunner/tests/*.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
69e8e7bf966f321c0a7057a68fe517ef772f11c3c692d95623ed7c0d487a6c2a9d6fe84725484de5bedddccb7cb62475191c7fca72038fb95fdaa7bba6182b09 zope_testrunner-7.4.tar.gz
|
|
d31950bb0a22bc74b799c796e7adca358e0b16bb8b07810add2c37a007c3479e046168467038f77d7f35ea6ea9c1912331bc8bc89972b9a9f84ace2ac6be47a9 skip-tests.patch
|
|
"
|