mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-zope-i18nmessageid: build with gpep517
This commit is contained in:
parent
6431d4cb13
commit
473c8c7e54
@ -3,29 +3,34 @@
|
||||
pkgname=py3-zope-i18nmessageid
|
||||
_pkgname=zope.i18nmessageid
|
||||
pkgver=6.1.0
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Message Identifiers for internationalization"
|
||||
url="https://github.com/zopefoundation/zope.i18nmessageid"
|
||||
arch="all"
|
||||
license="ZPL-2.1"
|
||||
depends="py3-setuptools"
|
||||
makedepends="python3-dev"
|
||||
makedepends="python3-dev py3-gpep517"
|
||||
checkdepends="py3-nose py3-coverage py3-zope-testrunner"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgname-$pkgver"
|
||||
|
||||
build() {
|
||||
python3 setup.py 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
|
||||
# optimizations don't work(?)
|
||||
nosetests -e "test_optimizations_available"
|
||||
.testenv/bin/python3 -m nose -e "test_optimizations_available"
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
Loading…
Reference in New Issue
Block a user