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

Evangelos Foutras foutrelis at archlinux.org
Sat Oct 26 06:19:05 UTC 2019


    Date: Saturday, October 26, 2019 @ 06:19:03
  Author: foutrelis
Revision: 520261

archrelease: copy trunk to community-staging-any

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

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

Copied: python-oslo-serialization/repos/community-staging-any/PKGBUILD (from rev 520260, python-oslo-serialization/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 06:19:03 UTC (rev 520261)
@@ -0,0 +1,56 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-oslo-serialization
+pkgname=(python-oslo-serialization python2-oslo-serialization)
+pkgver=2.29.2
+pkgrel=2
+pkgdesc="Oslo Serialization library"
+arch=('any')
+url="https://docs.openstack.org/developer/oslo.serialization"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-babel'
+             'python2-babel' 'python-msgpack' 'python2-msgpack' 'python-oslo-utils'
+             'python2-oslo-utils' 'python-pytz' 'python2-pytz')
+checkdepends=('python-oslotest' 'python2-oslotest' 'python2-ipaddress')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslo.serialization/archive/$pkgver.tar.gz")
+sha512sums=('62d18c582406d5e0d4c8927d0a598f819744d3ebf11065aa88689d963c7fc3ba0234897b61d714646ca908e181b5005f97acf098407aa021ea757ebb3e070082')
+
+export PBR_VERSION=$pkgver
+
+prepare() {
+  cp -a oslo.serialization-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/oslo.serialization-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/oslo.serialization-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/oslo.serialization-$pkgver
+  stestr run
+
+  cd "$srcdir"/oslo.serialization-$pkgver-py2
+  PYTHON=python2 stestr2 run
+}
+
+package_python-oslo-serialization() {
+  depends=('python-six' 'python-pbr' 'python-babel' 'python-msgpack' 'python-oslo-utils'
+           'python-pytz')
+
+  cd "$srcdir"/oslo.serialization-$pkgver
+  python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-oslo-serialization() {
+  depends=('python2-six' 'python2-pbr' 'python2-babel' 'python2-msgpack' 'python2-oslo-utils'
+           'python2-pytz')
+
+  cd "$srcdir"/oslo.serialization-$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