diff options
-rw-r--r-- | testing/py3-sphinx-autoapi/APKBUILD | 32 |
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 00000000000..1c739bcbdba --- /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" |