Date: Monday, January 3, 2022 @ 07:00:51 Author: polyzen Revision: 1092357
archrelease: copy trunk to community-any Added: python-sphinx-furo/repos/community-any/PKGBUILD (from rev 1092356, python-sphinx-furo/trunk/PKGBUILD) Deleted: python-sphinx-furo/repos/community-any/PKGBUILD ----------+ PKGBUILD | 92 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 46 insertions(+), 46 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-01-03 07:00:30 UTC (rev 1092356) +++ PKGBUILD 2022-01-03 07:00:51 UTC (rev 1092357) @@ -1,46 +0,0 @@ -# Maintainer: Filipe Laíns (FFY00) <la...@archlinux.org> - -_pkgname=furo -pkgname=python-sphinx-$_pkgname -pkgver=2021.11.23 -pkgrel=2 -pkgdesc='A clean customizable documentation theme for Sphinx' -arch=('any') -url='https://github.com/pradyunsg/furo' -license=('MIT') -depends=('python-sphinx' 'python-pygments' 'python-beautifulsoup4') -makedepends=('python-build' 'python-pip' 'python-sphinx-theme-builder' 'python-flit-core') -source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") -sha512sums=('921b2a2337d4ec4434a9cbccfbb1faacc42477ac75a37d0d6e0bc39827fbecfec362e631fa3ff9080b580e2a6b8bc77df933d964e3f552dcad1fff1af166b481') - -build() { - cd $_pkgname-$pkgver - - python -m build -nw - - # docs disabled for now to unblock Python 3.10 update - - # sphinx needs this theme installed because it is uses it. - # simply injecting the package to sys.path (via PYTHONPATH or similar) - # is not enough because sphinx looks for themes in the registered - # entrypoints, this means we actually have to install the package. - # for this we will create a venv with access to system packages and - # install the theme there, then we will build the documentation. - - #python -m venv --system-site-packages doc-env - #doc-env/bin/python setup.py install --skip-build - - #doc-env/bin/python /usr/bin/sphinx-build -b dirhtml -v docs build/docs/html -} - -package() { - cd $_pkgname-$pkgver - - PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps dist/*.whl - - #install -dm 755 "$pkgdir"/usr/share/doc/$pkgname - #cp -r -a --no-preserve=ownership build/docs/html "$pkgdir"/usr/share/doc/$pkgname - #rm -rf "$pkgdir"/usr/share/doc/$pkgname/html/.doctrees - - install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} Copied: python-sphinx-furo/repos/community-any/PKGBUILD (from rev 1092356, python-sphinx-furo/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-01-03 07:00:51 UTC (rev 1092357) @@ -0,0 +1,46 @@ +# Maintainer: Filipe Laíns (FFY00) <la...@archlinux.org> + +_pkgname=furo +pkgname=python-sphinx-$_pkgname +pkgver=2022.01.02 +pkgrel=1 +pkgdesc='A clean customizable documentation theme for Sphinx' +arch=('any') +url='https://github.com/pradyunsg/furo' +license=('MIT') +depends=('python-sphinx' 'python-pygments' 'python-beautifulsoup4') +makedepends=('python-build' 'python-pip' 'python-sphinx-theme-builder' 'python-flit-core') +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +sha512sums=('dcd2bae18c28a8623b566ef79a996a76d9157a05627b4e9c930b0ea82154992b9d2321ffe1c62fc2d014d499b7ca1f71117bcea9a1e8879a0ef12d3818cdd290') + +build() { + cd $_pkgname-$pkgver + + python -m build -nw + + # docs disabled for now to unblock Python 3.10 update + + # sphinx needs this theme installed because it is uses it. + # simply injecting the package to sys.path (via PYTHONPATH or similar) + # is not enough because sphinx looks for themes in the registered + # entrypoints, this means we actually have to install the package. + # for this we will create a venv with access to system packages and + # install the theme there, then we will build the documentation. + + #python -m venv --system-site-packages doc-env + #doc-env/bin/python setup.py install --skip-build + + #doc-env/bin/python /usr/bin/sphinx-build -b dirhtml -v docs build/docs/html +} + +package() { + cd $_pkgname-$pkgver + + PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps dist/*.whl + + #install -dm 755 "$pkgdir"/usr/share/doc/$pkgname + #cp -r -a --no-preserve=ownership build/docs/html "$pkgdir"/usr/share/doc/$pkgname + #rm -rf "$pkgdir"/usr/share/doc/$pkgname/html/.doctrees + + install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}