diff options
Diffstat (limited to 'community/py3-sphinx-autobuild/APKBUILD')
-rw-r--r-- | community/py3-sphinx-autobuild/APKBUILD | 45 |
1 files changed, 31 insertions, 14 deletions
diff --git a/community/py3-sphinx-autobuild/APKBUILD b/community/py3-sphinx-autobuild/APKBUILD index 46cc60c6d74..f7e62fa47de 100644 --- a/community/py3-sphinx-autobuild/APKBUILD +++ b/community/py3-sphinx-autobuild/APKBUILD @@ -1,29 +1,46 @@ # Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=py3-sphinx-autobuild -_pkgname=sphinx-autobuild -pkgver=0.7.1 -pkgrel=3 +pkgver=2024.02.04 +pkgrel=1 pkgdesc="Watch a Sphinx directory and rebuild the documentation when a change is detected" -url="https://github.com/GaretJax/sphinx-autobuild" +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-argh py3-livereload py3-pathtools py3-port-for py3-sphinx - py3-tornado py3-watchdog py3-yaml" -makedepends="py3-setuptools" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz - fix-requires.patch" -builddir="$srcdir"/$_pkgname-$pkgver +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() { - python3 setup.py 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 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/*.whl } -sha512sums="6ecd4cccfcf1f6ecd15ffe39ad166436bc628e9ffb215b96b979cf10a56352640aefb22a858ab05e1fa9153c684af162bf89813331e1c2b12450a0cf2fcd3646 sphinx-autobuild-0.7.1.tar.gz -a5ce0b1c725a1844aa5e62a8f9e5157f34c2a36b08a178cbdeeeedf780494e1f0934bdd9ef1bc1d96893d36879c7f513b14d8789f8cb133949a832d6f11ee2b9 fix-requires.patch" +sha512sums=" +4f778f82b1c6635856f97ff742cf9595a4251734164f479943bd6282b94d61dc47fb6d48ab9a106c574213452f0edeac1ec87bf52cdf035c114b74fa604b48a2 py3-sphinx-autobuild-2024.02.04.tar.gz +" |