mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=py3-sphinx-autobuild
|
|
pkgver=2021.03.14
|
|
pkgrel=1
|
|
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"
|
|
subpackages="$pkgname-pyc"
|
|
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
|
|
"
|