[arch-commits] Commit in python-nose-exclude/repos (2 files)
Felix Yan
fyan at archlinux.org
Fri Nov 6 16:14:13 UTC 2015
Date: Friday, November 6, 2015 @ 17:14:13
Author: fyan
Revision: 146307
archrelease: copy trunk to community-any
Added:
python-nose-exclude/repos/community-any/
python-nose-exclude/repos/community-any/PKGBUILD
(from rev 146306, python-nose-exclude/trunk/PKGBUILD)
----------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Copied: python-nose-exclude/repos/community-any/PKGBUILD (from rev 146306, python-nose-exclude/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-11-06 16:14:13 UTC (rev 146307)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-nose-exclude
+pkgname=("python-nose-exclude" "python2-nose-exclude")
+pkgver=0.4.1
+pkgrel=1
+pkgdesc="Exclude specific directories from nosetests runs"
+arch=('any')
+url="https://github.com/kgrandis/nose-exclude"
+license=('LGPL')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-nose' 'python2-nose' 'git')
+source=("git+https://github.com/kgrandis/nose-exclude.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+ cp -a "nose-exclude"{,-py2}
+}
+
+build() {
+ cd "$srcdir/nose-exclude"
+ python setup.py build
+
+ cd "$srcdir/nose-exclude-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/nose-exclude"
+ python setup.py test
+
+ cd "$srcdir/nose-exclude-py2"
+ python2 setup.py test
+}
+
+package_python-nose-exclude() {
+ depends=('python-nose')
+
+ cd nose-exclude
+ python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-nose-exclude() {
+ depends=('python2-nose')
+
+ cd nose-exclude-py2
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+}
More information about the arch-commits
mailing list