aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-sphinx-autoapi
diff options
context:
space:
mode:
authorGalen Abell <galen@galenabell.com>2020-08-13 13:39:19 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-08-16 23:18:47 +0000
commit8ef1d8a5fb78c254ec298f24a714ef14479dabe2 (patch)
tree5728171ad8feed918d4a499bf2fadedea9cd958b /testing/py3-sphinx-autoapi
parenta1c2a750cffb4caebcd20a5517cb0055d067ba4c (diff)
downloadaports-8ef1d8a5fb78c254ec298f24a714ef14479dabe2.tar.gz
aports-8ef1d8a5fb78c254ec298f24a714ef14479dabe2.tar.bz2
aports-8ef1d8a5fb78c254ec298f24a714ef14479dabe2.tar.xz
testing/py3-sphinx-autoapi: new aport
https://sphinx-autoapi.readthedocs.io Automatic API documentation for Sphinx testing/
Diffstat (limited to 'testing/py3-sphinx-autoapi')
-rw-r--r--testing/py3-sphinx-autoapi/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/py3-sphinx-autoapi/APKBUILD b/testing/py3-sphinx-autoapi/APKBUILD
new file mode 100644
index 0000000000..1c739bcbdb
--- /dev/null
+++ b/testing/py3-sphinx-autoapi/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Galen Abell <galen@galenabell.com>
+# Maintainer: Galen Abell <galen@galenabell.com>
+pkgname=py3-sphinx-autoapi
+_pyname=sphinx-autoapi
+pkgver=1.4.0
+pkgrel=0
+pkgdesc="Automatic API documentation for Sphinx"
+url="https://sphinx-autoapi.readthedocs.io"
+arch="noarch !x86" # build breaks on x86
+license="MIT"
+depends="python3 py3-astroid py3-jinja2 py3-sphinx py3-unidecode py3-yaml"
+makedepends="py3-setuptools"
+checkdepends="py3-mock py3-pytest"
+source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
+builddir="$srcdir/$_pyname-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ # TODO re-add failing tests after fixes from new release
+ # See https://github.com/readthedocs/sphinx-autoapi/issues/215
+ # and https://github.com/readthedocs/sphinx-autoapi/issues/227
+ PYTHONPATH="build:$PYTHONPATH" pytest -v -k 'not test_order_members and not test_manual_directives'
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="4cd1e6ee56d35d9c954c458c19cff73054de5eee60848329b7bff5b8ba2fc585d0079210bce7727c2c492dc1eef25f5b6d00e10bfb0e7bf01fa56ba935f85591 sphinx-autoapi-1.4.0.tar.gz"