[arch-commits] Commit in nikola/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Mon Jul 6 12:07:56 UTC 2020


    Date: Monday, July 6, 2020 @ 12:07:56
  Author: dvzrv
Revision: 657984

archrelease: copy trunk to community-any

Added:
  nikola/repos/community-any/PKGBUILD
    (from rev 657983, nikola/trunk/PKGBUILD)
Deleted:
  nikola/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  173 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 88 insertions(+), 85 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-06 12:07:31 UTC (rev 657983)
+++ PKGBUILD	2020-07-06 12:07:56 UTC (rev 657984)
@@ -1,85 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=Nikola
-pkgname=nikola
-pkgver=8.0.4
-pkgrel=1
-pkgdesc="A static site and blog generator"
-arch=('any')
-url="https://getnikola.com/"
-license=('MIT')
-depends=('python-babel' 'python-blinker' 'python-doit' 'python-dateutil'
-'python-docutils' 'python-logbook' 'python-lxml' 'python-mako'
-'python-markdown' 'python-natsort' 'python-piexif' 'python-pillow'
-'python-pygments' 'python-pyrss2gen' 'python-requests' 'python-setuptools'
-'python-unidecode' 'python-yapsy')
-makedepends=('jupyter-notebook' 'python-aiohttp' 'python-ghp-import'
-'python-husl' 'python-ipykernel' 'python-jinja' 'python-micawber'
-'python-phpserialize' 'python-pygal' 'python-pyphen' 'python-ruamel-yaml'
-'python-toml' 'python-typogrify' 'python-watchdog')
-checkdepends=('python-coverage' 'python-freezegun' 'python-pytest'
-'python-pytest-cov')
-optdepends=('jupyter-notebook: for .ipynb support'
-            'python-aiohttp: for `nikola auto`'
-            'python-ghp-import: for upload to Github pages'
-            'python-husl: for optional color support'
-            'python-ipykernel: for .ipynb support'
-            'python-jinja: for jinja2 based themes'
-            'python-micawber: for embedding media in posts'
-            'python-phpserialize: for Wordpress import'
-            'python-pygal: for SVG graph plotting'
-            'python-pyphen: for hyphenation support'
-            'python-ruamel-yaml: for YAML support'
-            'python-toml: for TOML support'
-            'python-typogrify: for typographical enhancements'
-            'python-watchdog: for `nikola auto`')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc})
-sha512sums=('eb6774d11be4eab81fbe41115d80e5d0d38694b734431d5d6355fcd3e3d8ae5ff4a02114c5dd0dbbc9e1ea5a625e9ac2b6b91e82f6e017b4376e4ca8d56cfec7'
-            'SKIP')
-validpgpkeys=('DF32C99CFF84282CF9D4CF7171023DBD5EAAEA16') # Chris Warrick <kwpolska at gmail.com>
-
-prepare() {
-  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-  # shell completions
-  PYTHONPATH="build" \
-  python -m "${pkgname}" tabcompletion \
-    --shell bash \
-    --hardcode-tasks \
-    > "${pkgname}_bash"
-  PYTHONPATH="build" \
-  python -m "${pkgname}" tabcompletion \
-    --shell zsh \
-    --hardcode-tasks \
-    > "${pkgname}_zsh"
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  export PYTHONPATH="build:${PYTHONPATH}"
-  pytest -v tests/
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  install -vDm 644 LICENSE.txt \
-    -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -vDm 644 {AUTHORS,CHANGES}.txt {CONTRIBUTING,README}.rst \
-    -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -vDm 644 "${pkgname}_bash" \
-    "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
-  install -vDm 644 "${pkgname}_zsh" \
-    "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
-  # removing tests as a top-level module
-  # https://github.com/getnikola/nikola/issues/3348
-  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
-  rm -rvf "${pkgdir}/${site_packages}/tests"
-}

Copied: nikola/repos/community-any/PKGBUILD (from rev 657983, nikola/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-06 12:07:56 UTC (rev 657984)
@@ -0,0 +1,88 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=Nikola
+pkgname=nikola
+pkgver=8.1.1
+pkgrel=1
+pkgdesc="A static site and blog generator"
+arch=('any')
+url="https://getnikola.com/"
+license=('MIT')
+depends=('python-babel' 'python-blinker' 'python-doit' 'python-dateutil'
+'python-docutils' 'python-logbook' 'python-lxml' 'python-mako'
+'python-markdown' 'python-natsort' 'python-piexif' 'python-pillow'
+'python-pygments' 'python-pyrss2gen' 'python-requests' 'python-setuptools'
+'python-unidecode' 'python-yapsy')
+makedepends=('jupyter-notebook' 'python-aiohttp' 'python-ghp-import'
+'python-husl' 'python-ipykernel' 'python-jinja' 'python-micawber'
+'python-phpserialize' 'python-pygal' 'python-pyphen' 'python-ruamel-yaml'
+'python-toml' 'python-typogrify' 'python-watchdog')
+checkdepends=('python-freezegun' 'python-pytest')
+optdepends=('jupyter-notebook: for .ipynb support'
+            'python-aiohttp: for `nikola auto`'
+            'python-ghp-import: for upload to Github pages'
+            'python-husl: for optional color support'
+            'python-ipykernel: for .ipynb support'
+            'python-jinja: for jinja2 based themes'
+            'python-micawber: for embedding media in posts'
+            'python-phpserialize: for Wordpress import'
+            'python-pygal: for SVG graph plotting'
+            'python-pyphen: for hyphenation support'
+            'python-ruamel-yaml: for YAML support'
+            'python-toml: for TOML support'
+            'python-typogrify: for typographical enhancements'
+            'python-watchdog: for `nikola auto`')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc})
+sha512sums=('a833cb7687077266a20f7043f99b03391f350b48ceea71250158e760b0e44b603de1d6e398a03ec848483775501ad248b6ac45a23ceb250d120a63f110d482b5'
+            'SKIP')
+validpgpkeys=('DF32C99CFF84282CF9D4CF7171023DBD5EAAEA16') # Chris Warrick <kwpolska at gmail.com>
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  # remove options to pytest so that we don't require python-coverage et. al.
+  sed -e '/addopts/d' -i setup.cfg
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+  # shell completions
+  PYTHONPATH="build" \
+  python -m "${pkgname}" tabcompletion \
+    --shell bash \
+    --hardcode-tasks \
+    > "${pkgname}_bash"
+  PYTHONPATH="build" \
+  python -m "${pkgname}" tabcompletion \
+    --shell zsh \
+    --hardcode-tasks \
+    > "${pkgname}_zsh"
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  # disabling failing test: https://github.com/getnikola/nikola/issues/3432
+  pytest -vv -k 'not test_compiling_markdown[hilite]' tests/
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 LICENSE.txt \
+    -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 {AUTHORS,CHANGES}.txt {CONTRIBUTING,README}.rst \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 "${pkgname}_bash" \
+    "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
+  install -vDm 644 "${pkgname}_zsh" \
+    "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
+  # removing tests as a top-level module
+  # https://github.com/getnikola/nikola/issues/3348
+  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  rm -rvf "${pkgdir}/${site_packages}/tests"
+}



More information about the arch-commits mailing list