mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2024-09-20 11:23:16 +00:00
testing/py3-aiohttp-session: build with gpep517
This commit is contained in:
parent
eb48a5303b
commit
68e094223e
1 changed files with 9 additions and 10 deletions
|
@ -3,29 +3,28 @@
|
|||
pkgname=py3-aiohttp-session
|
||||
_pkgname=aiohttp_session
|
||||
pkgver=2.12.0
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="Sessions support for aiohttp"
|
||||
url="https://aiohttp-session.readthedocs.io/"
|
||||
arch="noarch"
|
||||
license="Apache-2.0"
|
||||
# Requires packages for tests which are not available
|
||||
options="!check"
|
||||
depends="py3-aiohttp"
|
||||
makedepends="python3-dev py3-setuptools"
|
||||
makedepends="python3-dev py3-setuptools py3-gpep517"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="aiohttp-session-$pkgver.tar.gz::https://github.com/aio-libs/aiohttp-session/archive/v$pkgver.tar.gz"
|
||||
builddir="$srcdir"/aiohttp-session-$pkgver
|
||||
# Requires packages for tests which are not available
|
||||
options="!check"
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 setup.py test
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
|
Loading…
Reference in a new issue