mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 08:21:49 +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.
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Contributor: Duncan Bellamy <dunk@denkimushi.com>
 | |
| # Maintainer: Duncan Bellamy <dunk@denkimushi.com>
 | |
| pkgname=py3-prettytable3
 | |
| pkgver=3.6.0
 | |
| pkgrel=1
 | |
| pkgdesc="Display tabular data in a visually appealing ASCII table format"
 | |
| url="https://github.com/jazzband/prettytable"
 | |
| arch="noarch"
 | |
| license="BSD-3-Clause"
 | |
| depends="python3 py3-wcwidth !py3-prettytable"
 | |
| makedepends="py3-gpep517 py3-hatchling py3-hatch-vcs py3-installer"
 | |
| checkdepends="py3-pytest py3-pytest-lazy-fixture"
 | |
| source="$pkgname-$pkgver.tar.gz::https://github.com/jazzband/prettytable/archive/$pkgver.tar.gz"
 | |
| builddir="$srcdir/prettytable-$pkgver"
 | |
| 
 | |
| build() {
 | |
| 	export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
 | |
| 	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
 | |
| }
 | |
| 
 | |
| package() {
 | |
| 	python3 -m installer -d "$pkgdir" \
 | |
| 		dist/*.whl
 | |
| }
 | |
| 
 | |
| sha512sums="
 | |
| b4693a3d30555f598cb955923560d02ce7c757e87ee49bf09c8d50d3ce8bef67ebfad1c780914f488e89852c0e363c2cad098addc058a88864efb8eefa8e9cd8  py3-prettytable3-3.6.0.tar.gz
 | |
| "
 |