[arch-commits] Commit in python-sphinx-furo/trunk (PKGBUILD)

Filipe Laíns ffy00 at gemini.archlinux.org
Thu Dec 9 01:21:23 UTC 2021


    Date: Thursday, December 9, 2021 @ 01:21:23
  Author: ffy00
Revision: 1065748

upgpkg: python-sphinx-furo 2021.11.23-1

Modified:
  python-sphinx-furo/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++--------------------------
 1 file changed, 14 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-09 01:07:21 UTC (rev 1065747)
+++ PKGBUILD	2021-12-09 01:21:23 UTC (rev 1065748)
@@ -2,36 +2,24 @@
 
 _pkgname=furo
 pkgname=python-sphinx-$_pkgname
-pkgver=2020.11.10.beta15
-pkgrel=3
+pkgver=2021.11.23
+pkgrel=1
 pkgdesc='A clean customizable documentation theme for Sphinx'
 arch=('any')
 url='https://github.com/pradyunsg/furo'
 license=('MIT')
-depends=('python-sphinx' 'python-beautifulsoup4')
-makedepends=('npm' 'gulp' 'python2' 'python-setuptools' 'python-dephell' 'python-myst-parser' 'python-sphinx-inline-tabs')
+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=('cadb1be5982b71f944397428515fc9821bd6874db6ce67a66f725342d109992ba2ad9d2de7029d17de4e6a2c5fb1746f3b4b5df92ba4d1fba66ac2b662746ea2')
+sha512sums=('921b2a2337d4ec4434a9cbccfbb1faacc42477ac75a37d0d6e0bc39827fbecfec362e631fa3ff9080b580e2a6b8bc77df933d964e3f552dcad1fff1af166b481')
 
-prepare() {
-  cd $_pkgname-$pkgver
-
-  npm install
-}
-
 build() {
   cd $_pkgname-$pkgver
 
-  gulp build
-  rm -rf node_modules
+  python -m build -nw
 
-  # this should be in prepare() but it evaluates the package data when we run dephell,
-  # instead of using the glob module in setup.py or something similar, so we need to
-  # build the data first with gulp and only then we can generate the setup.py
-  dephell deps convert --from pyproject.toml --to setup.py
+  # docs disabled for now to unblock Python 3.10 update
 
-  python setup.py build
-
   # 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
@@ -39,20 +27,20 @@
   # 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
+  #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
+  #doc-env/bin/python /usr/bin/sphinx-build -b dirhtml -v docs build/docs/html
 }
 
 package() {
   cd $_pkgname-$pkgver
 
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  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 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