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

David Runge dvzrv at gemini.archlinux.org
Thu Apr 7 21:34:11 UTC 2022


    Date: Thursday, April 7, 2022 @ 21:34:11
  Author: dvzrv
Revision: 1182861

archrelease: copy trunk to community-any

Added:
  python-doit/repos/community-any/PKGBUILD
    (from rev 1182860, python-doit/trunk/PKGBUILD)
Deleted:
  python-doit/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   84 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 42 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-07 21:34:04 UTC (rev 1182860)
+++ PKGBUILD	2022-04-07 21:34:11 UTC (rev 1182861)
@@ -1,42 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=doit
-pkgname=python-doit
-pkgver=0.34.2
-pkgrel=1
-pkgdesc="A task management and automation tool"
-arch=(any)
-url="https://pydoit.org/"
-license=(MIT)
-depends=(python-cloudpickle python-pyinotify)
-makedepends=(python-setuptools)
-checkdepends=(python-doit-py python-pyflakes python-pytest)
-optdepends=(
-  'python-toml: for TOML support'
-  'python-setuptools: for plugin support'
-  'bash-completion: autocomplete for bash'
-  'zsh-completions: autocomplete for ZSH'
-)
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha512sums=('24afc8078fef42a446733554c6ab63298ee5bb734381fc2bfc9d623dc98394916a1f89a18bb28e7ef862da8c0449b5cf16d605295e8948a0ea6968a231a1c8e2')
-b2sums=('c7d81144da99147dbc6bf7d670b6f411879a8080e405866866bc97ae4701d9a47a3d4882db9672e2e36bc8af577ba9632da1fb4ed2c9f87717f719ac1cd53d34')
-
-build() {
-  cd $_name-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd $_name-$pkgver
-  export PYTHONPATH="build/lib:$PYTHONPATH"
-  pytest -v
-}
-
-package() {
-  cd $_name-$pkgver
-  python setup.py install --optimize=1 --root="$pkgdir"
-  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
-  install -vDm 644 {AUTHORS,CHANGES,CONTRIBUTING.md,README.rst} -t "$pkgdir/usr/share/doc/$pkgname"
-  install -vDm 644 bash_completion_$_name "$pkgdir/usr/share/bash-completion/completions/$_name"
-  install -vDm 644 zsh_completion_$_name "$pkgdir/usr/share/zsh/site-functions/_$_name"
-}

Copied: python-doit/repos/community-any/PKGBUILD (from rev 1182860, python-doit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-07 21:34:11 UTC (rev 1182861)
@@ -0,0 +1,42 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=doit
+pkgname=python-doit
+pkgver=0.35.0
+pkgrel=1
+pkgdesc="A task management and automation tool"
+arch=(any)
+url="https://pydoit.org/"
+license=(MIT)
+depends=(python-cloudpickle python-pyinotify)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-doit-py python-pyflakes python-pytest python-toml)
+optdepends=(
+  'python-toml: for TOML support'
+  'python-setuptools: for plugin support'
+  'bash-completion: autocomplete for bash'
+  'zsh-completions: autocomplete for ZSH'
+)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('3eb3fc0284c4779db47c56c9e21bda16e31d053214f4a0272c1a26c9fd26bc0de7d00601bb08a79a3d0ed403464e773c03fe93d0fcd9ee59812c396e0f4ed7e6')
+b2sums=('db0c1c9245897ca9c4ce4d3f5f43e5f2e5035c36cc4bd15e63d6fb9e69992b5068ca24839a02485680cdc75ba62cb95f139f6fd0ec24c1f26fd4c4b2e4fce27e')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_name-$pkgver
+  export PYTHONPATH="build/lib:$PYTHONPATH"
+  pytest -vv
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+  install -vDm 644 {AUTHORS,CHANGES,CONTRIBUTING.md,README.rst} -t "$pkgdir/usr/share/doc/$pkgname"
+  install -vDm 644 bash_completion_$_name "$pkgdir/usr/share/bash-completion/completions/$_name"
+  install -vDm 644 zsh_completion_$_name "$pkgdir/usr/share/zsh/site-functions/_$_name"
+}



More information about the arch-commits mailing list