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

Evangelos Foutras foutrelis at archlinux.org
Sat Jun 30 18:12:29 UTC 2018


    Date: Saturday, June 30, 2018 @ 18:12:29
  Author: foutrelis
Revision: 348899

archrelease: copy trunk to community-staging-any

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

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

Copied: python-flexmock/repos/community-staging-any/PKGBUILD (from rev 348897, python-flexmock/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 18:12:29 UTC (rev 348899)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-flexmock
+pkgname=('python-flexmock' 'python2-flexmock')
+pkgver=0.10.2
+pkgrel=3
+pkgdesc="Mock/Stub/Spy library for Python"
+arch=('any')
+license=('BSD')
+url="http://has207.github.com/flexmock"
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("git+https://github.com/bkabrda/flexmock.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a flexmock{,-py2}
+  
+  # To workaround build issues
+  export LC_CTYPE=en_US.UTF-8
+}
+
+build() {
+  cd "$srcdir/flexmock"
+  python setup.py build
+
+  cd "$srcdir/flexmock-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/flexmock"
+  python setup.py pytest
+
+  cd "$srcdir/flexmock-py2"
+  python2 setup.py pytest
+}
+
+package_python-flexmock() {
+  depends=('python')
+
+  cd flexmock
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-flexmock() {
+  depends=('python2')
+
+  cd flexmock-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