aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-zope-configuration/APKBUILD
blob: b6bc723373d77e182199decc41748e44a6135149 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-zope-configuration
_pkgname=zope.configuration
pkgver=5.0.1
pkgrel=2
pkgdesc="Zope Configuration Markup Language"
url="https://pypi.org/project/zope.configuration"
arch="noarch"
license="ZPL-2.1"
depends="py3-zope-interface py3-setuptools py3-zope-schema py3-zope-i18nmessageid"
makedepends="py3-gpep517 py3-wheel"
checkdepends="py3-zope-testrunner py3-zope-testing py3-manuel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-zope-configuration"                  # Backwards compatibility
provides="py-zope-configuration=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m venv --clear --without-pip --system-site-packages .testenv
	gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
	.testenv/bin/python3 -m zope.testrunner
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
	rm -r "$pkgdir"/usr/lib/python*/site-packages/zope/configuration/tests
}

sha512sums="
58fec7b330a4ee5f9bb71238fbcb8f07fdd7b6767cb2d8e054699ffcb915973b9dfead33e5515f40049f6aede233d31624d09d7f84d75b96318e63f8ab454147  zope.configuration-5.0.1.tar.gz
"