[arch-commits] Commit in python-genty/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Jun 30 02:21:40 UTC 2018


    Date: Saturday, June 30, 2018 @ 02:21:40
  Author: felixonmars
Revision: 347852

archrelease: copy trunk to community-staging-any

Added:
  python-genty/repos/community-staging-any/
  python-genty/repos/community-staging-any/PKGBUILD
    (from rev 347851, python-genty/trunk/PKGBUILD)

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Copied: python-genty/repos/community-staging-any/PKGBUILD (from rev 347851, python-genty/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 02:21:40 UTC (rev 347852)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-genty
+pkgname=('python-genty' 'python2-genty')
+pkgver=1.3.2
+pkgrel=3
+pkgdesc="Allows you to run a test with multiple data sets"
+arch=('any')
+license=('Apache')
+url="https://github.com/box/genty"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six' 'git')
+checkdepends=('python-mock' 'python2-mock')
+source=("git+https://github.com/box/genty.git#tag=v$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a genty{,-py2}
+}
+
+build() {
+  cd "$srcdir/genty"
+  python setup.py build
+
+  cd "$srcdir/genty-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/genty"
+  python setup.py test
+
+  cd "$srcdir/genty-py2"
+  python2 setup.py test
+}
+
+package_python-genty() {
+  depends=('python-six')
+
+  cd genty
+  python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-genty() {
+  depends=('python2-six')
+
+  cd genty-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+}



More information about the arch-commits mailing list