mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-11-04 02:11:39 +01:00 
			
		
		
		
	testing/py3-flake8-polyfill: build with gpep517
This commit is contained in:
		
							parent
							
								
									94380ef888
								
							
						
					
					
						commit
						88d21c0288
					
				@ -1,27 +1,35 @@
 | 
			
		||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 | 
			
		||||
pkgname=py3-flake8-polyfill
 | 
			
		||||
pkgver=1.0.2
 | 
			
		||||
pkgrel=4
 | 
			
		||||
pkgrel=5
 | 
			
		||||
pkgdesc="compatibility helpers for Flake8 plugins that intend to support Flake8 2.x and 3.x simultaneously"
 | 
			
		||||
url="https://gitlab.com/pycqa/flake8-polyfill"
 | 
			
		||||
arch="all"
 | 
			
		||||
license="MIT"
 | 
			
		||||
depends="py3-flake8"
 | 
			
		||||
makedepends="py3-setuptools"
 | 
			
		||||
makedepends="py3-setuptools py3-gpep517"
 | 
			
		||||
subpackages="$pkgname-pyc"
 | 
			
		||||
source="https://files.pythonhosted.org/packages/source/f/flake8-polyfill/flake8-polyfill-$pkgver.tar.gz"
 | 
			
		||||
builddir="$srcdir/flake8-polyfill-$pkgver"
 | 
			
		||||
options="!check" # no tests ran
 | 
			
		||||
 | 
			
		||||
build() {
 | 
			
		||||
	python3 setup.py build
 | 
			
		||||
	gpep517 build-wheel \
 | 
			
		||||
		--wheel-dir .dist \
 | 
			
		||||
		--output-fd 3 3>&1 >&2
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
check() {
 | 
			
		||||
	python3 setup.py test
 | 
			
		||||
	python3 -m venv --clear --without-pip --system-site-packages .testenv
 | 
			
		||||
	gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
 | 
			
		||||
	.testenv/bin/python3 -m unittest discover
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
package() {
 | 
			
		||||
	python3 setup.py install --skip-build --root="$pkgdir"
 | 
			
		||||
	gpep517 install-wheel --destdir "$pkgdir" \
 | 
			
		||||
		.dist/*.whl
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sha512sums="767a599aacbe87328b3e36bd85e0841870760ed9bd95dd3a4a9084edc6f0ae89f8203d565c2b075f16f1db21b647c17b2aa59b08e4702109d7e5f79f36d9f3fa  flake8-polyfill-1.0.2.tar.gz"
 | 
			
		||||
sha512sums="
 | 
			
		||||
767a599aacbe87328b3e36bd85e0841870760ed9bd95dd3a4a9084edc6f0ae89f8203d565c2b075f16f1db21b647c17b2aa59b08e4702109d7e5f79f36d9f3fa  flake8-polyfill-1.0.2.tar.gz
 | 
			
		||||
"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user