Date: Monday, September 25, 2017 @ 16:32:09 Author: felixonmars Revision: 260565
archrelease: copy trunk to community-any Added: python-oslotest/repos/community-any/PKGBUILD (from rev 260564, python-oslotest/trunk/PKGBUILD) Deleted: python-oslotest/repos/community-any/PKGBUILD ----------+ PKGBUILD | 130 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 65 insertions(+), 65 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-09-25 16:31:26 UTC (rev 260564) +++ PKGBUILD 2017-09-25 16:32:09 UTC (rev 260565) @@ -1,65 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-oslotest -pkgname=(python-oslotest python2-oslotest) -pkgver=2.18.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=('fe2fafba3b38940b5551929101d7216d2a507a0b2aac4a8fd58fac17a0c3fe6ee075d6a701ff2fd581d4fb9487db8c8b315f328b452c7f66dbbddbd13c614b93') - -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 260564, python-oslotest/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-09-25 16:32:09 UTC (rev 260565) @@ -0,0 +1,65 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-oslotest +pkgname=(python-oslotest python2-oslotest) +pkgver=2.18.1 +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=('374891e8ff664b9daad859f1dc5b0ff54038a4b32f2e31b210d8196f0a5b50ff489ab645e5a63ea0c9148595f0143ec738b44cbd0b88324c8cf7b236fba00c46') + +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: