mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 08:21:49 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Contributor: Galen Abell <galen@galenabell.com>
 | |
| # Maintainer: Galen Abell <galen@galenabell.com>
 | |
| pkgname=py3-sphinx-autoapi
 | |
| _pyname=sphinx_autoapi
 | |
| pkgver=3.1.2
 | |
| pkgrel=0
 | |
| pkgdesc="Automatic API documentation for Sphinx"
 | |
| url="https://sphinx-autoapi.readthedocs.io"
 | |
| arch="noarch !x86" # build breaks on x86
 | |
| license="MIT"
 | |
| depends="python3 py3-astroid py3-jinja2 py3-sphinx py3-anyascii py3-yaml"
 | |
| makedepends="py3-gpep517 py3-setuptools py3-wheel"
 | |
| checkdepends="py3-mock py3-pytest py3-beautifulsoup4"
 | |
| subpackages="$pkgname-pyc"
 | |
| source="https://files.pythonhosted.org/packages/source/s/$_pyname/$_pyname-$pkgver.tar.gz"
 | |
| builddir="$srcdir/$_pyname-$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
 | |
| 	# Disable tests that require network access
 | |
| 	.testenv/bin/python3 -m pytest \
 | |
| 		--deselect tests/python/test_pyintegration.py::TestPipeUnionModule::test_integration \
 | |
| 		--deselect tests/python/test_pyintegration.py::TestPEP695::test_integration
 | |
| }
 | |
| 
 | |
| package() {
 | |
| 	python3 -m installer -d "$pkgdir" \
 | |
| 		.dist/*.whl
 | |
| }
 | |
| sha512sums="
 | |
| 9e018f5040eb3f581b170207a98b01998358edf6e03d8b47dc3b1a9a210006340a2ca4c02029e624af9481160711abf9534070d15356e7a0188ed8c868fc39d0  sphinx_autoapi-3.1.2.tar.gz
 | |
| "
 |