Date: Wednesday, June 27, 2018 @ 14:28:58 Author: felixonmars Revision: 346371
archrelease: copy trunk to community-any Added: python-oslotest/repos/community-any/PKGBUILD (from rev 346370, python-oslotest/trunk/PKGBUILD) Deleted: python-oslotest/repos/community-any/PKGBUILD ----------+ PKGBUILD | 130 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 65 insertions(+), 65 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-06-27 14:28:38 UTC (rev 346370) +++ PKGBUILD 2018-06-27 14:28:58 UTC (rev 346371) @@ -1,65 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-oslotest -pkgname=(python-oslotest python2-oslotest) -pkgver=3.5.0 -pkgrel=1 -pkgdesc="Oslo test framework" -arch=('any') -url="https://github.com/openstack/oslotest" -license=('Apache') -makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-fixtures' - 'python2-fixtures' 'python-subunit' 'python2-subunit' 'python-testrepository' - 'python2-testrepository' 'python-testscenarios' 'python2-testscenarios' - 'python-testtools' 'python2-testtools' 'python-mock' 'python2-mock' 'python-mox3' - 'python2-mox3' 'python-os-client-config' 'python2-os-client-config' - 'python-debtcollector' 'python2-debtcollector') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslotest/archive/$pkgver.tar.gz") -sha512sums=('7e6abec2154af980a80964c155e8b738476c68d8ddff6681c8271764d72ee9fb951e2bed3f5504f3bc28656be98dd73cec4b9dca8376f78a9366c459bd65eeff') - -prepare() { - cp -a oslotest-$pkgver{,-py2} - - export PBR_VERSION=$pkgver -} - -build() { - cd "$srcdir"/oslotest-$pkgver - python setup.py build - - cd "$srcdir"/oslotest-$pkgver-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/oslotest-$pkgver - python setup.py testr - - cd "$srcdir"/oslotest-$pkgver-py2 - PYTHON=python2 python2 setup.py testr -} - -package_python-oslotest() { - depends=('python-fixtures' 'python-subunit' 'python-testrepository' 'python-testscenarios' - 'python-testtools' 'python-mock' 'python-mox3' 'python-os-client-config' - 'python-debtcollector') - - cd "$srcdir"/oslotest-$pkgver - python setup.py install --root="$pkgdir/" --optimize=1 -} - -package_python2-oslotest() { - depends=('python2-fixtures' 'python2-subunit' 'python2-testrepository' 'python2-testscenarios' - 'python2-testtools' 'python2-mock' 'python2-mox3' 'python2-os-client-config' - 'python2-debtcollector') - - cd "$srcdir"/oslotest-$pkgver-py2 - python2 setup.py install --root="$pkgdir/" --optimize=1 - - for _exe in "$pkgdir"/usr/bin/*; do - mv "$_exe"{,2} - done -} - -# vim:set ts=2 sw=2 et: Copied: python-oslotest/repos/community-any/PKGBUILD (from rev 346370, python-oslotest/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-06-27 14:28:58 UTC (rev 346371) @@ -0,0 +1,65 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-oslotest +pkgname=(python-oslotest python2-oslotest) +pkgver=3.6.0 +pkgrel=1 +pkgdesc="Oslo test framework" +arch=('any') +url="https://github.com/openstack/oslotest" +license=('Apache') +makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-fixtures' + 'python2-fixtures' 'python-subunit' 'python2-subunit' 'python-stestr' + 'python2-stestr' 'python-testscenarios' 'python2-testscenarios' + 'python-testtools' 'python2-testtools' 'python-mock' 'python2-mock' 'python-mox3' + 'python2-mox3' 'python-os-client-config' 'python2-os-client-config' + 'python-debtcollector' 'python2-debtcollector') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslotest/archive/$pkgver.tar.gz") +sha512sums=('9dce5ddce5801e28944cba108ffb97c17ad92159cbbbc21466559d895dd37ca90674c30f814566c431c3917ba6208c38e0faee981267667cdf999f99e3f89562') + +prepare() { + cp -a oslotest-$pkgver{,-py2} + + export PBR_VERSION=$pkgver +} + +build() { + cd "$srcdir"/oslotest-$pkgver + python setup.py build + + cd "$srcdir"/oslotest-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/oslotest-$pkgver + stestr run + + cd "$srcdir"/oslotest-$pkgver-py2 + stestr2 run +} + +package_python-oslotest() { + depends=('python-fixtures' 'python-subunit' 'python-stestr' 'python-testscenarios' + 'python-testtools' 'python-mock' 'python-mox3' 'python-os-client-config' + 'python-debtcollector') + + cd "$srcdir"/oslotest-$pkgver + python setup.py install --root="$pkgdir/" --optimize=1 +} + +package_python2-oslotest() { + depends=('python2-fixtures' 'python2-subunit' 'python2-stestr' 'python2-testscenarios' + 'python2-testtools' 'python2-mock' 'python2-mox3' 'python2-os-client-config' + 'python2-debtcollector') + + cd "$srcdir"/oslotest-$pkgver-py2 + python2 setup.py install --root="$pkgdir/" --optimize=1 + + for _exe in "$pkgdir"/usr/bin/*; do + mv "$_exe"{,2} + done +} + +# vim:set ts=2 sw=2 et: