mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 11:19:50 +03:00
47 lines
1.2 KiB
Text
47 lines
1.2 KiB
Text
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
pkgname=py3-python-multipart
|
|
pkgver=0.0.6
|
|
pkgrel=1
|
|
pkgdesc="A streaming multipart parser for Python"
|
|
url="https://github.com/andrew-d/python-multipart"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="python3"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-hatchling
|
|
"
|
|
subpackages="$pkgname-doc $pkgname-pyc"
|
|
checkdepends="
|
|
py3-pytest-runner
|
|
py3-pytest-xdist
|
|
py3-yaml
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/andrew-d/python-multipart/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/python-multipart-$pkgver"
|
|
|
|
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 .dist/*.whl
|
|
.testenv/bin/python3 -m pytest -n auto
|
|
}
|
|
|
|
package() {
|
|
python -m installer -d "$pkgdir" \
|
|
.dist/python_multipart-*.whl
|
|
|
|
install -vDm644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
|
|
|
|
rm -r "$pkgdir"/usr/lib/python3*/site-packages/multipart/tests
|
|
}
|
|
|
|
sha512sums="
|
|
fb996725266996aefb5284b4815ecd8d0005344359f29780f0c2817125f625f3910be14d7d937e975b3ca9fb27a2a483401ab342a0c861df0e1112d447b1f083 py3-python-multipart-0.0.6.tar.gz
|
|
"
|