[arch-commits] Commit in python-pyassert/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Dec 14 07:49:16 UTC 2016


    Date: Wednesday, December 14, 2016 @ 07:49:16
  Author: felixonmars
Revision: 199317

archrelease: copy trunk to community-any

Added:
  python-pyassert/repos/community-any/
  python-pyassert/repos/community-any/PKGBUILD
    (from rev 199316, python-pyassert/trunk/PKGBUILD)

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

Copied: python-pyassert/repos/community-any/PKGBUILD (from rev 199316, python-pyassert/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-12-14 07:49:16 UTC (rev 199317)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Thomas S Hatch <thatch45 at gmail.com>
+
+pkgbase=python-pyassert
+pkgname=('python-pyassert' 'python2-pyassert')
+pkgver=0.4.2
+pkgrel=1
+pkgdesc='https://github.com/pyclectic/pyassert'
+arch=('any')
+url='http://pyassert.com'
+license=('Apache')
+makedepends=('python-pybuilder' 'python2-pybuilder' 'python-mockito' 'python2-mockito'
+             'python-coverage' 'python2-coverage' 'python-six' 'python2-six' 'git')
+checkdepends=('python-unittest-xml-reporting' 'python2-unittest-xml-reporting' 'flake8'
+              'python2-flake8' 'pychecker') # python3-pychecker is missing
+source=("git+https://github.com/pyclectic/pyassert.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  # package name will be determined by directory name
+  mkdir py2
+  cp -a pyassert py2/
+}
+
+check() {
+  cd "$srcdir"/pyassert
+  pyb -v analyze || warning "ignoring flake8 warnings"
+
+  cd "$srcdir"/py2/pyassert
+  pyb2 -v analyze || warning "ignoring flake8 warnings"
+}
+
+package_python-pyassert() {
+  depends=('python-six')
+
+  cd pyassert
+  pyb -v package
+  cd target/dist/pyassert-$pkgver
+  python setup.py install --root="$pkgdir" -O1
+}
+
+package_python2-pyassert() {
+  depends=('python2-six')
+
+  cd py2/pyassert
+  pyb2 -v package
+  cd target/dist/pyassert-$pkgver
+  python2 setup.py install --root="$pkgdir" -O1
+}



More information about the arch-commits mailing list