[arch-commits] Commit in python-oslo-db/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 06:16:29 UTC 2019
Date: Saturday, October 26, 2019 @ 06:16:29
Author: felixonmars
Revision: 520247
archrelease: copy trunk to community-staging-any
Added:
python-oslo-db/repos/community-staging-any/
python-oslo-db/repos/community-staging-any/PKGBUILD
(from rev 520246, python-oslo-db/trunk/PKGBUILD)
----------+
PKGBUILD | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
Copied: python-oslo-db/repos/community-staging-any/PKGBUILD (from rev 520246, python-oslo-db/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 06:16:29 UTC (rev 520247)
@@ -0,0 +1,66 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-oslo-db
+pkgname=(python-oslo-db python2-oslo-db)
+pkgver=5.0.2
+pkgrel=2
+pkgdesc="OpenStack Database Pattern Library"
+arch=('any')
+url="https://pypi.python.org/pypi/oslo.db/$pkgver"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-alembic'
+ 'python2-alembic' 'python-debtcollector' 'python2-debtcollector' 'python-oslo-i18n'
+ 'python2-oslo-i18n' 'python-oslo-config' 'python2-oslo-config' 'python-oslo-utils'
+ 'python2-oslo-utils' 'python-sqlalchemy' 'python2-sqlalchemy'
+ 'python-sqlalchemy-migrate' 'python2-sqlalchemy-migrate' 'python-stevedore'
+ 'python2-stevedore')
+checkdepends=('python-mock' 'python2-mock' 'python-testresources' 'python2-testresources'
+ 'python-oslotest' 'python2-oslotest' 'python-oslo-context' 'python2-oslo-context'
+ 'python2-unittest2')
+options=('!emptydirs')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslo.db/archive/$pkgver.tar.gz")
+sha512sums=('1e6317a51241bb0c0edc790fbf6095af4e6c52c5c92f3620f60b31a84a1f44ab5976ec2665832cb2b9759619828eee32eefcbbbb5f7e9f784cca591af0067dc1')
+
+prepare() {
+ cp -a oslo.db-$pkgver{,-py2}
+ sed -i 's/import unittest2/import unittest as unittest2/' oslo.db-$pkgver/oslo_db/tests/sqlalchemy/test_async_eventlet.py
+
+ export PBR_VERSION=$pkgver
+}
+
+build() {
+ cd "$srcdir"/oslo.db-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/oslo.db-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/oslo.db-$pkgver
+ stestr run
+
+ cd "$srcdir"/oslo.db-$pkgver-py2
+ PYTHON=python2 stestr2 run
+}
+
+package_python-oslo-db() {
+ depends=('python-six' 'python-pbr' 'python-alembic' 'python-debtcollector' 'python-oslo-i18n'
+ 'python-oslo-config' 'python-oslo-utils' 'python-sqlalchemy' 'python-sqlalchemy-migrate'
+ 'python-stevedore')
+
+ cd "$srcdir"/oslo.db-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-oslo-db() {
+ depends=('python2-six' 'python2-pbr' 'python2-alembic' 'python2-debtcollector' 'python2-oslo-i18n'
+ 'python2-oslo-config' 'python2-oslo-utils' 'python2-sqlalchemy'
+ 'python2-sqlalchemy-migrate' 'python2-stevedore')
+
+ cd "$srcdir"/oslo.db-$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