Date: Tuesday, February 11, 2020 @ 17:23:56 Author: felixonmars Revision: 567818
archrelease: copy trunk to community-any Added: python-oslo-context/repos/community-any/PKGBUILD (from rev 567815, python-oslo-context/trunk/PKGBUILD) Deleted: python-oslo-context/repos/community-any/PKGBUILD ----------+ PKGBUILD | 110 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 55 insertions(+), 55 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-02-11 17:23:52 UTC (rev 567817) +++ PKGBUILD 2020-02-11 17:23:56 UTC (rev 567818) @@ -1,55 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com> - -pkgbase=python-oslo-context -pkgname=(python-oslo-context python2-oslo-context) -pkgver=2.23.0 -pkgrel=3 -pkgdesc="OpenStack Context library" -arch=('any') -url="https://pypi.python.org/pypi/oslo.context/$pkgver" -license=('Apache') -makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-debtcollector' - 'python2-debtcollector') -checkdepends=('python-mock' 'python2-mock' 'python-oslotest' 'python2-oslotest') -options=('!emptydirs') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslo.context/archive/$pkgver.tar.gz") -sha512sums=('429ba2796ad331729f7a06bb5829912ce275948a430b0f115573da6bb53af476c4edefc46f899ba551f6e50a0ee5f13392b7f457b2698777254f43290c6035a3') - -prepare() { - cp -a oslo.context-$pkgver{,-py2} - - export PBR_VERSION=$pkgver -} - -build() { - cd "$srcdir"/oslo.context-$pkgver - python setup.py build - - cd "$srcdir"/oslo.context-$pkgver-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/oslo.context-$pkgver - stestr run - - cd "$srcdir"/oslo.context-$pkgver-py2 - PYTHON=python2 stestr2 run -} - -package_python-oslo-context() { - depends=('python-pbr' 'python-debtcollector') - - cd "$srcdir"/oslo.context-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 -} - -package_python2-oslo-context() { - depends=('python2-pbr' 'python2-debtcollector') - - cd "$srcdir"/oslo.context-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 -} - -# vim:set ts=2 sw=2 et: Copied: python-oslo-context/repos/community-any/PKGBUILD (from rev 567815, python-oslo-context/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-02-11 17:23:56 UTC (rev 567818) @@ -0,0 +1,55 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com> + +pkgbase=python-oslo-context +pkgname=(python-oslo-context python2-oslo-context) +pkgver=3.0.0 +pkgrel=1 +pkgdesc="OpenStack Context library" +arch=('any') +url="https://pypi.python.org/pypi/oslo.context/$pkgver" +license=('Apache') +makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-debtcollector' + 'python2-debtcollector') +checkdepends=('python-mock' 'python2-mock' 'python-oslotest' 'python2-oslotest') +options=('!emptydirs') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslo.context/archive/$pkgver.tar.gz") +sha512sums=('7e8f1e4cb0d84466e6ce15052f136e922125cc5f434d0fb8ae109e743e8ed7cbd2caf6600b5ee70ef724c808483eb0331f738bee1625f1f931316ab56bf6143d') + +prepare() { + cp -a oslo.context-$pkgver{,-py2} + + export PBR_VERSION=$pkgver +} + +build() { + cd "$srcdir"/oslo.context-$pkgver + python setup.py build + + cd "$srcdir"/oslo.context-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/oslo.context-$pkgver + stestr run + + cd "$srcdir"/oslo.context-$pkgver-py2 + PYTHON=python2 stestr2 run +} + +package_python-oslo-context() { + depends=('python-pbr' 'python-debtcollector') + + cd "$srcdir"/oslo.context-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-oslo-context() { + depends=('python2-pbr' 'python2-debtcollector') + + cd "$srcdir"/oslo.context-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +} + +# vim:set ts=2 sw=2 et: