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

David Runge dvzrv at archlinux.org
Sun Jun 14 21:36:18 UTC 2020


    Date: Sunday, June 14, 2020 @ 21:36:18
  Author: dvzrv
Revision: 644726

archrelease: copy trunk to community-any

Added:
  todoman/repos/community-any/PKGBUILD
    (from rev 644725, todoman/trunk/PKGBUILD)
Deleted:
  todoman/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  121 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 61 insertions(+), 60 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-14 21:36:12 UTC (rev 644725)
+++ PKGBUILD	2020-06-14 21:36:18 UTC (rev 644726)
@@ -1,60 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-pkgname=todoman
-pkgver=3.8.0
-pkgrel=1
-pkgdesc="A simple, standards-based, cli todo (aka: task) manager"
-arch=('any')
-url="https://github.com/pimutils/todoman"
-license=('ISC')
-depends=('python-atomicwrites' 'python-click' 'python-click-log'
-'python-configobj' 'python-dateutil' 'python-humanize' 'python-icalendar'
-'python-parsedatetime' 'python-pyxdg' 'python-setuptools' 'python-tabulate'
-'python-urwid')
-checkdepends=('python-freezegun' 'python-hypothesis' 'python-pytest'
-'python-pytest-runner')
-optdepends=('bash-completion: auto-complete in bash'
-            'python-click-repl: REPL command'
-            'zsh-completions: auto-complete in zsh')
-source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('67cb498265fdb802ca0993618ae8e06918d0440d6f1092d155571d85a507f098e9e172e852b82f3854a965d72c57aba749ad964922f274be03181def4a527198')
-
-prepare() {
-  cd "$pkgname-$pkgver"
-  # remove interfering options to pytest
-  sed -e '/addopts/d' -i setup.cfg
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  export PYTHONPATH="build:${PYTHONPATH}"
-  # ignoring broken tests: https://github.com/pimutils/todoman/issues/404
-  pytest -v -k 'not test_default_due2 and not test_parse_datetime and not test_list_due_date'
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  # docs
-  install -vDm 644 {AUTHORS,CHANGELOG,CODE_OF_CONDUCT,README}.rst \
-    -t "${pkgdir}/usr/share/doc/${pkgname}/"
-  # license
-  # wrong name: https://github.com/pimutils/todoman/issues/319
-  install -vDm 644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-  # sample config
-  install -vDm 644 "${pkgname}.conf.sample" \
-    -t "${pkgdir}/usr/share/doc/${pkgname}/examples/"
-  # completions
-  install -vDm 644 contrib/completion/bash/_todo \
-    "${pkgdir}/usr/share/bash-completion/completions/todo"
-  install -vDm 644 contrib/completion/zsh/_todo \
-    "${pkgdir}/usr/share/zsh/site-functions/_todo"
-}

Copied: todoman/repos/community-any/PKGBUILD (from rev 644725, todoman/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-06-14 21:36:18 UTC (rev 644726)
@@ -0,0 +1,61 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=todoman
+pkgver=3.8.0
+pkgrel=2
+pkgdesc="A simple, standards-based, cli todo (aka: task) manager"
+arch=('any')
+url="https://github.com/pimutils/todoman"
+license=('ISC')
+depends=('python-atomicwrites' 'python-click' 'python-click-log'
+'python-configobj' 'python-dateutil' 'python-humanize' 'python-icalendar'
+'python-parsedatetime' 'python-pyxdg' 'python-setuptools' 'python-tabulate'
+'python-urwid')
+checkdepends=('python-freezegun' 'python-hypothesis' 'python-pytest'
+'python-pytest-runner')
+optdepends=('bash-completion: auto-complete in bash'
+            'python-click-repl: REPL command'
+            'zsh-completions: auto-complete in zsh')
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('67cb498265fdb802ca0993618ae8e06918d0440d6f1092d155571d85a507f098e9e172e852b82f3854a965d72c57aba749ad964922f274be03181def4a527198')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  # remove interfering options to pytest
+  sed -e '/addopts/d' -i setup.cfg
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  # tests require timezone to be set to UTC
+  # https://github.com/pimutils/todoman/issues/404
+  TZ="UTC" pytest -v
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  # docs
+  install -vDm 644 {AUTHORS,CHANGELOG,CODE_OF_CONDUCT,README}.rst \
+    -t "${pkgdir}/usr/share/doc/${pkgname}/"
+  # license
+  # wrong name: https://github.com/pimutils/todoman/issues/319
+  install -vDm 644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  # sample config
+  install -vDm 644 "${pkgname}.conf.sample" \
+    -t "${pkgdir}/usr/share/doc/${pkgname}/examples/"
+  # completions
+  install -vDm 644 contrib/completion/bash/_todo \
+    "${pkgdir}/usr/share/bash-completion/completions/todo"
+  install -vDm 644 contrib/completion/zsh/_todo \
+    "${pkgdir}/usr/share/zsh/site-functions/_todo"
+}



More information about the arch-commits mailing list