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

Felix Yan felixonmars at gemini.archlinux.org
Thu Dec 9 02:08:07 UTC 2021


    Date: Thursday, December 9, 2021 @ 02:08:07
  Author: felixonmars
Revision: 1065763

archrelease: copy trunk to community-staging-any

Added:
  python-sphinx-furo/repos/community-staging-any/
  python-sphinx-furo/repos/community-staging-any/PKGBUILD
    (from rev 1065762, python-sphinx-furo/trunk/PKGBUILD)

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

Copied: python-sphinx-furo/repos/community-staging-any/PKGBUILD (from rev 1065762, python-sphinx-furo/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-09 02:08:07 UTC (rev 1065763)
@@ -0,0 +1,46 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at 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
+}



More information about the arch-commits mailing list