[arch-commits] Commit in python-sphinx-furo/repos/community-any (PKGBUILD PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Tue Feb 15 05:37:20 UTC 2022
Date: Tuesday, February 15, 2022 @ 05:37:20
Author: polyzen
Revision: 1133316
archrelease: copy trunk to community-any
Added:
python-sphinx-furo/repos/community-any/PKGBUILD
(from rev 1133315, python-sphinx-furo/trunk/PKGBUILD)
Deleted:
python-sphinx-furo/repos/community-any/PKGBUILD
----------+
PKGBUILD | 101 ++++++++++++++++++++++++++++---------------------------------
1 file changed, 47 insertions(+), 54 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-15 05:36:57 UTC (rev 1133315)
+++ PKGBUILD 2022-02-15 05:37:20 UTC (rev 1133316)
@@ -1,54 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-_pkgname=furo
-pkgname=python-sphinx-$_pkgname
-pkgver=2022.01.02
-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'
- 'nodejs-lts-gallium' 'npm' 'expac')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('dcd2bae18c28a8623b566ef79a996a76d9157a05627b4e9c930b0ea82154992b9d2321ffe1c62fc2d014d499b7ca1f71117bcea9a1e8879a0ef12d3818cdd290')
-
-prepare() {
- cd $_pkgname-$pkgver
- # force use of system nodejs
- local node_ver=$(expac %v nodejs-lts-gallium | cut -d - -f 1)
- sed -i "s/16.13.0/$node_ver/" pyproject.toml
-}
-
-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 1133315, python-sphinx-furo/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-02-15 05:37:20 UTC (rev 1133316)
@@ -0,0 +1,47 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=furo
+pkgname=python-sphinx-$_pkgname
+pkgver=2022.02.14.1
+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'
+ 'nodejs-lts-gallium' 'npm' 'expac')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('883b149e622aa020c0a2b6e5f85b463d0a13dcabace2d6068254c078dab198200a86b803f198fcdbc6d358aeeed84b2e6a292e6f2ed5f07d95659439cb2dc787')
+
+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