[arch-commits] Commit in python-doit/repos/community-any (PKGBUILD PKGBUILD)
David Runge
dvzrv at archlinux.org
Wed Sep 2 18:35:22 UTC 2020
Date: Wednesday, September 2, 2020 @ 18:35:21
Author: dvzrv
Revision: 696778
archrelease: copy trunk to community-any
Added:
python-doit/repos/community-any/PKGBUILD
(from rev 696777, python-doit/trunk/PKGBUILD)
Deleted:
python-doit/repos/community-any/PKGBUILD
----------+
PKGBUILD | 97 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 49 insertions(+), 48 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-09-02 18:35:19 UTC (rev 696777)
+++ PKGBUILD 2020-09-02 18:35:21 UTC (rev 696778)
@@ -1,48 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-_name=doit
-pkgname=python-doit
-pkgver=0.32.0
-pkgrel=1
-pkgdesc="A task management and automation tool"
-arch=('any')
-url="https://pydoit.org/"
-license=('MIT')
-depends=('python-cloudpickle' 'python-pyinotify' 'python-setuptools')
-checkdepends=('flake8' 'python-coverage' 'python-pytest')
-optdepends=('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=('d5c28a0c6a38648aeef58027b2246fc26360e133e91933f2244bd484f70d6d26110acbfec19c74d53c796e0bbae07a4bf6d76542d45e8b1a6b503c186bf2a68a')
-
-prepare() {
- mv -v "$_name-$pkgver" "$pkgname-$pkgver"
- cd "$pkgname-$pkgver"
-}
-
-build() {
- cd "$pkgname-$pkgver"
- python setup.py build
-}
-
-# tests are broken:
-# https://github.com/pydoit/doit/issues/342
-check() {
- cd "$pkgname-$pkgver"
- export PYTHONPATH="${PWD}/build/lib:${PYTHONPATH}"
- py.test -k 'not test_execute and not test_not_picklable_raises_InvalidTask'
-}
-
-package() {
- cd "$pkgname-$pkgver"
- python setup.py install --skip-build \
- --optimize=1 \
- --prefix=/usr \
- --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 696777, python-doit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-09-02 18:35:21 UTC (rev 696778)
@@ -0,0 +1,49 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=doit
+pkgname=python-doit
+pkgver=0.33.0
+pkgrel=1
+pkgdesc="A task management and automation tool"
+arch=('any')
+url="https://pydoit.org/"
+license=('MIT')
+depends=('python-cloudpickle' 'python-pyinotify' 'python-setuptools')
+checkdepends=('python-doit-py' 'python-pyflakes' 'python-pytest')
+optdepends=('bash-completion: autocomplete for bash'
+ 'zsh-completions: autocomplete for ZSH')
+# tests missing in pypi sdist:
+# https://github.com/pydoit/doit/issues/371
+# source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pydoit/${_name}/archive/${pkgver}.tar.gz")
+sha512sums=('4a1ad9717c4bc55fddb2509dc818e163fcd8b7a88702c599bd7ffce752b6a7fc56c135bfd1f8e82621890878a61cc25c2c001f678d3b24be34a2ab1bc5fa6282')
+b2sums=('d49dc0d6210d15923f4b856b4fc74fbdcbb37567f4c69c0e1c388e9a5a9f502f69af75090fe768563a391ced0a2bbe4b5fd77cf54b6bc3557d1d8a3f8f90efda')
+
+prepare() {
+ mv -v "$_name-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="build/lib:${PYTHONPATH}"
+ pytest -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --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}"
+}
More information about the arch-commits
mailing list