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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 18:28:57 UTC 2020


    Date: Monday, November 9, 2020 @ 18:28:56
  Author: felixonmars
Revision: 748009

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 748008, python-oslo-db/trunk/PKGBUILD)

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

Copied: python-oslo-db/repos/community-staging-any/PKGBUILD (from rev 748008, python-oslo-db/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 18:28:56 UTC (rev 748009)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgname=python-oslo-db
+pkgver=8.4.0
+pkgrel=2
+pkgdesc="OpenStack Database Pattern Library"
+arch=('any')
+url="https://pypi.python.org/pypi/oslo.db/$pkgver"
+license=('Apache')
+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')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-testresources' 'python-oslotest' 'python-oslo-context')
+options=('!emptydirs')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack/oslo.db/archive/$pkgver.tar.gz")
+sha512sums=('fa13be6d266305859363aa3c5fe31ff66abf1fc717fbfc5dbcb219ae8835419619eb90c5b2b41b64751ec532bd5a44e7bb0b76df50253d036098e7fc4cd9e9e9')
+
+export PBR_VERSION=$pkgver
+
+prepare() {
+  sed -i 's/import unittest2/import unittest as unittest2/' oslo.db-$pkgver/oslo_db/tests/sqlalchemy/test_async_eventlet.py
+}
+
+build() {
+  cd oslo.db-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd oslo.db-$pkgver
+  stestr run
+}
+
+package() {
+  cd oslo.db-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list