[arch-commits] Commit in python-pytest-mock/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Apr 10 06:14:50 UTC 2018
Date: Tuesday, April 10, 2018 @ 06:14:44
Author: felixonmars
Revision: 315520
archrelease: copy trunk to community-any
Added:
python-pytest-mock/repos/community-any/PKGBUILD
(from rev 315519, python-pytest-mock/trunk/PKGBUILD)
Deleted:
python-pytest-mock/repos/community-any/PKGBUILD
----------+
PKGBUILD | 110 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 55 insertions(+), 55 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-04-10 06:14:14 UTC (rev 315519)
+++ PKGBUILD 2018-04-10 06:14:44 UTC (rev 315520)
@@ -1,55 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-pytest-mock
-pkgname=('python-pytest-mock' 'python2-pytest-mock')
-pkgver=1.8.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=('6c5315897c23ca20a7b8b633d450a8b4bb1844163a9992e5602546b233f1457338b80b2e5ad9a32716faab7a9b8adeee4d854b2a4fe87bf890ebb8a751f18fa0')
-
-prepare() {
- cp -a pytest-mock-$pkgver{,-py2}
-
- export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-}
-
-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.6/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 315519, python-pytest-mock/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-04-10 06:14:44 UTC (rev 315520)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-mock
+pkgname=('python-pytest-mock' 'python2-pytest-mock')
+pkgver=1.9.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=('bfbd468edcfbb01c312269f8f9f4870b892f31db2b51c9c0ddc8de36772995bb4b4348f80e4d58f7e56e31bd729a01dd8d42408335732a4cb0133bca6e8a9c24')
+
+prepare() {
+ cp -a pytest-mock-$pkgver{,-py2}
+
+ export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+}
+
+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.6/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