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

Felix Yan felixonmars at archlinux.org
Thu Nov 12 18:49:50 UTC 2020


    Date: Thursday, November 12, 2020 @ 18:49:50
  Author: felixonmars
Revision: 753200

archrelease: copy trunk to community-staging-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-12 18:49:40 UTC (rev 753199)
+++ PKGBUILD	2020-11-12 18:49:50 UTC (rev 753200)
@@ -1,54 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-pytest-mock
-pkgname=('python-pytest-mock' 'python2-pytest-mock')
-pkgver=2.0.0
-pkgrel=2
-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=('0bd15bf07e28fcea72f0269f09fe340bc1f01dd4e5f20215894c59e244ebad6ba15c8ef67c1547be0a750cff3e50536e0c1ca2d783a895eecbc492ece6c6fc55')
-
-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.9/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-staging-any/PKGBUILD (from rev 753199, python-pytest-mock/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-12 18:49:50 UTC (rev 753200)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-mock
+pkgname=('python-pytest-mock' 'python2-pytest-mock')
+pkgver=2.0.0
+pkgrel=3
+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=('0bd15bf07e28fcea72f0269f09fe340bc1f01dd4e5f20215894c59e244ebad6ba15c8ef67c1547be0a750cff3e50536e0c1ca2d783a895eecbc492ece6c6fc55')
+
+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.9/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