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

Felix Yan felixonmars at archlinux.org
Fri Dec 27 18:26:46 UTC 2019


    Date: Friday, December 27, 2019 @ 18:26:46
  Author: felixonmars
Revision: 543276

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-27 18:26:31 UTC (rev 543275)
+++ PKGBUILD	2019-12-27 18:26:46 UTC (rev 543276)
@@ -1,54 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-pytest-mock
-pkgname=('python-pytest-mock' 'python2-pytest-mock')
-pkgver=1.12.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' 'python-setuptools-scm'
-             'python2-setuptools-scm')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-mock/archive/v$pkgver.tar.gz")
-sha512sums=('50c06e11cb73190125176d9924c5fab7fa9525d886b28eccef38ed91cdf8b10cdc6f58739240e332211f6ed4663d78a7b3da27a2200d6d31aeddc47c7368ab8f')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-prepare() {
-  cp -a pytest-mock-$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir"/pytest-mock-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/pytest-mock-$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  # Hack entry points by installing it
-
-  cd "$srcdir"/pytest-mock-$pkgver
-  python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH:$PWD/tests" py.test
-
-  cd "$srcdir"/pytest-mock-$pkgver-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-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-}
-
-package_python2-pytest-mock() {
-  depends=('python2-pytest' 'python2-mock')
-
-  cd pytest-mock-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}

Copied: python-pytest-mock/repos/community-any/PKGBUILD (from rev 543275, python-pytest-mock/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-12-27 18:26:46 UTC (rev 543276)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-mock
+pkgname=('python-pytest-mock' 'python2-pytest-mock')
+pkgver=1.13.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' 'python-setuptools-scm'
+             'python2-setuptools-scm')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-mock/archive/v$pkgver.tar.gz")
+sha512sums=('9ce45bf8d595b3616102577ff9781e824bb28a8e9f93c84af8910105e1ec342f2210cea1d740f2453663ed35e5d6bf220c850c171bd9922ef511546e4b61552c')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+prepare() {
+  cp -a pytest-mock-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/pytest-mock-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/pytest-mock-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd "$srcdir"/pytest-mock-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH:$PWD/tests" py.test
+
+  cd "$srcdir"/pytest-mock-$pkgver-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-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-pytest-mock() {
+  depends=('python2-pytest' 'python2-mock')
+
+  cd pytest-mock-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list