[arch-commits] Commit in python-oslo-i18n/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Oct 26 04:11:51 UTC 2019


    Date: Saturday, October 26, 2019 @ 04:11:50
  Author: felixonmars
Revision: 519931

archrelease: copy trunk to community-staging-any

Added:
  python-oslo-i18n/repos/community-staging-any/
  python-oslo-i18n/repos/community-staging-any/PKGBUILD
    (from rev 519929, python-oslo-i18n/trunk/PKGBUILD)

----------+
 PKGBUILD |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

Copied: python-oslo-i18n/repos/community-staging-any/PKGBUILD (from rev 519929, python-oslo-i18n/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 04:11:50 UTC (rev 519931)
@@ -0,0 +1,56 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-oslo-i18n
+pkgname=(python-oslo-i18n python2-oslo-i18n)
+pkgver=3.24.0
+pkgrel=2
+pkgdesc="Oslo i18n library"
+arch=('any')
+url="https://pypi.python.org/pypi/oslo.i18n/$pkgver"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-babel'
+             'python2-babel')
+checkdepends=('python-mock' 'python2-mock' 'python-oslotest' 'python2-oslotest' 'python-oslo-config'
+              'python2-oslo-config')
+options=('!emptydirs')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslo.i18n/archive/$pkgver.tar.gz")
+sha512sums=('7734a46ec186073978d804a44ac8f97f474c5873e54e5443345db583f365627b7f0756cf559086dcc5b2612a4f7871491fac1029d85d1b0a3a9a1d6ab69fa628')
+
+prepare() {
+  cp -a oslo.i18n-$pkgver{,-py2}
+
+  export PBR_VERSION=$pkgver
+}
+
+build() {
+  cd "$srcdir"/oslo.i18n-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/oslo.i18n-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/oslo.i18n-$pkgver
+  stestr run
+
+  cd "$srcdir"/oslo.i18n-$pkgver-py2
+  PYTHON=python2 stestr2 run
+}
+
+package_python-oslo-i18n() {
+  depends=('python-six' 'python-pbr' 'python-babel')
+
+  cd "$srcdir"/oslo.i18n-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-oslo-i18n() {
+  depends=('python2-six' 'python2-pbr' 'python2-babel')
+
+  cd "$srcdir"/oslo.i18n-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list