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

Evangelos Foutras foutrelis at archlinux.org
Wed Jul 18 03:13:39 UTC 2018


    Date: Wednesday, July 18, 2018 @ 03:13:39
  Author: foutrelis
Revision: 361563

archrelease: copy trunk to community-staging-any

Added:
  python-subunit2sql/repos/community-staging-any/
  python-subunit2sql/repos/community-staging-any/PKGBUILD
    (from rev 361562, python-subunit2sql/trunk/PKGBUILD)

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

Copied: python-subunit2sql/repos/community-staging-any/PKGBUILD (from rev 361562, python-subunit2sql/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-18 03:13:39 UTC (rev 361563)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-subunit2sql
+pkgname=(python-subunit2sql python2-subunit2sql)
+pkgver=1.9.0
+pkgrel=2
+pkgdesc="Command to Read a subunit file or stream and put the data in a SQL DB"
+arch=('any')
+url="https://pypi.python.org/pypi/subunit2sql"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-alembic'
+             'python2-alembic' 'python-stevedore' 'python2-stevedore' 'python-sqlalchemy'
+             'python2-sqlalchemy' 'python-oslo-config' 'python2-oslo-config' 'python-dateutil'
+             'python2-dateutil' 'python-subunit' 'python2-subunit' 'python-oslo-db'
+             'python2-oslo-db')
+checkdepends=('python-testrepository' 'python2-testrepository' 'python-mock' 'python2-mock'
+              'python-testresources' 'python2-testresources' 'python-testscenarios'
+              'python2-testscenarios' 'python-oslo-concurrency' 'python2-oslo-concurrency')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack-infra/subunit2sql/archive/$pkgver.tar.gz")
+sha512sums=('5ab4e7cfa0a722a7b13ea4a9589278ab6b9b712c5a828f5a666f1a0c48f6b1c93a9af6e61c0f98cff3d3d32d62d19b13198a5a6a7ed9be6326e747e151f66e73')
+
+prepare() {
+  cp -a subunit2sql-$pkgver{,-py2}
+
+  export PBR_VERSION=$pkgver
+}
+
+build() {
+  cd "$srcdir"/subunit2sql-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/subunit2sql-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/subunit2sql-$pkgver
+  python setup.py testr || warning "Tests failed"
+
+  cd "$srcdir"/subunit2sql-$pkgver-py2
+  PYTHON=python2 python2 setup.py testr || warning "Tests failed"
+}
+
+package_python-subunit2sql() {
+  depends=('python-six' 'python-pbr' 'python-alembic' 'python-stevedore' 'python-sqlalchemy'
+           'python-oslo-config' 'python-dateutil' 'python-subunit' 'python-oslo-db')
+
+  cd "$srcdir"/subunit2sql-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-subunit2sql() {
+  depends=('python2-six' 'python2-pbr' 'python2-alembic' 'python2-stevedore' 'python2-sqlalchemy'
+           'python2-oslo-config' 'python2-dateutil' 'python2-subunit' 'python2-oslo-db')
+
+  cd "$srcdir"/subunit2sql-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+
+  mv "$pkgdir"/usr/bin/sql2subunit{,2}
+  mv "$pkgdir"/usr/bin/subunit2sql{,2}
+  mv "$pkgdir"/usr/bin/subunit2sql-db-manage{,2}
+  mv "$pkgdir"/usr/bin/subunit2sql-graph{,2}
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list