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

Evangelos Foutras foutrelis at archlinux.org
Sat Dec 24 17:41:32 UTC 2016


    Date: Saturday, December 24, 2016 @ 17:41:31
  Author: foutrelis
Revision: 201672

archrelease: copy trunk to community-staging-any

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

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

Copied: python-debtcollector/repos/community-staging-any/PKGBUILD (from rev 201671, python-debtcollector/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 17:41:31 UTC (rev 201672)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-debtcollector
+pkgname=('python-debtcollector' 'python2-debtcollector')
+pkgver=1.10.0
+pkgrel=2
+arch=('any')
+pkgdesc='A collection of Python deprecation patterns and strategies that help you collect your technical debt in a non-destructive manner.'
+url='http://docs.openstack.org/developer/debtcollector'
+license=('Apache')
+makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr'
+             'python-babel' 'python2-babel' 'python-wrapt' 'python2-wrapt' 'python2-funcsigs')
+checkdepends=('python-oslotest' 'python2-oslotest')
+source=("git+https://git.openstack.org/openstack/debtcollector#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a debtcollector{,-py2}
+}
+
+build() {
+  cd "$srcdir"/debtcollector
+  python setup.py build
+
+  cd "$srcdir"/debtcollector-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/debtcollector
+  python setup.py testr
+
+  cd "$srcdir"/debtcollector-py2
+  PYTHON=python2 python2 setup.py testr
+}
+
+package_python-debtcollector() {
+  depends=('python-six' 'python-pbr' 'python-babel' 'python-wrapt')
+
+  cd debtcollector
+  python setup.py install --root "$pkgdir" --optimize=1
+}
+
+package_python2-debtcollector() {
+  depends=('python2-six' 'python2-pbr' 'python2-babel' 'python2-wrapt' 'python2-funcsigs')
+
+  cd debtcollector-py2
+  python2 setup.py install --root "$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list