[arch-commits] Commit in python-case/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Oct 26 04:40:14 UTC 2019
Date: Saturday, October 26, 2019 @ 04:40:13
Author: foutrelis
Revision: 520082
archrelease: copy trunk to community-staging-any
Added:
python-case/repos/community-staging-any/
python-case/repos/community-staging-any/PKGBUILD
(from rev 520081, python-case/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: python-case/repos/community-staging-any/PKGBUILD (from rev 520081, python-case/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 04:40:13 UTC (rev 520082)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-case
+pkgname=('python-case' 'python2-case')
+pkgver=1.5.3
+_commit=54341e0c8f2e41f0fcaa9d5dc325c33d4746168d
+pkgrel=3
+pkgdesc="Python unittest Utilities"
+arch=('any')
+license=('BSD')
+url="https://github.com/celery/case"
+makedepends=('python-nose' 'python2-nose' 'python2-mock' 'python2-unittest2' 'git')
+checkdepends=('python-coverage' 'python2-coverage')
+source=("git+https://github.com/celery/case.git#commit=$_commit")
+sha512sums=('SKIP')
+
+prepare() {
+ cp -a case{,-py2}
+}
+
+build() {
+ cd "$srcdir"/case
+ python setup.py build
+
+ cd "$srcdir"/case-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/case
+ nosetests3
+
+ cd "$srcdir"/case-py2
+ nosetests2
+}
+
+package_python-case() {
+ depends=('python-nose')
+
+ cd case
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-case() {
+ depends=('python2-nose' 'python2-mock' 'python2-unittest2')
+
+ cd case-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list