[arch-commits] Commit in python-helper/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Nov 7 16:44:37 UTC 2016


    Date: Monday, November 7, 2016 @ 16:44:36
  Author: felixonmars
Revision: 194906

upgpkg: python-helper 2.4.2-1

Modified:
  python-helper/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-11-07 16:22:14 UTC (rev 194905)
+++ PKGBUILD	2016-11-07 16:44:36 UTC (rev 194906)
@@ -3,14 +3,15 @@
 
 pkgbase=python-helper
 pkgname=('python-helper' 'python2-helper')
-pkgver=2.4.1
-pkgrel=2
+pkgver=2.4.2
+pkgrel=1
 pkgdesc="Development library for quickly writing configurable applications and daemons"
 arch=('any')
 license=('BSD')
 url="https://helper.readthedocs.org"
 makedepends=('python-setuptools' 'python2-setuptools' 'python-yaml' 'python2-yaml' 'git')
-checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock')
+checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-coverage'
+              'python2-coverage')
 source=("git+https://github.com/gmr/helper.git#tag=$pkgver")
 sha512sums=('SKIP')
 
@@ -19,18 +20,18 @@
 }
 
 build() {
-  cd "$srcdir/helper"
+  cd "$srcdir"/helper
   python setup.py build
 
-  cd "$srcdir/helper-py2"
+  cd "$srcdir"/helper-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir/helper"
-  nosetests3 || warning "Expected: Tests do not support Python 3"
+  cd "$srcdir"/helper
+  nosetests3
 
-  cd "$srcdir/helper-py2"
+  cd "$srcdir"/helper-py2
   nosetests2
 }
 
@@ -38,8 +39,8 @@
   depends=('python-yaml')
 
   cd helper
-  python setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 package_python2-helper() {
@@ -46,7 +47,7 @@
   depends=('python2-yaml')
 
   cd helper-py2
-  python2 setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 



More information about the arch-commits mailing list