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

Felix Yan felixonmars at gemini.archlinux.org
Tue Aug 24 12:14:41 UTC 2021


    Date: Tuesday, August 24, 2021 @ 12:14:41
  Author: felixonmars
Revision: 1004534

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

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

Copied: python-oslo-db/repos/community-staging-any/PKGBUILD (from rev 1004533, python-oslo-db/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-08-24 12:14:41 UTC (rev 1004534)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgname=python-oslo-db
+pkgver=11.0.0
+pkgrel=1
+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=('4a6c31b4f804f9a8f6e6d4748491acd52dbe2647c08140b4b2cb0412df5dc933f775ecdb56bd4ed25c05a581d34f0b101cf110196ec82a28342b844ea1a42481')
+
+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