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.
		
			
				
	
	
		
			36 lines
		
	
	
		
			997 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			997 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Contributor: Aiden Grossman <agrossman154@yahoo.com>
 | |
| # Maintainer: Aiden Grossman <agrossman154@yahoo.com>
 | |
| pkgname=py3-comm
 | |
| pkgver=0.1.2
 | |
| pkgrel=0
 | |
| pkgdesc="Python comm implementation for the Jupyter kernel protocol"
 | |
| url="https://github.com/ipython/comm"
 | |
| arch="noarch"
 | |
| license="BSD-3-Clause"
 | |
| depends="py3-traitlets"
 | |
| makedepends="py3-gpep517 py3-hatchling"
 | |
| checkdepends="py3-pytest"
 | |
| source="$pkgname-$pkgver.tar.gz::https://github.com/ipython/comm/archive/refs/tags/$pkgver.tar.gz"
 | |
| builddir="$srcdir/comm-$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 pytest
 | |
| }
 | |
| 
 | |
| package() {
 | |
| 	python3 -m installer --destdir="$pkgdir" dist/*.whl
 | |
| }
 | |
| 
 | |
| sha512sums="
 | |
| 9cec9909676edc0c8abf41e6d90f83a6ebfa88266023b3b5fd9c1ffe3fe16ba324b68ab92e788bfa01d5304d5de6e6dc96c7238973f3b39f8c77fa5165df8379  py3-comm-0.1.2.tar.gz
 | |
| "
 |