mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 16:31:40 +01:00 
			
		
		
		
	we never use pip in the venv manually made for tests- this might break 1-2 things unexpectedly, but - those should be looked at anyway - this has a severe speedup- even on a desktop machine with nvme, this makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small optimisation.
		
			
				
	
	
		
			39 lines
		
	
	
		
			1022 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1022 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Contributor: Justin Berthault <justin.berthault@zaclys.net>
 | |
| # Maintainer: Justin Berthault <justin.berthault@zaclys.net>
 | |
| pkgname=py3-mypy-extensions
 | |
| pkgver=1.0.0
 | |
| pkgrel=0
 | |
| pkgdesc="Experimental type system extensions for mypy typechecker"
 | |
| url="http://www.mypy-lang.org/"
 | |
| arch="noarch"
 | |
| license="MIT"
 | |
| depends="python3"
 | |
| makedepends="
 | |
| 	py3-gpep517
 | |
| 	py3-setuptools
 | |
| 	py3-wheel
 | |
| 	"
 | |
| source="$pkgname-$pkgver.tar.gz::https://github.com/python/mypy_extensions/archive/$pkgver.tar.gz"
 | |
| builddir="$srcdir/"mypy_extensions-$pkgver
 | |
| 
 | |
| build() {
 | |
| 	gpep517 build-wheel \
 | |
| 		--wheel-dir dist \
 | |
| 		--output-fd 3 3>&1 >&2
 | |
| }
 | |
| 
 | |
| check() {
 | |
| 	python3 -m venv --clear --without-pip --system-site-packages test-env
 | |
| 	test-env/bin/python3 -m installer dist/*.whl
 | |
| 	test-env/bin/python3 -m unittest discover tests
 | |
| }
 | |
| 
 | |
| package() {
 | |
| 	python3 -m installer -d "$pkgdir" \
 | |
| 		dist/*.whl
 | |
| }
 | |
| 
 | |
| sha512sums="
 | |
| ac89a9f60a2c3df3457d5a6ab7ed47b72dd173646ef57f1450556051617e62046405a69fadeb40d2c24e68ce6ffed56d9182365e3203477facdc935e1a807847  py3-mypy-extensions-1.0.0.tar.gz
 | |
| "
 |