Date: Tuesday, February 25, 2020 @ 10:36:43 Author: felixonmars Revision: 580986
upgpkg: python-fixtures 3.0.0-8: remove python2 sibling Modified: python-fixtures/trunk/PKGBUILD ----------+ PKGBUILD | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-02-25 10:35:16 UTC (rev 580985) +++ PKGBUILD 2020-02-25 10:36:43 UTC (rev 580986) @@ -1,29 +1,20 @@ # Maintainer: Felix Yan <[email protected]> -pkgbase=python-fixtures -pkgname=('python-fixtures' 'python2-fixtures') +pkgname=python-fixtures pkgver=3.0.0 -pkgrel=7 +pkgrel=8 pkgdesc="Fixtures, reusable state for writing clean tests and more" arch=('any') license=('Apache') url="https://launchpad.net/python-fixtures" -makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' - 'python-six' 'python2-six' 'python-testtools' 'python2-testtools') +depends=('python-pbr' 'python-six' 'python-testtools') checkdepends=('python-subunit' 'python-mock') source=("https://pypi.io/packages/source/f/fixtures/fixtures-$pkgver.tar.gz") sha512sums=('e52ba864c42d15a8baa60583761006b2dd78e3cd5f3f043f5702346aef428b933d62e8fa5889b7cb4196e4072acc5df3b7ffa39702a1b782887bdc109299b695') -prepare() { - cp -a fixtures-$pkgver{,-py2} -} - build() { - cd "$srcdir"/fixtures-$pkgver + cd fixtures-$pkgver python setup.py build - - cd "$srcdir"/fixtures-$pkgver-py2 - python2 setup.py build } check() { @@ -31,16 +22,7 @@ python -m testtools.run fixtures.test_suite } -package_python-fixtures() { - depends=('python-pbr' 'python-six' 'python-testtools') - +package() { cd fixtures-$pkgver python setup.py install --root="$pkgdir" --optimize=1 } - -package_python2-fixtures() { - depends=('python2-pbr' 'python2-six' 'python2-testtools') - - cd fixtures-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 -}
