Date: Friday, February 26, 2016 @ 07:11:58 Author: fyan Revision: 163465
addpkg: python-oslotest 2.3.0-1 Added: python-oslotest/ python-oslotest/repos/ python-oslotest/trunk/ python-oslotest/trunk/PKGBUILD ----------+ PKGBUILD | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) Added: python-oslotest/trunk/PKGBUILD =================================================================== --- python-oslotest/trunk/PKGBUILD (rev 0) +++ python-oslotest/trunk/PKGBUILD 2016-02-26 06:11:58 UTC (rev 163465) @@ -0,0 +1,64 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-oslotest +pkgname=(python-oslotest python2-oslotest) +pkgver=2.3.0 +pkgrel=1 +pkgdesc="Oslo test framework" +arch=('any') +url="https://github.com/openstack/oslotest" +license=('Apache') +makedepends=('git' '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=("git+https://github.com/openstack/oslotest.git#tag=$pkgver") +md5sums=('SKIP') + +prepare() { + cp -a oslotest{,-py2} +} + +build() { + cd "$srcdir"/oslotest + python setup.py build + + cd "$srcdir"/oslotest-py2 + python2 setup.py build +} + +build() { + cd "$srcdir"/oslotest + python setup.py testr + + cd "$srcdir"/oslotest-py2 + 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 + 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-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: Property changes on: python-oslotest/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property