mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 16:31:40 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			48 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Contributor: Oleg Titov <oleg.titov@gmail.com>
 | |
| # Maintainer: Oleg Titov <oleg.titov@gmail.com>
 | |
| pkgname=py3-python-multipart
 | |
| pkgver=0.0.6
 | |
| pkgrel=0
 | |
| 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"
 | |
| 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
 | |
| "
 |