Date: Thursday, November 17, 2022 @ 14:13:59 Author: yan12125 Revision: 1349327
upgpkg: python-unidiff 0.7.4-2; switch to GitHub archive for test files Closes https://bugs.archlinux.org/task/76594 Modified: python-unidiff/trunk/PKGBUILD ----------+ PKGBUILD | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-11-17 14:00:24 UTC (rev 1349326) +++ PKGBUILD 2022-11-17 14:13:59 UTC (rev 1349327) @@ -5,7 +5,7 @@ pkgname=python-unidiff # https://github.com/matiasb/python-unidiff/blob/master/HISTORY pkgver=0.7.4 -pkgrel=1 +pkgrel=2 pkgdesc='Simple Python library to parse and interact with unified diff data' arch=('any') url="https://github.com/matiasb/python-unidiff" @@ -12,21 +12,22 @@ license=('MIT') depends=('python') makedepends=('python-setuptools') -source=("https://files.pythonhosted.org/packages/source/u/unidiff/unidiff-$pkgver.tar.gz") -sha256sums=('2bbcbc986e1fb97f04b1d7b864aa6002ab02f4d8a996bf03aa6e5a81447d1fc5') +# PyPI tarballs is missing tests https://github.com/matiasb/python-unidiff/pull/61 https://github.com/matiasb/python-unidiff/issues/99 +source=("https://github.com/matiasb/python-unidiff/archive/v$pkgver/python-unidiff-$pkgver.zip") +sha256sums=('781868e760d2933facdd40b24f5733d4c6f9fa9ba3128dfecba3d2c94db48e0b') build() { - cd unidiff-$pkgver + cd python-unidiff-$pkgver python setup.py build } check() { - cd unidiff-$pkgver + cd python-unidiff-$pkgver python -m unittest discover -s tests } package() { - cd unidiff-$pkgver + cd python-unidiff-$pkgver python setup.py install --root="$pkgdir" --optimize=1 --skip-build install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname }
