[arch-commits] Commit in python-helper/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Jun 30 16:38:07 UTC 2018
Date: Saturday, June 30, 2018 @ 16:38:06
Author: felixonmars
Revision: 348459
archrelease: copy trunk to community-staging-any
Added:
python-helper/repos/community-staging-any/
python-helper/repos/community-staging-any/PKGBUILD
(from rev 348458, python-helper/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: python-helper/repos/community-staging-any/PKGBUILD (from rev 348458, python-helper/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-06-30 16:38:06 UTC (rev 348459)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-helper
+pkgname=('python-helper' 'python2-helper')
+pkgver=2.4.2
+pkgrel=3
+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' 'python-coverage'
+ 'python2-coverage')
+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
+
+ 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
+}
+
More information about the arch-commits
mailing list