1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/community/py3-sphinx-autobuild/APKBUILD
psykose b71032c356 */*: invoke -m venv with --without-pip
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.
2023-02-09 22:55:20 +01:00

45 lines
1.3 KiB
Text

# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-sphinx-autobuild
pkgver=2021.03.14
pkgrel=0
pkgdesc="Watch a Sphinx directory and rebuild the documentation when a change is detected"
url="https://github.com/executablebooks/sphinx-autobuild"
arch="noarch"
license="MIT"
replaces="py-sphinx-autobuild" #for backwards compatibility
provides="py-sphinx-autobuild=$pkgver-r$pkgrel" #for backwards compatibility
depends="
py3-colorama
py3-livereload
py3-sphinx
py3-tornado
"
makedepends="
py3-gpep517
py3-flit-core
"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/executablebooks/sphinx-autobuild/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir"/sphinx-autobuild-$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 -d "$pkgdir" \
dist/*.whl
}
sha512sums="
6be06e129119f2ab9d6443fc04bd1f6005c154fd53f231124babe6fd5f6371e0c9d8b42b119ab3cf53926d17970894b6ee883c464384abaa98a152f61020ed90 py3-sphinx-autobuild-2021.03.14.tar.gz
"