Date: Wednesday, August 21, 2019 @ 03:20:12 Author: felixonmars Revision: 500380
upgpkg: python-betamax-matchers 0.4.0-3 remove python2 sibling Modified: python-betamax-matchers/trunk/PKGBUILD ----------+ PKGBUILD | 38 ++++++++++---------------------------- 1 file changed, 10 insertions(+), 28 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-08-21 03:17:08 UTC (rev 500379) +++ PKGBUILD 2019-08-21 03:20:12 UTC (rev 500380) @@ -1,43 +1,25 @@ # Maintainer: Felix Yan <[email protected]> -pkgbase=python-betamax-matchers -pkgname=('python-betamax-matchers' 'python2-betamax-matchers') +pkgname=python-betamax-matchers pkgver=0.4.0 -pkgrel=2 +pkgrel=3 pkgdesc="Experimental set of Matchers for Betamax that may possibly end up in the main package" arch=('any') license=('GPL') url='https://github.com/sigmavirus24/betamax_matchers' -makedepends=('python-setuptools' 'python2-setuptools' 'python-betamax' 'python2-betamax' - 'python-requests-toolbelt' 'python2-requests-toolbelt' 'git') -checkdepends=('python-pytest-runner' 'python2-pytest-runner') -source=("git+https://github.com/sigmavirus24/betamax_matchers.git#tag=$pkgver") -md5sums=('SKIP') +depends=('python-requests-toolbelt' 'python-betamax') +makedepends=('python-setuptools') +checkdepends=('python-pytest-runner') +source=("$pkgname-$pkgver.tar.gz::https://github.com/sigmavirus24/betamax_matchers/archive/$pkgver.tar.gz") +sha512sums=('202255d9895b118d03efa20aa64f5b099045750dcb9a1ad3eda164d3da372207f1bee8a40f63cdf179da90cfc4380e5a004e5f9c94f006a6f3dbc64e29766c86') -prepare() { - cp -a betamax_matchers{,-py2} -} - check() { - cd "$srcdir"/betamax_matchers + cd betamax_matchers-$pkgver python setup.py pytest - - cd "$srcdir"/betamax_matchers-py2 - python2 setup.py pytest } -package_python-betamax-matchers() { - depends=('python-requests-toolbelt' 'python-betamax') - - cd betamax_matchers +package() { + cd betamax_matchers-$pkgver python setup.py install --root="$pkgdir" --optimize=1 install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } - -package_python2-betamax-matchers() { - depends=('python2-requests-toolbelt' 'python2-betamax') - - cd betamax_matchers-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -}
