aports/testing/py3-zope-configuration/APKBUILD
ptrcnull d6e150e932
testing/*: rebuild against python 3.12
this is only a partial rebuild,
including stuff that i built on my personal machine
with python 3.12.2; might fail with 3.12.3
2024-04-15 17:00:47 +02:00

41 lines
1.4 KiB
Text

# 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
"