[arch-commits] Commit in (4 files)
Caleb Maclennan
alerque at gemini.archlinux.org
Tue Jun 7 09:18:05 UTC 2022
Date: Tuesday, June 7, 2022 @ 09:18:05
Author: alerque
Revision: 1228430
Migrate python-sphinx-reredirects from AUR, new dep of pylint
Added:
python-sphinx-reredirects/
python-sphinx-reredirects/repos/
python-sphinx-reredirects/trunk/
python-sphinx-reredirects/trunk/PKGBUILD
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Added: python-sphinx-reredirects/trunk/PKGBUILD
===================================================================
--- python-sphinx-reredirects/trunk/PKGBUILD (rev 0)
+++ python-sphinx-reredirects/trunk/PKGBUILD 2022-06-07 09:18:05 UTC (rev 1228430)
@@ -0,0 +1,37 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: JakobDev<jakobdev at gmx dot de>
+
+# TODO: Tests added after 0.1.0 release, enable check() on next bump
+
+pkgname=python-sphinx-reredirects
+_pkgname=${pkgname#python-}
+pkgver=0.1.0
+pkgrel=1
+pkgdesc='Handles redirects for moved pages in Sphinx documentation projects'
+arch=(any)
+url="https://gitlab.com/documatt/$_pkgname"
+license=("BSD")
+depends=(python
+ python-sphinx)
+makedepends=(python-{build,installer}
+ python-setuptools
+ python-wheel)
+# checkdepends=(python-pytest)
+_archive="$_pkgname-v$pkgver"
+source=("$url/-/archive/v$pkgver/$_archive.tar.bz2")
+sha256sums=('185113103aed8f5da175c863baee06999a83913521bea30d6e6382602868f9ef')
+
+build() {
+ cd "$_archive"
+ python -m build -wn
+}
+
+# check() {
+# cd "$_archive"
+# pytest tests
+# }
+
+package() {
+ cd "$_archive"
+ python -m installer -d "$pkgdir" dist/*.whl
+}
More information about the arch-commits
mailing list