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

Filipe Laíns ffy00 at archlinux.org
Wed Nov 11 15:05:17 UTC 2020


    Date: Wednesday, November 11, 2020 @ 15:05:17
  Author: ffy00
Revision: 750846

archrelease: copy trunk to community-staging-any

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

----------+
 PKGBUILD |  108 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 58 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-11 15:05:15 UTC (rev 750845)
+++ PKGBUILD	2020-11-11 15:05:17 UTC (rev 750846)
@@ -1,50 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-_pkgname=furo
-pkgname=python-sphinx-$_pkgname
-pkgver=2020.10.15.beta13
-pkgrel=2
-pkgdesc='A clean customizable documentation theme for Sphinx'
-arch=('any')
-url='https://github.com/pradyunsg/furo'
-license=('MIT')
-depends=('python-sphinx' 'python-beautifulsoup4')
-makedepends=('python-setuptools' 'python-dephell' 'python-myst-parser' 'python-sphinx-inline-tabs')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('025c5d853fc8fd12c7d4701cbffe948e530eec38b50e726a8c5a675216c9450a0ff7a495a68a72c80f8b7fc507ecc2e2d6708308625dfe89ee40d78516409a8c')
-
-prepare() {
-  cd $_pkgname-$pkgver
-
-  dephell deps convert --from pyproject.toml --to setup.py
-}
-
-build() {
-  cd $_pkgname-$pkgver
-
-  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
-  # 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
-
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
-  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/docs/.doctrees
-
-  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-sphinx-furo/repos/community-staging-any/PKGBUILD (from rev 750845, python-sphinx-furo/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-11 15:05:17 UTC (rev 750846)
@@ -0,0 +1,58 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=furo
+pkgname=python-sphinx-$_pkgname
+pkgver=2020.11.10.beta15
+pkgrel=2
+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')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('cadb1be5982b71f944397428515fc9821bd6874db6ce67a66f725342d109992ba2ad9d2de7029d17de4e6a2c5fb1746f3b4b5df92ba4d1fba66ac2b662746ea2')
+
+prepare() {
+  cd $_pkgname-$pkgver
+
+  npm install
+}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  gulp build
+  rm -rf node_modules
+
+  # 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
+
+  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
+  # 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
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  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