Date: Wednesday, September 2, 2020 @ 18:35:01 Author: dvzrv Revision: 696776
upgpkg: python-doit 0.33.0-1: Upgrade to 0.33.0. Run all tests again. Switch tarball source to github as upstream has not included the tests in the pypi sdist tarball. Minor cleanups. Modified: python-doit/trunk/PKGBUILD ----------+ PKGBUILD | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-09-02 18:34:14 UTC (rev 696775) +++ PKGBUILD 2020-09-02 18:35:01 UTC (rev 696776) @@ -1,7 +1,8 @@ # Maintainer: David Runge <dv...@archlinux.org> + _name=doit pkgname=python-doit -pkgver=0.32.0 +pkgver=0.33.0 pkgrel=1 pkgdesc="A task management and automation tool" arch=('any') @@ -8,15 +9,18 @@ url="https://pydoit.org/" license=('MIT') depends=('python-cloudpickle' 'python-pyinotify' 'python-setuptools') -checkdepends=('flake8' 'python-coverage' 'python-pytest') +checkdepends=('python-doit-py' 'python-pyflakes' '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') +# 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" - cd "$pkgname-$pkgver" } build() { @@ -24,20 +28,17 @@ 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' + export PYTHONPATH="build/lib:${PYTHONPATH}" + pytest -v } package() { cd "$pkgname-$pkgver" python setup.py install --skip-build \ - --optimize=1 \ - --prefix=/usr \ - --root="${pkgdir}" + --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}"