[arch-commits] Commit in (4 files)
Felix Yan
fyan at archlinux.org
Wed Sep 9 09:47:03 UTC 2015
Date: Wednesday, September 9, 2015 @ 11:47:03
Author: fyan
Revision: 139673
addpkg: python-helper 2.4.1-1
Added:
python-helper/
python-helper/repos/
python-helper/trunk/
python-helper/trunk/PKGBUILD
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Added: python-helper/trunk/PKGBUILD
===================================================================
--- python-helper/trunk/PKGBUILD (rev 0)
+++ python-helper/trunk/PKGBUILD 2015-09-09 09:47:03 UTC (rev 139673)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-helper
+pkgname=('python-helper' 'python2-helper')
+pkgver=2.4.1
+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')
+source=("git+https://github.com/gmr/helper.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+ cp -a helper{,-py2}
+}
+
+build() {
+ cd "$srcdir/helper"
+ python setup.py build
+
+ cd "$srcdir/helper-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/helper"
+ nosetests3 || warning "Expected: Tests do not support Python 3"
+
+ cd "$srcdir/helper-py2"
+ nosetests2
+}
+
+package_python-helper() {
+ depends=('python-yaml')
+
+ cd helper
+ python setup.py install --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-helper() {
+ depends=('python2-yaml')
+
+ cd helper-py2
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
Property changes on: python-helper/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list