[arch-commits] Commit in python-sphinx-autoapi/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Dec 1 14:52:11 UTC 2021
Date: Wednesday, December 1, 2021 @ 14:52:11
Author: felixonmars
Revision: 1059436
archrelease: copy trunk to community-staging-any
Added:
python-sphinx-autoapi/repos/community-staging-any/
python-sphinx-autoapi/repos/community-staging-any/PKGBUILD
(from rev 1059435, python-sphinx-autoapi/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: python-sphinx-autoapi/repos/community-staging-any/PKGBUILD (from rev 1059435, python-sphinx-autoapi/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-01 14:52:11 UTC (rev 1059436)
@@ -0,0 +1,44 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+_name=sphinx-autoapi
+pkgname=python-sphinx-autoapi
+pkgver=1.8.4
+pkgrel=2
+pkgdesc="A new approach to API documentation in Sphinx."
+arch=('any')
+url="https://github.com/readthedocs/sphinx-autoapi"
+license=('MIT')
+depends=('python-astroid' 'python-jinja' 'python-sphinx' 'python-unidecode'
+'python-yaml')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-pytest')
+# TODO: package python-go and python-dotnet
+# optdepends=('python-go' 'python-dotnet')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha256sums=('8c4ec5fbedc1e6e8f4692bcc4fcd1abcfb9e8dfca8a4ded60ad811a743c22ccc')
+b2sums=('88a63a3acaf41e3c1b56fc5dd25c29b453fd0368f46a96f03b9123826ec876bfa1e1a77104c190475bfa565dc3b3c8b71942e57bf7191f98b7c0b474ac970695')
+
+prepare() {
+ mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="build:${PYTHONPATH}"
+ pytest -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --root="${pkgdir}"
+ install -vDm 644 {CHANGELOG,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -vDm 644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
More information about the arch-commits
mailing list