[arch-commits] Commit in python-mox3/repos (community-any community-any/PKGBUILD)
Felix Yan
fyan at archlinux.org
Tue Feb 23 03:25:56 UTC 2016
Date: Tuesday, February 23, 2016 @ 04:25:56
Author: fyan
Revision: 163167
archrelease: copy trunk to community-any
Added:
python-mox3/repos/community-any/
python-mox3/repos/community-any/PKGBUILD
(from rev 163166, python-mox3/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-mox3/repos/community-any/PKGBUILD (from rev 163166, python-mox3/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2016-02-23 03:25:56 UTC (rev 163167)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-mox3
+pkgname=('python-mox3' 'python2-mox3')
+pkgver=0.14.0
+pkgrel=1
+arch=('any')
+pkgdesc='Mock object framework for Python'
+url='http://docs.openstack.org/developer/mox3'
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr'
+ 'python-fixtures' 'python2-fixtures' 'git')
+checkdepends=('python-testrepository' 'python2-testrepository')
+source=("git+https://git.openstack.org/openstack/mox3#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+ cp -a mox3{,-py2}
+}
+
+build() {
+ cd "$srcdir"/mox3
+ python setup.py build
+
+ cd "$srcdir"/mox3-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/mox3
+ python setup.py testr
+
+ cd "$srcdir"/mox3-py2
+ python2 setup.py testr
+}
+
+package_python-mox3() {
+ depends=('python-pbr' 'python-fixtures')
+
+ cd mox3
+ python setup.py install --root "$pkgdir" --optimize=1
+}
+
+package_python2-mox3() {
+ depends=('python2-pbr' 'python2-fixtures')
+
+ cd mox3-py2
+ python2 setup.py install --root "$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list