Date: Monday, March 16, 2020 @ 12:35:43 Author: felixonmars Revision: 599706
upgpkg: python-argh 0.26.2-6: remove python2 sibling Modified: python-argh/trunk/PKGBUILD ----------+ PKGBUILD | 39 ++++++++++----------------------------- 1 file changed, 10 insertions(+), 29 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-03-16 12:31:17 UTC (rev 599705) +++ PKGBUILD 2020-03-16 12:35:43 UTC (rev 599706) @@ -1,49 +1,30 @@ # Maintainer: Felix Yan <[email protected]> # Contributor: Francois Boulogne <fboulogne at april dot org> -pkgname=('python-argh' 'python2-argh') +pkgname=python-argh pkgver=0.26.2 -pkgrel=5 +pkgrel=6 pkgdesc="An unobtrusive argparse wrapper with natural syntax" arch=(any) url="https://pypi.python.org/pypi/argh" license=('LGPL3') -makedepends=('python-setuptools' 'python2-setuptools' 'git') -checkdepends=('python-pytest' 'python2-pytest' 'python-mock' 'python2-mock' - 'python-iocapture' 'python2-iocapture') -source=("git+https://github.com/neithere/argh.git#tag=v$pkgver") +depends=('python') +makedepends=('python-setuptools') +checkdepends=('python-pytest' 'python-mock' 'python-iocapture') +source=("https://github.com/neithere/argh/archive/v$pkgver/$pkgname-$pkgver.tar.gz") sha256sums=('SKIP') -prepare() { - cp -a argh{,-py2} -} - build() { - cd "$srcdir"/argh + cd argh-$pkgver python setup.py build - - cd "$srcdir"/argh-py2 - python2 setup.py build } check() { - cd "$srcdir"/argh + cd argh-$pkgver py.test - - cd "$srcdir"/argh-py2 - LC_CTYPE=en_US.UTF-8 py.test2 } -package_python-argh() { - depends=('python') - - cd argh +package() { + cd argh-$pkgver python setup.py install --root="$pkgdir" --optimize=1 } - -package_python2-argh() { - depends=('python2') - - cd argh-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 -}
