[arch-commits] Commit in python-sphinx-autoapi/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 04:07:59 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:07:59
  Author: foutrelis
Revision: 748509

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 748508, python-sphinx-autoapi/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: python-sphinx-autoapi/repos/community-staging-any/PKGBUILD (from rev 748508, python-sphinx-autoapi/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:07:59 UTC (rev 748509)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+_name=sphinx-autoapi
+pkgname=python-sphinx-autoapi
+pkgver=1.5.1
+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=('4d50878323b80b66abdc4046c1632636473414653bac450b58832b8ee9f6a9a6')
+b2sums=('9d2ab0c49f3f53e90c6cc89d5a07b48571de45c964ec2479f1d24ebca99ff673448b4ed9ba5d96520e949410b450e6a8a6d0db5b084fd0d293bec5163c703b43')
+
+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 \
+    --prefix=/usr \
+    --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