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

Felix Yan felixonmars at archlinux.org
Sat Oct 26 20:53:57 UTC 2019


    Date: Saturday, October 26, 2019 @ 20:53:57
  Author: felixonmars
Revision: 520662

archrelease: copy trunk to community-staging-any

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

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

Copied: python-genty/repos/community-staging-any/PKGBUILD (from rev 520659, python-genty/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 20:53:57 UTC (rev 520662)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-genty
+pkgname=('python-genty' 'python2-genty')
+pkgver=1.3.2
+pkgrel=4
+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