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

Felix Yan felixonmars at archlinux.org
Sun Oct 30 11:20:05 UTC 2016


    Date: Sunday, October 30, 2016 @ 11:20:04
  Author: felixonmars
Revision: 193988

archrelease: copy trunk to community-any

Added:
  python-pytest-mock/repos/community-any/PKGBUILD
    (from rev 193987, python-pytest-mock/trunk/PKGBUILD)
Deleted:
  python-pytest-mock/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  104 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 52 insertions(+), 52 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-30 11:19:05 UTC (rev 193987)
+++ PKGBUILD	2016-10-30 11:20:04 UTC (rev 193988)
@@ -1,52 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-pytest-mock
-pkgname=('python-pytest-mock' 'python2-pytest-mock')
-pkgver=1.2
-pkgrel=1
-pkgdesc="Thin-wrapper around the mock package for easier use with py.test"
-arch=('any')
-license=('LGPL3')
-url="https://github.com/pytest-dev/pytest-mock/"
-makedepends=('python-pytest' 'python2-pytest' 'python2-mock' 'git')
-source=("git+https://github.com/pytest-dev/pytest-mock.git#tag=v$pkgver")
-sha512sums=('SKIP')
-
-prepare() {
-  cp -a pytest-mock{,-py2}
-}
-
-build() {
-  cd "$srcdir/pytest-mock"
-  python setup.py build
-
-  cd "$srcdir/pytest-mock-py2"
-  python2 setup.py build
-}
-
-check() {
-  # Hack entry points by installing it
-
-  cd "$srcdir/pytest-mock"
-  python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.5/site-packages:$PYTHONPATH:$PWD/tests" py.test
-
-  cd "$srcdir/pytest-mock-py2"
-  python2 setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH:$PWD/tests" py.test2
-}
-
-package_python-pytest-mock() {
-  depends=('python-pytest')
-
-  cd pytest-mock
-  python setup.py install --root="${pkgdir}" --optimize=1
-}
-
-package_python2-pytest-mock() {
-  depends=('python2-pytest' 'python2-mock')
-
-  cd pytest-mock-py2
-  python2 setup.py install --root="${pkgdir}" --optimize=1
-}

Copied: python-pytest-mock/repos/community-any/PKGBUILD (from rev 193987, python-pytest-mock/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2016-10-30 11:20:04 UTC (rev 193988)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-mock
+pkgname=('python-pytest-mock' 'python2-pytest-mock')
+pkgver=1.3.0
+pkgrel=1
+pkgdesc="Thin-wrapper around the mock package for easier use with py.test"
+arch=('any')
+license=('LGPL3')
+url="https://github.com/pytest-dev/pytest-mock/"
+makedepends=('python-pytest' 'python2-pytest' 'python2-mock' 'git')
+source=("git+https://github.com/pytest-dev/pytest-mock.git#tag=v$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a pytest-mock{,-py2}
+}
+
+build() {
+  cd "$srcdir/pytest-mock"
+  python setup.py build
+
+  cd "$srcdir/pytest-mock-py2"
+  python2 setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd "$srcdir/pytest-mock"
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.5/site-packages:$PYTHONPATH:$PWD/tests" py.test
+
+  cd "$srcdir/pytest-mock-py2"
+  python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH:$PWD/tests" py.test2
+}
+
+package_python-pytest-mock() {
+  depends=('python-pytest')
+
+  cd pytest-mock
+  python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-pytest-mock() {
+  depends=('python2-pytest' 'python2-mock')
+
+  cd pytest-mock-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+}



More information about the arch-commits mailing list